diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..00451086a6b75db17ef5861bd287995c0454c9de --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/run_manifest.json @@ -0,0 +1,72 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T16:06:58.471350+00:00", + "ended_at": "2026-05-19T16:07:05.398137+00:00", + "status": "failed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_02e5a59d1fa96e13", + "problem_id": "v2p_n15_5bdffdfad8513f6a", + "dataset_id": "n15", + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "family_id": "conditional_dependency_structure", + "canonical_subitem_id": "dependency_strength_similarity", + "intended_facet_id": "pairwise_conditional_dependency", + "variant_semantic_role": "within_group_proportion", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MFALLEEN, condition_col=MGEMOMV.", + "bindings": { + "group_col": "MFALLEEN", + "condition_col": "MGEMOMV", + "condition_value": "3", + "positive_value": "3", + "negative_value": "2", + "top_k": 13, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "condition_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "notes": [ + "default_facets=pairwise_conditional_dependency", + "template_selection_mode=rule", + "problem_index_within_template=3", + "sql_variant_index=1/2", + "binding_index=98" + ], + "template_selection_mode": "rule", + "selected_template_rank": 9, + "problem_index_within_template": 3, + "sql_variant_index": 1, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "error": "AI CLI command failed with exit code 1: " +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..825fd951626a9d4ef8be4b7344e218cb124d69c5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_02e5a59d1fa96e13/trace.jsonl @@ -0,0 +1,2 @@ +{"timestamp": "2026-05-19T16:07:01.473545+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": 2997.78, "started_at": "2026-05-19T16:06:58.474775+00:00", "ended_at": "2026-05-19T16:07:01.472595+00:00", "prompt_metrics": {"chars": 33332, "bytes_utf8": 33332, "lines": 1131, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-8bae-7303-b022-7b13734aa804\"}\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: "} +{"timestamp": "2026-05-19T16:07:05.398052+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": 2922.16, "started_at": "2026-05-19T16:07:02.475071+00:00", "ended_at": "2026-05-19T16:07:05.397266+00:00", "prompt_metrics": {"chars": 33332, "bytes_utf8": 33332, "lines": 1131, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-9b47-7351-a78e-566c4c6652a0\"}\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: "} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e970af9432285ddbcc298ab535995cade0d86cd7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32994, "bytes_utf8": 32994, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 277, "bytes_utf8": 277, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22979, "cached_input_tokens": 21888, "output_tokens": 285, "reasoning_output_tokens": 210}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..7ba3c66c321b5dbc7b6646348532b1e16f8a4fe7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_054d762b56fc12de", + "api_calls": 0, + "input_tokens": 22979, + "cached_input_tokens": 21888, + "output_tokens": 285, + "total_tokens": 23264, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 21971.16, + "sql_execution_elapsed_ms_total": 4.29, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..75026174f56910e3a2393c49b8321601ad8fb8ee --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:32:27.342011+00:00", + "ended_at": "2026-05-19T15:32:49.313191+00:00", + "elapsed_ms": 21971.16, + "prompt_metrics": { + "chars": 32994, + "bytes_utf8": 32994, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1955, + "bytes_utf8": 1955, + "lines": 8, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 277, + "bytes_utf8": 277, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22979, + "cached_input_tokens": 21888, + "output_tokens": 285, + "reasoning_output_tokens": 210 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..857046f9ee5d9a67a5c10829653d6f5a98f21350 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MFALLEEN.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MFALLEEN", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..bb573ad18b1a8dd178266196dd85de08214a827c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,8 @@ +{"type":"thread.started","thread_id":"019e40dd-f158-70e2-b6a0-e4e001647534"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1994930, Requested 23614. Please try again in 556ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1993195, Requested 23614. Please try again in 504ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1985719, Requested 23614. Please try again in 279ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 5/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1986724, Requested 23614. Please try again in 310ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MFALLEEN\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFALLEEN\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Grouped count by category on \\\"MFALLEEN\\\" using the planned template to inspect subgroup size distribution.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22979,"cached_input_tokens":21888,"output_tokens":285,"reasoning_output_tokens":210}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..94c85f514201cb7c1a660984e7f7b94a9e7c2224 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MFALLEEN\", COUNT(*) AS row_count\nFROM \"n15\"\nGROUP BY \"MFALLEEN\"\nORDER BY row_count DESC;","notes":"Grouped count by category on \"MFALLEEN\" using the planned template to inspect subgroup size distribution."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_054d762b56fc12de/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f67da61072934192acdcf45880d4612bbda5368a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33635, "bytes_utf8": 33635, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 721, "bytes_utf8": 721, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23150, "cached_input_tokens": 21888, "output_tokens": 632, "reasoning_output_tokens": 414}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c4584967726eed2aad2741d6c8ef9894cedf6da5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_0863509a7e30be1f", + "api_calls": 0, + "input_tokens": 23150, + "cached_input_tokens": 21888, + "output_tokens": 632, + "total_tokens": 23782, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 17670.87, + "sql_execution_elapsed_ms_total": 11.63, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e187df17ef2cef5291299db33da0279020becbc5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:49:42.707193+00:00", + "ended_at": "2026-05-19T15:50:00.378107+00:00", + "elapsed_ms": 17670.87, + "prompt_metrics": { + "chars": 33635, + "bytes_utf8": 33635, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1141, + "bytes_utf8": 1141, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 721, + "bytes_utf8": 721, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23150, + "cached_input_tokens": 21888, + "output_tokens": 632, + "reasoning_output_tokens": 414 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..71e8b167a3adbc23cc933b7daf5700e17b61eb65 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=AWERKT, measure_col=MBERZELF.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "AWERKT", + "measure_col": "MBERZELF", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4e88e05d29c2820c85905b91a5ecd205f10e8318 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ed-bddb-7e62-9475-32f4078f22c3"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"AWERKT\\\",\\n SUM(CAST(\\\"MBERZELF\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"AWERKT\\\"\\n),\\n\\\"total\\\" AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM \\\"grouped\\\"\\n)\\nSELECT\\n g.\\\"AWERKT\\\",\\n g.\\\"group_value\\\"\\nFROM \\\"grouped\\\" AS g\\nCROSS JOIN \\\"total\\\" AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\\\"AWERKT\\\", measure_col=\\\"MBERZELF\\\", and fraction_threshold=0.1. CAST to REAL is used because the schema stores columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23150,"cached_input_tokens":21888,"output_tokens":632,"reasoning_output_tokens":414}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..c20f4a08dae7db658f8262df9b63de1a4a2a197c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH \"grouped\" AS (\n SELECT\n \"AWERKT\",\n SUM(CAST(\"MBERZELF\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"AWERKT\"\n),\n\"total\" AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM \"grouped\"\n)\nSELECT\n g.\"AWERKT\",\n g.\"group_value\"\nFROM \"grouped\" AS g\nCROSS JOIN \"total\" AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;","notes":"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\"AWERKT\", measure_col=\"MBERZELF\", and fraction_threshold=0.1. CAST to REAL is used because the schema stores columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0863509a7e30be1f/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..949bea94bb7a6eaf54f526cd727863d1e3af1615 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:04:16.105106+00:00", + "ended_at": "2026-05-19T16:04:19.570762+00:00", + "elapsed_ms": 3465.63, + "returncode": 1, + "prompt_metrics": { + "chars": 33259, + "bytes_utf8": 33259, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..96792ecdafbd5b2d6c3ac765ad93859c418146ff --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:04:20.573026+00:00", + "ended_at": "2026-05-19T16:04:23.710190+00:00", + "elapsed_ms": 3137.13, + "returncode": 1, + "prompt_metrics": { + "chars": 33259, + "bytes_utf8": 33259, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ac76def7ec3325b1320ccf5e4b771730a5bf7ab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGODPR, measure_col=MINK4575.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGODPR", + "measure_col": "MINK4575", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ac76def7ec3325b1320ccf5e4b771730a5bf7ab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGODPR, measure_col=MINK4575.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGODPR", + "measure_col": "MINK4575", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..cfe79f054c66e199ca0076119e37735021431eac --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fb-1193-70d1-b9b6-58343b0e14ba"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..dc54d605c67a62f84db86e3d335f5346f88c80f8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fb-1193-70d1-b9b6-58343b0e14ba"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..491754795981747d6ff18457fc1e5cd22a7a7538 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fb-230a-7f12-b0bb-f363c37e68f8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c64486237e5edf11f85dd8a8a2036d41ad83ddd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fb-230a-7f12-b0bb-f363c37e68f8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_08b174a71f625c5b/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e2171c17dfe0ea180d0940e3121a45d90a5c503b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33487, "bytes_utf8": 33487, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 584, "bytes_utf8": 584, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23124, "cached_input_tokens": 12032, "output_tokens": 617, "reasoning_output_tokens": 441}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..0c54b2b23fdb26a68b589d1235eccb6d5b7c5221 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_096d543fdafd9a01", + "api_calls": 0, + "input_tokens": 23124, + "cached_input_tokens": 12032, + "output_tokens": 617, + "total_tokens": 23741, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19129.47, + "sql_execution_elapsed_ms_total": 9.1, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f197a4c16a532ed681466bab2d952ee239641ce5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:41:28.096153+00:00", + "ended_at": "2026-05-19T15:41:47.225651+00:00", + "elapsed_ms": 19129.47, + "prompt_metrics": { + "chars": 33487, + "bytes_utf8": 33487, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1301, + "bytes_utf8": 1301, + "lines": 5, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 584, + "bytes_utf8": 584, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23124, + "cached_input_tokens": 12032, + "output_tokens": 617, + "reasoning_output_tokens": 441 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b41ad53d988c7dcc8ebf99df9a36bc2dcb5d1a23 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MZFONDS, measure_col=MZFONDS.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MZFONDS", + "measure_col": "MZFONDS", + "item_col": "MOSTYPE", + "top_k": 19, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd52aaabc4cf96a01936e77e7940ca4121cf6145 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,5 @@ +{"type":"thread.started","thread_id":"019e40e6-31ad-73d0-a1b9-5b63c994840c"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1991379, Requested 23759. Please try again in 454ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"MZFONDS\\\", \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MZFONDS\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MZFONDS\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MZFONDS\\\" AS REAL))) OVER (PARTITION BY \\\"MZFONDS\\\") AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MZFONDS\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the provided template with group_col=\\\"MZFONDS\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MZFONDS\\\". Because \\\"MZFONDS\\\" is stored as TEXT in SQLite, the measure is cast to REAL before aggregation.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23124,"cached_input_tokens":12032,"output_tokens":617,"reasoning_output_tokens":441}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a305f7e4e41ac9fd3f23ab0b3a2bf349f43538fe --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"MZFONDS\", \"MOSTYPE\",\n SUM(CAST(\"MZFONDS\" AS REAL)) AS total_measure,\n SUM(CAST(\"MZFONDS\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MZFONDS\" AS REAL))) OVER (PARTITION BY \"MZFONDS\") AS share_within_group\nFROM \"n15\"\nGROUP BY \"MZFONDS\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Applied the provided template with group_col=\"MZFONDS\", item_col=\"MOSTYPE\", and measure_col=\"MZFONDS\". Because \"MZFONDS\" is stored as TEXT in SQLite, the measure is cast to REAL before aggregation."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_096d543fdafd9a01/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d7cf5bacc07afaf871f6dbd0024484e4c84959d5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33262, "bytes_utf8": 33262, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 1830, "bytes_utf8": 1830, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23047, "cached_input_tokens": 12032, "output_tokens": 2806, "reasoning_output_tokens": 2158}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..e607e752ca7819c01f8c6040f0aea4af4f93ddab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_09d85e0072607f12", + "api_calls": 0, + "input_tokens": 23047, + "cached_input_tokens": 12032, + "output_tokens": 2806, + "total_tokens": 25853, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 46796.28, + "sql_execution_elapsed_ms_total": 37.44, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a0feeb95e16a2f37433594e84c5481ad7c90ab6b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:05:26.649306+00:00", + "ended_at": "2026-05-19T16:06:13.445631+00:00", + "elapsed_ms": 46796.28, + "prompt_metrics": { + "chars": 33262, + "bytes_utf8": 33262, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2455, + "bytes_utf8": 2455, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 1830, + "bytes_utf8": 1830, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23047, + "cached_input_tokens": 12032, + "output_tokens": 2806, + "reasoning_output_tokens": 2158 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2dfe013a2524e9574e92476436f4ddd15151950c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGODOV, measure_col=MINK7512.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGODOV", + "measure_col": "MINK7512", + "top_k": 18, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..0cf065796cd4db79a90c79e18a9017bd39b97047 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fc-24fd-7b73-894a-a93c84733a6b"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"ranked\\\" AS (\\n SELECT\\n \\\"MGODOV\\\",\\n CAST(\\\"MINK7512\\\" AS REAL) AS \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"MGODOV\\\"\\n ORDER BY CAST(\\\"MINK7512\\\" AS REAL)\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (PARTITION BY \\\"MGODOV\\\") AS \\\"cnt\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MGODOV\\\" IS NOT NULL\\n AND \\\"MINK7512\\\" IS NOT NULL\\n),\\n\\\"scored\\\" AS (\\n SELECT\\n \\\"MGODOV\\\",\\n \\\"measure_value\\\",\\n \\\"rn\\\",\\n \\\"cnt\\\",\\n ((\\\"cnt\\\" - 1) * 0.95) + 1.0 AS \\\"pos\\\",\\n CAST((((\\\"cnt\\\" - 1) * 0.95) + 1.0) AS INTEGER) AS \\\"lower_rn\\\",\\n CASE\\n WHEN (((\\\"cnt\\\" - 1) * 0.95) + 1.0) = CAST((((\\\"cnt\\\" - 1) * 0.95) + 1.0) AS INTEGER)\\n THEN CAST((((\\\"cnt\\\" - 1) * 0.95) + 1.0) AS INTEGER)\\n ELSE CAST((((\\\"cnt\\\" - 1) * 0.95) + 1.0) AS INTEGER) + 1\\n END AS \\\"upper_rn\\\"\\n FROM \\\"ranked\\\"\\n),\\n\\\"percentile_bounds\\\" AS (\\n SELECT\\n \\\"MGODOV\\\",\\n MAX(\\\"cnt\\\") AS \\\"group_size\\\",\\n MAX(\\\"pos\\\") AS \\\"pos\\\",\\n MAX(\\\"lower_rn\\\") AS \\\"lower_rn\\\",\\n MAX(\\\"upper_rn\\\") AS \\\"upper_rn\\\",\\n MAX(CASE WHEN \\\"rn\\\" = \\\"lower_rn\\\" THEN \\\"measure_value\\\" END) AS \\\"lower_value\\\",\\n MAX(CASE WHEN \\\"rn\\\" = \\\"upper_rn\\\" THEN \\\"measure_value\\\" END) AS \\\"upper_value\\\"\\n FROM \\\"scored\\\"\\n GROUP BY \\\"MGODOV\\\"\\n)\\nSELECT\\n \\\"MGODOV\\\",\\n CASE\\n WHEN \\\"lower_rn\\\" = \\\"upper_rn\\\" THEN \\\"lower_value\\\"\\n ELSE \\\"lower_value\\\" + ((\\\"pos\\\" - \\\"lower_rn\\\") * (\\\"upper_value\\\" - \\\"lower_value\\\"))\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"percentile_bounds\\\"\\nWHERE \\\"group_size\\\" >= 5\\nORDER BY \\\"percentile_measure\\\" DESC, \\\"MGODOV\\\";\",\"notes\":\"Emulates PERCENTILE_CONT(0.95) in SQLite with window functions and linear interpolation on CAST(\\\"MINK7512\\\" AS REAL), excluding NULLs and groups with fewer than 5 rows.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23047,"cached_input_tokens":12032,"output_tokens":2806,"reasoning_output_tokens":2158}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7aa77ed1fcb75f2e5ba8ce188e1bc6885b4939c4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"ranked\" AS (\n SELECT\n \"MGODOV\",\n CAST(\"MINK7512\" AS REAL) AS \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"MGODOV\"\n ORDER BY CAST(\"MINK7512\" AS REAL)\n ) AS \"rn\",\n COUNT(*) OVER (PARTITION BY \"MGODOV\") AS \"cnt\"\n FROM \"n15\"\n WHERE \"MGODOV\" IS NOT NULL\n AND \"MINK7512\" IS NOT NULL\n),\n\"scored\" AS (\n SELECT\n \"MGODOV\",\n \"measure_value\",\n \"rn\",\n \"cnt\",\n ((\"cnt\" - 1) * 0.95) + 1.0 AS \"pos\",\n CAST((((\"cnt\" - 1) * 0.95) + 1.0) AS INTEGER) AS \"lower_rn\",\n CASE\n WHEN (((\"cnt\" - 1) * 0.95) + 1.0) = CAST((((\"cnt\" - 1) * 0.95) + 1.0) AS INTEGER)\n THEN CAST((((\"cnt\" - 1) * 0.95) + 1.0) AS INTEGER)\n ELSE CAST((((\"cnt\" - 1) * 0.95) + 1.0) AS INTEGER) + 1\n END AS \"upper_rn\"\n FROM \"ranked\"\n),\n\"percentile_bounds\" AS (\n SELECT\n \"MGODOV\",\n MAX(\"cnt\") AS \"group_size\",\n MAX(\"pos\") AS \"pos\",\n MAX(\"lower_rn\") AS \"lower_rn\",\n MAX(\"upper_rn\") AS \"upper_rn\",\n MAX(CASE WHEN \"rn\" = \"lower_rn\" THEN \"measure_value\" END) AS \"lower_value\",\n MAX(CASE WHEN \"rn\" = \"upper_rn\" THEN \"measure_value\" END) AS \"upper_value\"\n FROM \"scored\"\n GROUP BY \"MGODOV\"\n)\nSELECT\n \"MGODOV\",\n CASE\n WHEN \"lower_rn\" = \"upper_rn\" THEN \"lower_value\"\n ELSE \"lower_value\" + ((\"pos\" - \"lower_rn\") * (\"upper_value\" - \"lower_value\"))\n END AS \"percentile_measure\"\nFROM \"percentile_bounds\"\nWHERE \"group_size\" >= 5\nORDER BY \"percentile_measure\" DESC, \"MGODOV\";","notes":"Emulates PERCENTILE_CONT(0.95) in SQLite with window functions and linear interpolation on CAST(\"MINK7512\" AS REAL), excluding NULLs and groups with fewer than 5 rows."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_09d85e0072607f12/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7ac0aa647e41a813051ab3185422bd0f5d9265f7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33251, "bytes_utf8": 33251, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 555, "bytes_utf8": 555, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23060, "cached_input_tokens": 21888, "output_tokens": 700, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f14a745a38c8bcf8498959df0b01ace2acc14e50 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_0a6e3f071a0577a2", + "api_calls": 0, + "input_tokens": 23060, + "cached_input_tokens": 21888, + "output_tokens": 700, + "total_tokens": 23760, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 22544.92, + "sql_execution_elapsed_ms_total": 12.43, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f061ecefc6701453194bd0636914c161d6794461 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:47:48.640409+00:00", + "ended_at": "2026-05-19T15:48:11.185365+00:00", + "elapsed_ms": 22544.92, + "prompt_metrics": { + "chars": 33251, + "bytes_utf8": 33251, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1610, + "bytes_utf8": 1610, + "lines": 6, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 555, + "bytes_utf8": 555, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23060, + "cached_input_tokens": 21888, + "output_tokens": 700, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..14d6213fcce4fe323afbe9da78bb058be53ce51a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_quantile_tail_slice", + "template_name": "Quantile Tail Slice", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MRELSA.", + "planned_template_id": "tpl_m4_quantile_tail_slice", + "bindings": { + "measure_col": "MRELSA", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ec8cc8e6d29779c9e7cd64999708cd5dcb8072a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,6 @@ +{"type":"thread.started","thread_id":"019e40ec-00c3-7fa2-8b33-cff5682a63de"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1980812, Requested 23695. Please try again in 135ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23695. Please try again in 710ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n CAST(\\\"MRELSA\\\" AS INTEGER) AS \\\"MRELSA\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"MRELSA\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MRELSA\\\" IS NOT NULL\\n)\\nSELECT \\\"MRELSA\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY \\\"MRELSA\\\" DESC;\",\"notes\":\"Applied the Quantile Tail Slice template with measure_col=\\\"MRELSA\\\" and num_tiles=10. \\\"MRELSA\\\" is stored as TEXT in SQLite, so it is cast to INTEGER to preserve numeric tail ordering.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23060,"cached_input_tokens":21888,"output_tokens":700,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..540ff0458bdd178181b49caf4df4bc772aece32e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n CAST(\"MRELSA\" AS INTEGER) AS \"MRELSA\",\n NTILE(10) OVER (ORDER BY CAST(\"MRELSA\" AS INTEGER) DESC) AS \"tail_bucket\"\n FROM \"n15\"\n WHERE \"MRELSA\" IS NOT NULL\n)\nSELECT \"MRELSA\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY \"MRELSA\" DESC;","notes":"Applied the Quantile Tail Slice template with measure_col=\"MRELSA\" and num_tiles=10. \"MRELSA\" is stored as TEXT in SQLite, so it is cast to INTEGER to preserve numeric tail ordering."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0a6e3f071a0577a2/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e4456e223309054b05ee7c7dfb67a96d890bb9d1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33889, "bytes_utf8": 33889, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 615, "bytes_utf8": 615, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23218, "cached_input_tokens": 12032, "output_tokens": 879, "reasoning_output_tokens": 693}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..314a124f53bfda847b7222b997e93141a934d62c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_0b5e53ef206a67da", + "api_calls": 0, + "input_tokens": 23218, + "cached_input_tokens": 12032, + "output_tokens": 879, + "total_tokens": 24097, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 18318.43, + "sql_execution_elapsed_ms_total": 5.97, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4ca518d0b4298eacf1d86fb1e3c1148041071e42 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:42:38.642640+00:00", + "ended_at": "2026-05-19T15:42:56.961112+00:00", + "elapsed_ms": 18318.43, + "prompt_metrics": { + "chars": 33889, + "bytes_utf8": 33889, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 984, + "bytes_utf8": 984, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 615, + "bytes_utf8": 615, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23218, + "cached_input_tokens": 12032, + "output_tokens": 879, + "reasoning_output_tokens": 693 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..f424d91f11f4048128dc356896fb9f9432a36ed5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_ratio_two_conditions", + "template_name": "Grouped Ratio of Two Conditions", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Ratio of Two Conditions to probe direction_consistency with semantic role contrastive_conditional_view. Focus on group_col=MINK7512, condition_col=APERSONG.", + "planned_template_id": "tpl_m4_group_ratio_two_conditions", + "bindings": { + "group_col": "MINK7512", + "condition_col": "APERSONG", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 14, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ab3cf024a030d298f7bb04f041c279de0771a892 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e7-454a-74f0-8b2c-1577e4329ce3"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_ratio_two_conditions.\\nWITH grouped AS (\\n SELECT \\\"MINK7512\\\",\\n SUM(CASE WHEN \\\"APERSONG\\\" = '0' THEN 1 ELSE 0 END) AS numerator_count,\\n SUM(CASE WHEN \\\"APERSONG\\\" = '1' THEN 1 ELSE 0 END) AS denominator_count\\n FROM \\\"n15\\\"\\n GROUP BY \\\"MINK7512\\\"\\n)\\nSELECT \\\"MINK7512\\\",\\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\\nFROM grouped\\nORDER BY condition_ratio DESC;\",\"notes\":\"Uses the grouped-ratio template with group_col=\\\"MINK7512\\\" and condition_col=\\\"APERSONG\\\", comparing TEXT values '0' to '1'.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23218,"cached_input_tokens":12032,"output_tokens":879,"reasoning_output_tokens":693}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6a7e90f87dac9927c0fd9b0192a6a7991de8ead8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_ratio_two_conditions.\nWITH grouped AS (\n SELECT \"MINK7512\",\n SUM(CASE WHEN \"APERSONG\" = '0' THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN \"APERSONG\" = '1' THEN 1 ELSE 0 END) AS denominator_count\n FROM \"n15\"\n GROUP BY \"MINK7512\"\n)\nSELECT \"MINK7512\",\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;","notes":"Uses the grouped-ratio template with group_col=\"MINK7512\" and condition_col=\"APERSONG\", comparing TEXT values '0' to '1'."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0b5e53ef206a67da/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0e99b22ac2d0168f/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0e99b22ac2d0168f/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e3057beac29f01044ca86fe92a150f3aa2669aec --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0e99b22ac2d0168f/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e4-653f-7a83-b08f-88a2f6c51309"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"MAUT2\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT2\\\" AS REAL)) AS \\\"total_measure\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"MAUT2\\\", \\\"MOSTYPE\\\"\\n)\\nSELECT\\n \\\"MAUT2\\\",\\n \\\"MOSTYPE\\\",\\n \\\"total_measure\\\",\\n CASE\\n WHEN SUM(\\\"total_measure\\\") OVER (PARTITION BY \\\"MAUT2\\\") = 0 THEN NULL\\n ELSE \\\"total_measure\\\" * 100.0 / SUM(\\\"total_measure\\\") OVER (PARTITION BY \\\"MAUT2\\\")\\n END AS \\\"share_within_group\\\"\\nFROM \\\"grouped\\\"\\nORDER BY \\\"share_within_group\\\" DESC, \\\"MAUT2\\\", \\\"MOSTYPE\\\"\\nLIMIT 12;\",\"notes\":\"Uses the requested template roles with group_col=\\\"MAUT2\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT2\\\". CAST is applied because the schema stores fields as TEXT, and the CASE avoids division-by-zero for groups where \\\"MAUT2\\\" sums to 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23127,"cached_input_tokens":21888,"output_tokens":1555,"reasoning_output_tokens":1290}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0e99b22ac2d0168f/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_0e99b22ac2d0168f/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ec42a3e58b31d3c66ed449de889755419264ec44 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:51.001320+00:00", + "ended_at": "2026-05-19T16:07:54.294425+00:00", + "elapsed_ms": 3293.08, + "returncode": 1, + "prompt_metrics": { + "chars": 33316, + "bytes_utf8": 33316, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8ee470f3d3557c796439d5f545a49aaefe65aed7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:55.298260+00:00", + "ended_at": "2026-05-19T16:07:58.333208+00:00", + "elapsed_ms": 3034.91, + "returncode": 1, + "prompt_metrics": { + "chars": 33316, + "bytes_utf8": 33316, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0731b66eac0b70e9b85dd5bfe60ed69f152fea14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MOPLHOOG, condition_col=MRELSA.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLHOOG", + "condition_col": "MRELSA", + "condition_value": "1", + "positive_value": "1", + "negative_value": "2", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..0731b66eac0b70e9b85dd5bfe60ed69f152fea14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MOPLHOOG, condition_col=MRELSA.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLHOOG", + "condition_col": "MRELSA", + "condition_value": "1", + "positive_value": "1", + "negative_value": "2", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..b4734dea2220da7c5a6394903569ec9f6ae95aa6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-58e0-7103-bdb2-442b3fbac9b2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5bf0d7fdfdf69060c1a91b13bca95c1cbecf741c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-58e0-7103-bdb2-442b3fbac9b2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..710e62b9dc1d76112f4f719945d49038d991f84b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-69b1-7b30-9c44-c23ddc24e1f6"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..2849ca510c246b356f476e82c9f1435b0d19ff44 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-69b1-7b30-9c44-c23ddc24e1f6"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11aa19db0cb99add/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..dc7ab9cacaabb6d409be455263ddb87966a95b20 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33489, "bytes_utf8": 33489, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 722, "bytes_utf8": 722, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23125, "cached_input_tokens": 21888, "output_tokens": 737, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..88667b0075eb7c7607f96f4f7d9735a82ff869ea --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_11d1a6df44d48c06", + "api_calls": 0, + "input_tokens": 23125, + "cached_input_tokens": 21888, + "output_tokens": 737, + "total_tokens": 23862, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16483.52, + "sql_execution_elapsed_ms_total": 9.35, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4635946bd8f96291190fff7b9c5804e097435311 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:41:11.596693+00:00", + "ended_at": "2026-05-19T15:41:28.080275+00:00", + "elapsed_ms": 16483.52, + "prompt_metrics": { + "chars": 33489, + "bytes_utf8": 33489, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1115, + "bytes_utf8": 1115, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 722, + "bytes_utf8": 722, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23125, + "cached_input_tokens": 21888, + "output_tokens": 737, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..90db70c1bee5df2e5acf9d98db459219baf3df89 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MZFONDS, measure_col=MZFONDS.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MZFONDS", + "measure_col": "MZFONDS", + "item_col": "MOSTYPE", + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 7.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..3faf44fea749b36a813d92aa1eb189d6919d4527 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e5-f159-7ab0-b9bc-1514aa50d39d"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MZFONDS\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MZFONDS\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MZFONDS\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MZFONDS\\\" AS REAL))) OVER (PARTITION BY \\\"MZFONDS\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nWHERE \\\"MZFONDS\\\" IS NOT NULL\\n AND \\\"MOSTYPE\\\" IS NOT NULL\\nGROUP BY \\\"MZFONDS\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC\\nLIMIT 14;\",\"notes\":\"Uses the requested Within-Group Share of Total template with group_col=\\\"MZFONDS\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MZFONDS\\\". CAST is applied because the SQLite schema stores these fields as TEXT, and NULLIF avoids division-by-zero for zero-valued groups.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23125,"cached_input_tokens":21888,"output_tokens":737,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..33bcd7d58e7e34b41ea97bddfed4c22d69ac4db7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MZFONDS\",\n \"MOSTYPE\",\n SUM(CAST(\"MZFONDS\" AS REAL)) AS total_measure,\n SUM(CAST(\"MZFONDS\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MZFONDS\" AS REAL))) OVER (PARTITION BY \"MZFONDS\"), 0) AS share_within_group\nFROM \"n15\"\nWHERE \"MZFONDS\" IS NOT NULL\n AND \"MOSTYPE\" IS NOT NULL\nGROUP BY \"MZFONDS\", \"MOSTYPE\"\nORDER BY share_within_group DESC\nLIMIT 14;","notes":"Uses the requested Within-Group Share of Total template with group_col=\"MZFONDS\", item_col=\"MOSTYPE\", and measure_col=\"MZFONDS\". CAST is applied because the SQLite schema stores these fields as TEXT, and NULLIF avoids division-by-zero for zero-valued groups."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_11d1a6df44d48c06/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..5aaa9fbb8fe39ab815c62ca9744adbb9509ddecf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33642, "bytes_utf8": 33642, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 633, "bytes_utf8": 633, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23148, "cached_input_tokens": 21888, "output_tokens": 472, "reasoning_output_tokens": 297}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..ea231366520908c723d1d1b15568bb48681fe45d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_12f79adc65f4d990", + "api_calls": 0, + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 472, + "total_tokens": 23620, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13742.16, + "sql_execution_elapsed_ms_total": 9.69, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7a5e54cc10a68900a9e5ac3fa7f6bbea2f5bf90b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:49:28.942216+00:00", + "ended_at": "2026-05-19T15:49:42.684403+00:00", + "elapsed_ms": 13742.16, + "prompt_metrics": { + "chars": 33642, + "bytes_utf8": 33642, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1000, + "bytes_utf8": 1000, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 633, + "bytes_utf8": 633, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 472, + "reasoning_output_tokens": 297 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..deeb14e89540188a6bef1fa95b488c1122b03fbe --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=ATRACTOR, measure_col=MBERHOOG.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ATRACTOR", + "measure_col": "MBERHOOG", + "top_k": 17, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..9e6ce69242250d2517484d4dec0f44a00fdf82c0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ed-87f8-7d10-807c-8dcfd9105c88"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"ATRACTOR\\\", SUM(CAST(\\\"MBERHOOG\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ATRACTOR\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"ATRACTOR\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.05\\nORDER BY g.group_value DESC;\",\"notes\":\"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\\\"ATRACTOR\\\" and measure_col=\\\"MBERHOOG\\\". CAST to REAL is used because the schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23148,"cached_input_tokens":21888,"output_tokens":472,"reasoning_output_tokens":297}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ddb243919e6cb9e6a8629752ce3f87343650eca8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"ATRACTOR\", SUM(CAST(\"MBERHOOG\" AS REAL)) AS group_value\n FROM \"n15\"\n GROUP BY \"ATRACTOR\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"ATRACTOR\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.05\nORDER BY g.group_value DESC;","notes":"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\"ATRACTOR\" and measure_col=\"MBERHOOG\". CAST to REAL is used because the schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_12f79adc65f4d990/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..edc1a2ab359373911d145ab53964922e8349ecfc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/final_answer.txt @@ -0,0 +1,2 @@ +SQL executed successfully for: Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=AWERKT, measure_col=MBERZELF. +Result preview: [{"AWERKT": "0", "group_value": 3952.0}] \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..1962b751fcf88bcb14eda14294f8d6cc70b29a3b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/generated_sql.sql @@ -0,0 +1,28 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: tail_rarity_structure +-- canonical_subitem_id: tail_mass_similarity +-- intended_facet_id: tail_ranked_signal +-- variant_semantic_role: count_distribution +-- template_id: tpl_tpch_relative_total_threshold +-- query_record_id: v2q_n15_187cafd064a7989f +-- problem_id: v2p_n15_f6580f642495b7ac +-- realization_mode: agent +-- source_kind: agent +WITH grouped AS ( + SELECT + "AWERKT", + SUM(CAST("MBERZELF" AS REAL)) AS group_value + FROM "n15" + GROUP BY "AWERKT" +), total AS ( + SELECT SUM(group_value) AS total_value + FROM grouped +) +SELECT g."AWERKT", g.group_value +FROM grouped AS g +CROSS JOIN total AS t +WHERE g.group_value > t.total_value * 0.05 +ORDER BY g.group_value DESC; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..77fdf64d279c305af98a59ade6a5484ab0b2ecc0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/query_results.jsonl @@ -0,0 +1 @@ +{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT\n \"AWERKT\",\n SUM(CAST(\"MBERZELF\" AS REAL)) AS group_value\n FROM \"n15\"\n GROUP BY \"AWERKT\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"AWERKT\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.05\nORDER BY g.group_value DESC;", "result": "{\"query\": \"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT\\n \\\"AWERKT\\\",\\n SUM(CAST(\\\"MBERZELF\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"AWERKT\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"AWERKT\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.05\\nORDER BY g.group_value DESC;\", \"columns\": [\"AWERKT\", \"group_value\"], \"rows\": [{\"AWERKT\": \"0\", \"group_value\": 3952.0}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 8.75}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..a155d020728d885dbc05243b77c3376b923f2b4e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/run_manifest.json @@ -0,0 +1,89 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T15:50:00.395931+00:00", + "ended_at": "2026-05-19T15:50:16.507652+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_187cafd064a7989f", + "problem_id": "v2p_n15_f6580f642495b7ac", + "dataset_id": "n15", + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "family_id": "tail_rarity_structure", + "canonical_subitem_id": "tail_mass_similarity", + "intended_facet_id": "tail_ranked_signal", + "variant_semantic_role": "count_distribution", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=AWERKT, measure_col=MBERZELF.", + "bindings": { + "group_col": "AWERKT", + "measure_col": "MBERZELF", + "top_k": 18, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.28, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "measure_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "notes": [ + "default_facets=tail_ranked_signal", + "template_selection_mode=rule", + "problem_index_within_template=2", + "sql_variant_index=2/2", + "binding_index=73" + ], + "template_selection_mode": "rule", + "selected_template_rank": 7, + "problem_index_within_template": 2, + "sql_variant_index": 2, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_187cafd064a7989f.sql", + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_187cafd064a7989f", + "api_calls": 0, + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 667, + "total_tokens": 23815, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16091.04, + "sql_execution_elapsed_ms_total": 8.75, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f74f3913236ca5deb34398130503e2b6d2b11be0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/trace.jsonl @@ -0,0 +1 @@ +{"timestamp": "2026-05-19T15:50:16.496400+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 16091.04, "started_at": "2026-05-19T15:50:00.404220+00:00", "ended_at": "2026-05-19T15:50:16.495303+00:00", "prompt_metrics": {"chars": 33637, "bytes_utf8": 33637, "lines": 1128, "estimated_tokens": null}, "response_metrics": {"chars": 635, "bytes_utf8": 635, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23148, "cached_input_tokens": 21888, "output_tokens": 667, "reasoning_output_tokens": 488}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT\\n \\\"AWERKT\\\",\\n SUM(CAST(\\\"MBERZELF\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"AWERKT\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"AWERKT\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.05\\nORDER BY g.group_value DESC;\",\"notes\":\"Used the planned relative-to-total threshold template with group_col=\\\"AWERKT\\\" and measure_col=\\\"MBERZELF\\\". CAST to REAL is included because the schema stores these fields as TEXT.\"}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..dd26f489b20047b1361b93bc0633aa5fb268c894 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/usage_summary.json @@ -0,0 +1,20 @@ +{ + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_187cafd064a7989f", + "api_calls": 0, + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 667, + "total_tokens": 23815, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16091.04, + "sql_execution_elapsed_ms_total": 8.75, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_187cafd064a7989f/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..217988d308f40aad31a0cea3104dbbdb4ebc9834 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33886, "bytes_utf8": 33886, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 653, "bytes_utf8": 653, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23216, "cached_input_tokens": 12032, "output_tokens": 603, "reasoning_output_tokens": 414}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..36c20eba5f6cee0d60270448bd0d9d69cca4f01a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_1d02067fb1e0323e", + "api_calls": 0, + "input_tokens": 23216, + "cached_input_tokens": 12032, + "output_tokens": 603, + "total_tokens": 23819, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 24186.81, + "sql_execution_elapsed_ms_total": 9.01, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8e47d43317385a42ab0ddc629b2040cfe2b01af9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:42:14.435243+00:00", + "ended_at": "2026-05-19T15:42:38.622091+00:00", + "elapsed_ms": 24186.81, + "prompt_metrics": { + "chars": 33886, + "bytes_utf8": 33886, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2021, + "bytes_utf8": 2021, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 653, + "bytes_utf8": 653, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23216, + "cached_input_tokens": 12032, + "output_tokens": 603, + "reasoning_output_tokens": 414 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3b7354ec85da0908fac14a453510474913be8c71 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_ratio_two_conditions", + "template_name": "Grouped Ratio of Two Conditions", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Ratio of Two Conditions to probe direction_consistency with semantic role contrastive_conditional_view. Focus on group_col=MINK4575, condition_col=ALEVEN.", + "planned_template_id": "tpl_m4_group_ratio_two_conditions", + "bindings": { + "group_col": "MINK4575", + "condition_col": "ALEVEN", + "condition_value": "1", + "positive_value": "1", + "negative_value": "0", + "top_k": 13, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..802de3ba9228c105902fad185c7f87b0c995a4a0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40e6-e6c6-7af1-9055-5ca793d1aeba"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23851. Please try again in 715ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1988049, Requested 23851. Please try again in 357ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23851. Please try again in 715ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_ratio_two_conditions\\nWITH grouped AS (\\n SELECT \\\"MINK4575\\\",\\n SUM(CASE WHEN \\\"ALEVEN\\\" = '1' THEN 1 ELSE 0 END) AS numerator_count,\\n SUM(CASE WHEN \\\"ALEVEN\\\" = '0' THEN 1 ELSE 0 END) AS denominator_count\\n FROM \\\"n15\\\"\\n GROUP BY \\\"MINK4575\\\"\\n)\\nSELECT \\\"MINK4575\\\",\\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\\nFROM grouped\\nORDER BY condition_ratio DESC;\",\"notes\":\"Uses the provided grouped ratio template with group_col=\\\"MINK4575\\\" and condition_col=\\\"ALEVEN\\\", treating the coded values as TEXT ('1' vs '0') per the SQLite schema.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23216,"cached_input_tokens":12032,"output_tokens":603,"reasoning_output_tokens":414}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2298ce69cbba955e47dca4741c6521a7991a21c4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_ratio_two_conditions\nWITH grouped AS (\n SELECT \"MINK4575\",\n SUM(CASE WHEN \"ALEVEN\" = '1' THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN \"ALEVEN\" = '0' THEN 1 ELSE 0 END) AS denominator_count\n FROM \"n15\"\n GROUP BY \"MINK4575\"\n)\nSELECT \"MINK4575\",\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;","notes":"Uses the provided grouped ratio template with group_col=\"MINK4575\" and condition_col=\"ALEVEN\", treating the coded values as TEXT ('1' vs '0') per the SQLite schema."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1d02067fb1e0323e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bf7d45c07a0d753e67e6a1bab2ddf5867ff6e459 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33636, "bytes_utf8": 33636, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 680, "bytes_utf8": 680, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23146, "cached_input_tokens": 12032, "output_tokens": 691, "reasoning_output_tokens": 497}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f7fd0c48742ad11a4948cdaca7c9a1919f4ca271 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_1e497f1df3329564", + "api_calls": 0, + "input_tokens": 23146, + "cached_input_tokens": 12032, + "output_tokens": 691, + "total_tokens": 23837, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 27770.8, + "sql_execution_elapsed_ms_total": 5.36, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0a405cc3f47fa35c1f1ce1ab4ee61dc4ee02ba34 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:50:35.704555+00:00", + "ended_at": "2026-05-19T15:51:03.475403+00:00", + "elapsed_ms": 27770.8, + "prompt_metrics": { + "chars": 33636, + "bytes_utf8": 33636, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2077, + "bytes_utf8": 2077, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 680, + "bytes_utf8": 680, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23146, + "cached_input_tokens": 12032, + "output_tokens": 691, + "reasoning_output_tokens": 497 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e6cc66e4711b3d777f47a91cf4b9186f8806423c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=ABROM, measure_col=MBERBOER.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ABROM", + "measure_col": "MBERBOER", + "top_k": 19, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..6e48531e9be304085938b6ff50b72f4bbf0c22c0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40ee-8ce0-7770-abcb-c40b2cec82b0"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1976996, Requested 23781. Please try again in 23ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1984939, Requested 23781. Please try again in 261ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23781. Please try again in 713ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"ABROM\\\", SUM(CAST(\\\"MBERBOER\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ABROM\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"ABROM\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.05\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\\\"ABROM\\\" and measure_col=\\\"MBERBOER\\\". CAST(\\\"MBERBOER\\\" AS REAL) is used because the schema stores numeric-like fields as TEXT in SQLite.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23146,"cached_input_tokens":12032,"output_tokens":691,"reasoning_output_tokens":497}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6df5ba2b6914f8c296051f8971c23f046f73ba33 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"ABROM\", SUM(CAST(\"MBERBOER\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"ABROM\"\n), total AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM grouped\n)\nSELECT g.\"ABROM\", g.\"group_value\"\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.05\nORDER BY g.\"group_value\" DESC;","notes":"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\"ABROM\" and measure_col=\"MBERBOER\". CAST(\"MBERBOER\" AS REAL) is used because the schema stores numeric-like fields as TEXT in SQLite."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1e497f1df3329564/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f9c35188d6e775adf0515eb3836d786d1f3354b2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:35.478446+00:00", + "ended_at": "2026-05-19T16:10:38.367294+00:00", + "elapsed_ms": 2888.82, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..020b5a9f414fcb48d2abc2044fa720c7e74d7de8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:39.371244+00:00", + "ended_at": "2026-05-19T16:10:43.299595+00:00", + "elapsed_ms": 3928.3, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b95cdfe9ecdbc1678d00654bf413eeb13ed82ff7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MZPART.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZPART", + "top_k": 16, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b95cdfe9ecdbc1678d00654bf413eeb13ed82ff7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MZPART.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZPART", + "top_k": 16, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..0765039100027b606f875b9078b4ba8b4f957261 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-db5b-7741-8b21-b5d40df401b8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d45af2ce8c7a87960108e9ce09b4db3ab0b6fd21 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-db5b-7741-8b21-b5d40df401b8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..27da0a25d02025f53b80446c5ca06885bbe07fe0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-eaaf-76f1-9737-6ea9d0982730"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..589bd47defac5a05ffd407ea98bff5f54778b9d3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-eaaf-76f1-9737-6ea9d0982730"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1ee19d135dbabc1b/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0e896089fb2c6e32fbc3624291dd4344adb768a4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33633, "bytes_utf8": 33633, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 617, "bytes_utf8": 617, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23144, "cached_input_tokens": 12032, "output_tokens": 527, "reasoning_output_tokens": 354}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..582c4dc3609dd5676f9cc2c32ddc033d070cb1ee --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_1f8264bb5d87d53e", + "api_calls": 0, + "input_tokens": 23144, + "cached_input_tokens": 12032, + "output_tokens": 527, + "total_tokens": 23671, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11167.41, + "sql_execution_elapsed_ms_total": 8.32, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..013aaa4adb5e3fb3281995ef90e07a92385261c3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:54:28.923852+00:00", + "ended_at": "2026-05-19T15:54:40.091295+00:00", + "elapsed_ms": 11167.41, + "prompt_metrics": { + "chars": 33633, + "bytes_utf8": 33633, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 984, + "bytes_utf8": 984, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 617, + "bytes_utf8": 617, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23144, + "cached_input_tokens": 12032, + "output_tokens": 527, + "reasoning_output_tokens": 354 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..c767aea7c94e0edc31dbfb1ba37e01ae65fca65e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=APLEZIER, measure_col=MSKC.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "APLEZIER", + "measure_col": "MSKC", + "top_k": 16, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.28, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8442b1deccb1f0cda88d05e1347c32933fdb4043 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f2-1bd6-7311-9014-561a82303f87"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"APLEZIER\\\", SUM(CAST(\\\"MSKC\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"APLEZIER\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"APLEZIER\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.05\\nORDER BY g.group_value DESC;\",\"notes\":\"Uses the required Relative-to-Total Extreme Threshold template with group_col=\\\"APLEZIER\\\" and measure_col=\\\"MSKC\\\". CAST is applied because the schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23144,"cached_input_tokens":12032,"output_tokens":527,"reasoning_output_tokens":354}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..54bb8771dbffd10e5b074cb9d3856cbba9baffab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"APLEZIER\", SUM(CAST(\"MSKC\" AS REAL)) AS group_value\n FROM \"n15\"\n GROUP BY \"APLEZIER\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"APLEZIER\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.05\nORDER BY g.group_value DESC;","notes":"Uses the required Relative-to-Total Extreme Threshold template with group_col=\"APLEZIER\" and measure_col=\"MSKC\". CAST is applied because the schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_1f8264bb5d87d53e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f14e5d678dd3e9450f23f141169bac0225fc5310 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33315, "bytes_utf8": 33315, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33315, "bytes_utf8": 33315, "lines": 1131, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 446, "bytes_utf8": 446, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23070, "cached_input_tokens": 12032, "output_tokens": 407, "reasoning_output_tokens": 274}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..16490e6e8a38be88d59abca2a9b3a9d898238a4b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_203aed5cf76d64f7", + "api_calls": 0, + "input_tokens": 23070, + "cached_input_tokens": 12032, + "output_tokens": 407, + "total_tokens": 23477, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13123.3, + "sql_execution_elapsed_ms_total": 6.14, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..90f5cd7b7a1b35ed35dc29cd488bed0adc517c5f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:36.945854+00:00", + "ended_at": "2026-05-19T16:06:40.390443+00:00", + "elapsed_ms": 3444.56, + "returncode": 1, + "prompt_metrics": { + "chars": 33315, + "bytes_utf8": 33315, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2add0e5836e4d460832b1ebec4f46fc3f29d7f34 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:41.394301+00:00", + "ended_at": "2026-05-19T16:06:51.073084+00:00", + "elapsed_ms": 9678.74, + "prompt_metrics": { + "chars": 33315, + "bytes_utf8": 33315, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 809, + "bytes_utf8": 809, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 446, + "bytes_utf8": 446, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23070, + "cached_input_tokens": 12032, + "output_tokens": 407, + "reasoning_output_tokens": 274 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0d59cb8520ba67e0e2355c8359fbe5a11e9da000 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MRELOV, condition_col=CARAVAN.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELOV", + "condition_col": "CARAVAN", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 12, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 2.25, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..0d59cb8520ba67e0e2355c8359fbe5a11e9da000 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MRELOV, condition_col=CARAVAN.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELOV", + "condition_col": "CARAVAN", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 12, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 2.25, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1d6ebd673696578cf54039d68d7968d55084fbc3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-37a3-7fe3-99be-7607346192e3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b5de73f3481fd2c510754b9794f3ffb2a3012906 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-37a3-7fe3-99be-7607346192e3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..94cc4de741e67b01850680209bd948d03c2f914e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-48e0-7061-8876-0daaad365603"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_condition_rate\\nSELECT \\\"MRELOV\\\",\\n AVG(CASE WHEN \\\"CARAVAN\\\" = '0' THEN 1.0 ELSE 0.0 END) AS \\\"condition_rate\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MRELOV\\\"\\nORDER BY \\\"condition_rate\\\" DESC;\",\"notes\":\"Uses the planned Grouped Condition Rate template with group_col=\\\"MRELOV\\\" and condition_col=\\\"CARAVAN\\\". The condition value is compared as text ('0') because the SQLite schema stores these columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23070,"cached_input_tokens":12032,"output_tokens":407,"reasoning_output_tokens":274}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..8600355b196b723277d1ef5b980bbb7a13b835f1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_condition_rate\nSELECT \"MRELOV\",\n AVG(CASE WHEN \"CARAVAN\" = '0' THEN 1.0 ELSE 0.0 END) AS \"condition_rate\"\nFROM \"n15\"\nGROUP BY \"MRELOV\"\nORDER BY \"condition_rate\" DESC;","notes":"Uses the planned Grouped Condition Rate template with group_col=\"MRELOV\" and condition_col=\"CARAVAN\". The condition value is compared as text ('0') because the SQLite schema stores these columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_203aed5cf76d64f7/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ed6068fbdcd0cbaa4aacd83e53ac1e96ca178e7d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33327, "bytes_utf8": 33327, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33327, "bytes_utf8": 33327, "lines": 1131, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 421, "bytes_utf8": 421, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23070, "cached_input_tokens": 12032, "output_tokens": 425, "reasoning_output_tokens": 297}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..a374b76966191fc505383170f6588c55c777d640 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_20c5efe4b83c8d1a", + "api_calls": 0, + "input_tokens": 23070, + "cached_input_tokens": 12032, + "output_tokens": 425, + "total_tokens": 23495, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13220.01, + "sql_execution_elapsed_ms_total": 8.04, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..17203978a26afccc611830d94527236f4b111492 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:22.705082+00:00", + "ended_at": "2026-05-19T16:06:25.900353+00:00", + "elapsed_ms": 3195.25, + "returncode": 1, + "prompt_metrics": { + "chars": 33327, + "bytes_utf8": 33327, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ffbdf7af78056aa95dc980c4ad17336edd395566 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:26.903780+00:00", + "ended_at": "2026-05-19T16:06:36.928591+00:00", + "elapsed_ms": 10024.76, + "prompt_metrics": { + "chars": 33327, + "bytes_utf8": 33327, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 780, + "bytes_utf8": 780, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 421, + "bytes_utf8": 421, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23070, + "cached_input_tokens": 12032, + "output_tokens": 425, + "reasoning_output_tokens": 297 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69341e887984a87fc48d3499dcaaef3649b2f66 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MRELSA, condition_col=ABYSTAND.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELSA", + "condition_col": "ABYSTAND", + "condition_value": "1", + "positive_value": "0", + "negative_value": "1", + "top_k": 16, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69341e887984a87fc48d3499dcaaef3649b2f66 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MRELSA, condition_col=ABYSTAND.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELSA", + "condition_col": "ABYSTAND", + "condition_value": "1", + "positive_value": "0", + "negative_value": "1", + "top_k": 16, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..640f9b3f03d6df190ccff1497c99fa0a92ec45f0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-0006-77c2-af9a-dcc741b35616"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d04b6ea08dba3afea2c9f0e8be19f9977487523a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-0006-77c2-af9a-dcc741b35616"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8910ce41160f1f1cd9e8a026985c6ad3bc95db67 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-105f-78c1-8152-404f1c9f4ff9"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_condition_rate\\nSELECT \\\"MRELSA\\\",\\n AVG(CASE WHEN \\\"ABYSTAND\\\" = '1' THEN 1 ELSE 0 END) AS condition_rate\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MRELSA\\\"\\nORDER BY condition_rate DESC;\",\"notes\":\"Computes the rate of rows with \\\"ABYSTAND\\\"='1' within each \\\"MRELSA\\\" group, following the planned Grouped Condition Rate template. \\\"ABYSTAND\\\" is compared as text to match the SQLite schema.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23070,"cached_input_tokens":12032,"output_tokens":425,"reasoning_output_tokens":297}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..7dbce44d26be07af37bf367af0191c74afabac54 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_condition_rate\nSELECT \"MRELSA\",\n AVG(CASE WHEN \"ABYSTAND\" = '1' THEN 1 ELSE 0 END) AS condition_rate\nFROM \"n15\"\nGROUP BY \"MRELSA\"\nORDER BY condition_rate DESC;","notes":"Computes the rate of rows with \"ABYSTAND\"='1' within each \"MRELSA\" group, following the planned Grouped Condition Rate template. \"ABYSTAND\" is compared as text to match the SQLite schema."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_20c5efe4b83c8d1a/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..07d997529e9e3f590623602f8b8405f14a564da7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/final_answer.txt @@ -0,0 +1,2 @@ +SQL executed successfully for: Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=AGEZONG, measure_col=MBERARBO. +Result preview: [{"AGEZONG": "0", "group_value": 22350.0}] \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..92c199c7d71e7febb8f9ec5beeb5e1a325fccfb4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/generated_sql.sql @@ -0,0 +1,28 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: tail_rarity_structure +-- canonical_subitem_id: tail_mass_similarity +-- intended_facet_id: tail_ranked_signal +-- variant_semantic_role: filtered_stable_view +-- template_id: tpl_tpch_relative_total_threshold +-- query_record_id: v2q_n15_2124153fa4a5b5d1 +-- problem_id: v2p_n15_a090aaeaec9c32ce +-- realization_mode: agent +-- source_kind: agent +WITH grouped AS ( + SELECT "AGEZONG", SUM(CAST("MBERARBO" AS REAL)) AS "group_value" + FROM "n15" + WHERE "AGEZONG" IS NOT NULL + AND "MBERARBO" IS NOT NULL + GROUP BY "AGEZONG" +), total AS ( + SELECT SUM("group_value") AS "total_value" + FROM grouped +) +SELECT g."AGEZONG", g."group_value" +FROM grouped AS g +CROSS JOIN total AS t +WHERE g."group_value" > t."total_value" * 0.1 +ORDER BY g."group_value" DESC; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..add9dd5e5b5e6efe6541b1c9150209c967c1d1b3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/query_results.jsonl @@ -0,0 +1 @@ +{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"AGEZONG\", SUM(CAST(\"MBERARBO\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n WHERE \"AGEZONG\" IS NOT NULL\n AND \"MBERARBO\" IS NOT NULL\n GROUP BY \"AGEZONG\"\n), total AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM grouped\n)\nSELECT g.\"AGEZONG\", g.\"group_value\"\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;", "result": "{\"query\": \"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"AGEZONG\\\", SUM(CAST(\\\"MBERARBO\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"AGEZONG\\\" IS NOT NULL\\n AND \\\"MBERARBO\\\" IS NOT NULL\\n GROUP BY \\\"AGEZONG\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"AGEZONG\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\", \"columns\": [\"AGEZONG\", \"group_value\"], \"rows\": [{\"AGEZONG\": \"0\", \"group_value\": 22350.0}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 12.61}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..a0710264f48687c966b55678f2b92d55c25adb49 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/run_manifest.json @@ -0,0 +1,89 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T15:51:54.843025+00:00", + "ended_at": "2026-05-19T15:52:25.134359+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_2124153fa4a5b5d1", + "problem_id": "v2p_n15_a090aaeaec9c32ce", + "dataset_id": "n15", + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "family_id": "tail_rarity_structure", + "canonical_subitem_id": "tail_mass_similarity", + "intended_facet_id": "tail_ranked_signal", + "variant_semantic_role": "filtered_stable_view", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=AGEZONG, measure_col=MBERARBO.", + "bindings": { + "group_col": "AGEZONG", + "measure_col": "MBERARBO", + "top_k": 12, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "measure_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "notes": [ + "default_facets=tail_ranked_signal", + "template_selection_mode=rule", + "problem_index_within_template=6", + "sql_variant_index=1/2", + "binding_index=77" + ], + "template_selection_mode": "rule", + "selected_template_rank": 7, + "problem_index_within_template": 6, + "sql_variant_index": 1, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_2124153fa4a5b5d1.sql", + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_2124153fa4a5b5d1", + "api_calls": 0, + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 793, + "total_tokens": 23941, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 30266.3, + "sql_execution_elapsed_ms_total": 12.61, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..810c2b06b2f5098879f02ab1e0b2fda943c769d5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/trace.jsonl @@ -0,0 +1 @@ +{"timestamp": "2026-05-19T15:52:25.118316+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 30266.3, "started_at": "2026-05-19T15:51:54.850115+00:00", "ended_at": "2026-05-19T15:52:25.116476+00:00", "prompt_metrics": {"chars": 33637, "bytes_utf8": 33637, "lines": 1128, "estimated_tokens": null}, "response_metrics": {"chars": 758, "bytes_utf8": 758, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23148, "cached_input_tokens": 21888, "output_tokens": 793, "reasoning_output_tokens": 574}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"AGEZONG\\\", SUM(CAST(\\\"MBERARBO\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"AGEZONG\\\" IS NOT NULL\\n AND \\\"MBERARBO\\\" IS NOT NULL\\n GROUP BY \\\"AGEZONG\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"AGEZONG\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Uses the planned relative-to-total threshold template with group_col=\\\"AGEZONG\\\", measure_col=\\\"MBERARBO\\\", and fraction_threshold=0.1. Casts the measure from TEXT to REAL for SQLite-safe aggregation and filters out NULLs.\"}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..17560aa20c22d45ebef9ef9c045b93fb0ed617fd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/usage_summary.json @@ -0,0 +1,20 @@ +{ + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_2124153fa4a5b5d1", + "api_calls": 0, + "input_tokens": 23148, + "cached_input_tokens": 21888, + "output_tokens": 793, + "total_tokens": 23941, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 30266.3, + "sql_execution_elapsed_ms_total": 12.61, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2124153fa4a5b5d1/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..508fd8cabe2bb9fb25c57e1ee0ab47f21f1d0952 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:53.628012+00:00", + "ended_at": "2026-05-19T16:08:56.240299+00:00", + "elapsed_ms": 2612.26, + "returncode": 1, + "prompt_metrics": { + "chars": 33334, + "bytes_utf8": 33334, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..44a25e582ce920b5ccf7a389aa2fb3769b15aa2a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:57.242616+00:00", + "ended_at": "2026-05-19T16:09:00.539928+00:00", + "elapsed_ms": 3297.28, + "returncode": 1, + "prompt_metrics": { + "chars": 33334, + "bytes_utf8": 33334, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3df8916c941126676ed20f971beb5024effd4a5d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MBERHOOG, condition_col=MINK123M.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MBERHOOG", + "condition_col": "MINK123M", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..3df8916c941126676ed20f971beb5024effd4a5d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MBERHOOG, condition_col=MINK123M.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MBERHOOG", + "condition_col": "MINK123M", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..58e2fcdab043630f12bf7e54af1b337d7c4bd314 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-4d7a-76e1-b9d9-d72ceadb6bdb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a106dea898bb821919c9e921ff9325f91a778087 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-4d7a-76e1-b9d9-d72ceadb6bdb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..bd7b6bc360cc3cced500185b20156a616a7aab3c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-5baf-7540-b63e-7ef9e256c46a"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..4cfa8784f853b76ecec6fdc3add254ec96f448e3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-5baf-7540-b63e-7ef9e256c46a"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_22ee8dd87bbbfa09/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2f6555506de8cc7245b1c2be588f804c2c69b4c0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:10.212295+00:00", + "ended_at": "2026-05-19T16:14:13.678763+00:00", + "elapsed_ms": 3466.44, + "returncode": 1, + "prompt_metrics": { + "chars": 33160, + "bytes_utf8": 33160, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..39a73ab303c81546c5762c38dc755e8312f4a37d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:14.682177+00:00", + "ended_at": "2026-05-19T16:14:17.399802+00:00", + "elapsed_ms": 2717.57, + "returncode": 1, + "prompt_metrics": { + "chars": 33160, + "bytes_utf8": 33160, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..43c594d90235b8ad7f394624a4b7e4472a1200ae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PLEVEN, measure_col=MAUT2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PLEVEN", + "measure_col": "MAUT2", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..43c594d90235b8ad7f394624a4b7e4472a1200ae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PLEVEN, measure_col=MAUT2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PLEVEN", + "measure_col": "MAUT2", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e56a5e0be56d50aac062e8f12dd5f81490470feb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-2246-7e70-acc4-8c2744d8f144"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3e41292159c7d2a3f1a7f81e93aa89166cc5315f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-2246-7e70-acc4-8c2744d8f144"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..34968f0c79fd144d5c689bc9ba5f55f0c7cd091d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-338d-7921-9ae7-287182e8fd3f"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..661dcf1e43fb7090a9e77109673a1af2242f5272 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-338d-7921-9ae7-287182e8fd3f"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26771332caf1bcd0/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..68dfc8cc7c892872ec78b7812f2a9a1fe254eaa9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_26878e3e07183063", + "api_calls": 0, + "input_tokens": 23142, + "cached_input_tokens": 12032, + "output_tokens": 624, + "total_tokens": 23766, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 12423.03, + "sql_execution_elapsed_ms_total": 5.64, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1e8f7157464ee5c3bf6dd0fccd4daad61404603e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:51:16.973619+00:00", + "ended_at": "2026-05-19T15:51:29.396673+00:00", + "elapsed_ms": 12423.03, + "prompt_metrics": { + "chars": 33637, + "bytes_utf8": 33637, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1107, + "bytes_utf8": 1107, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 687, + "bytes_utf8": 687, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23142, + "cached_input_tokens": 12032, + "output_tokens": 624, + "reasoning_output_tokens": 418 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5f7d1e2c9118f735d4ee2bfa366d85ebe97abf3a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=ALEVEN, measure_col=MBERMIDD.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ALEVEN", + "measure_col": "MBERMIDD", + "top_k": 15, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8b6839543687545d938ab4b65f343066f45afd88 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ef-2e16-7031-9381-0d79449f5b58"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"ALEVEN\\\",\\n SUM(CAST(\\\"MBERMIDD\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ALEVEN\\\"\\n),\\n\\\"total\\\" AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM \\\"grouped\\\"\\n)\\nSELECT\\n g.\\\"ALEVEN\\\",\\n g.\\\"group_value\\\"\\nFROM \\\"grouped\\\" AS g\\nCROSS JOIN \\\"total\\\" AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.05\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Used the planned Relative-to-Total Extreme Threshold template with group_col=\\\"ALEVEN\\\" and measure_col=\\\"MBERMIDD\\\". CAST to REAL is included because the SQLite schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23142,"cached_input_tokens":12032,"output_tokens":624,"reasoning_output_tokens":418}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a464bd9f624752db361c2625fa795183bcda8005 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH \"grouped\" AS (\n SELECT\n \"ALEVEN\",\n SUM(CAST(\"MBERMIDD\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"ALEVEN\"\n),\n\"total\" AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM \"grouped\"\n)\nSELECT\n g.\"ALEVEN\",\n g.\"group_value\"\nFROM \"grouped\" AS g\nCROSS JOIN \"total\" AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.05\nORDER BY g.\"group_value\" DESC;","notes":"Used the planned Relative-to-Total Extreme Threshold template with group_col=\"ALEVEN\" and measure_col=\"MBERMIDD\". CAST to REAL is included because the SQLite schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_26878e3e07183063/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6e5a2d3f86a3c19b842556d2ff8f37127d1d8d25 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:49.552423+00:00", + "ended_at": "2026-05-19T16:09:52.876861+00:00", + "elapsed_ms": 3324.41, + "returncode": 1, + "prompt_metrics": { + "chars": 33017, + "bytes_utf8": 33017, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..634025d467f5a677121195304f8fbe5bcd9fea46 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:53.880331+00:00", + "ended_at": "2026-05-19T16:09:56.768444+00:00", + "elapsed_ms": 2888.06, + "returncode": 1, + "prompt_metrics": { + "chars": 33017, + "bytes_utf8": 33017, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3259d689f6dff9d67d9d89f1c02c26d03342733f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODPR.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODPR", + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..3259d689f6dff9d67d9d89f1c02c26d03342733f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODPR.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODPR", + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ba89a60ada86f51f5e5e800a0bd04fb580d6751 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-2804-77a2-b945-52c5a3e29098"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..15bc247b6744382858a77105f0bc2ef2ba8ac885 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-2804-77a2-b945-52c5a3e29098"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..744f9621bc958432cea22213b86e6e6dbc7442f1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-38db-7aa0-bf46-27b5c950c27e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..c482019d6feeeafc3a78abdcb427cdb0e95a1c82 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-38db-7aa0-bf46-27b5c950c27e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_2d5c354b69b7da9e/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ec668ee9e028a3d90e3dda0b48185ee8d5a23e42 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33327, "bytes_utf8": 33327, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 420, "bytes_utf8": 420, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23071, "cached_input_tokens": 12032, "output_tokens": 626, "reasoning_output_tokens": 503}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c5c67f2eead82ee3fb2e65dedf285ba6fb827a9a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_34568afc8982dcb3", + "api_calls": 0, + "input_tokens": 23071, + "cached_input_tokens": 12032, + "output_tokens": 626, + "total_tokens": 23697, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 12740.37, + "sql_execution_elapsed_ms_total": 7.79, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bf1f0384bea4dabbddb0cc6d6f9edc7b6dc90a4f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:38.243725+00:00", + "ended_at": "2026-05-19T16:07:50.984128+00:00", + "elapsed_ms": 12740.37, + "prompt_metrics": { + "chars": 33327, + "bytes_utf8": 33327, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 783, + "bytes_utf8": 783, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 420, + "bytes_utf8": 420, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23071, + "cached_input_tokens": 12032, + "output_tokens": 626, + "reasoning_output_tokens": 503 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0e8ac09e1f2d9ba9a1b100706d1c541bce76e5de --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MFWEKIND, condition_col=MGODOV.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MFWEKIND", + "condition_col": "MGODOV", + "condition_value": "0", + "positive_value": "1", + "negative_value": "0", + "top_k": 15, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd867fee04613c4226bd50897ac41f8ba062d13b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-26fa-7fe1-8cb1-c7d4a8052f65"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_condition_rate\\nSELECT \\\"MFWEKIND\\\",\\n AVG(CASE WHEN \\\"MGODOV\\\" = '0' THEN 1 ELSE 0 END) AS \\\"condition_rate\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFWEKIND\\\"\\nORDER BY \\\"condition_rate\\\" DESC;\",\"notes\":\"Grouped condition rate by \\\"MFWEKIND\\\", measuring the share of rows where \\\"MGODOV\\\" = '0'. String comparison is used because the provided SQLite schema stores these columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23071,"cached_input_tokens":12032,"output_tokens":626,"reasoning_output_tokens":503}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..76d4ae9c9d8e1cce333458016a2df8253810bf2c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_condition_rate\nSELECT \"MFWEKIND\",\n AVG(CASE WHEN \"MGODOV\" = '0' THEN 1 ELSE 0 END) AS \"condition_rate\"\nFROM \"n15\"\nGROUP BY \"MFWEKIND\"\nORDER BY \"condition_rate\" DESC;","notes":"Grouped condition rate by \"MFWEKIND\", measuring the share of rows where \"MGODOV\" = '0'. String comparison is used because the provided SQLite schema stores these columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_34568afc8982dcb3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6faf30cb988ec49def167c17c81910dfa15ee103 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:05.362963+00:00", + "ended_at": "2026-05-19T16:10:08.526225+00:00", + "elapsed_ms": 3163.24, + "returncode": 1, + "prompt_metrics": { + "chars": 33017, + "bytes_utf8": 33017, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..69d8eefe977e0fd2829c376f2c1d87bb6e198625 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:09.528640+00:00", + "ended_at": "2026-05-19T16:10:12.734585+00:00", + "elapsed_ms": 3205.91, + "returncode": 1, + "prompt_metrics": { + "chars": 33017, + "bytes_utf8": 33017, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..51f679d3d9be0f6f13c23cdee971dc0804f29e8e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODGE.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODGE", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..51f679d3d9be0f6f13c23cdee971dc0804f29e8e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODGE.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODGE", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..c3725d56ba572beb294741987da3ebec8c83ecae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-65af-7d31-8b74-28271a2192ad"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d7c77b902076915f2784cff50ba83ebd92ffcba2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-65af-7d31-8b74-28271a2192ad"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..f83af293b498985c503479584f6e543c021e7c3d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-760c-7e73-8c90-d89e1c348755"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..8c3d6773ede11c5faf1b955736a7df18b8a8d9c4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-760c-7e73-8c90-d89e1c348755"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_354c8f3746183daf/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1a44d3080210f074d029a4d03e70631124882219 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:12.100942+00:00", + "ended_at": "2026-05-19T16:13:15.582841+00:00", + "elapsed_ms": 3481.87, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..68593940eba47d7d23dc95e0b213f2e185b9d634 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:16.585313+00:00", + "ended_at": "2026-05-19T16:13:19.405329+00:00", + "elapsed_ms": 2819.99, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a2f1d7ec4af6390fc399ad5fa5f1b523aaa78b32 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PAANHANG, measure_col=MSKD.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PAANHANG", + "measure_col": "MSKD", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..a2f1d7ec4af6390fc399ad5fa5f1b523aaa78b32 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PAANHANG, measure_col=MSKD.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PAANHANG", + "measure_col": "MSKD", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e3828c84c0d88f662aff5eb6c63245b149aec310 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-3f12-7010-b560-91f501ec6736"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0d83dd2292b7b7098962a9074b48cf3694ceb192 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-3f12-7010-b560-91f501ec6736"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..b991175ee32149d9b78e8d71b61f5e647072bd0d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-50da-7373-90ab-0590fb492122"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..077f8726987f94dd49e77c72d0cb4c0fd11f52ec --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-50da-7373-90ab-0590fb492122"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3798c452dbfe60db/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..46b3d9bd2e1091a4b22984bbf06f5e593f54e847 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:43.305323+00:00", + "ended_at": "2026-05-19T16:10:46.202295+00:00", + "elapsed_ms": 2896.95, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..eebaa6226b9c6912789a1ff0d5d5dfb9c6e6f915 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:47.205749+00:00", + "ended_at": "2026-05-19T16:10:49.968927+00:00", + "elapsed_ms": 2763.13, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..aa0885416dfe6ae569f305793a60aef35aa6b50e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINKM30.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINKM30", + "top_k": 12, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..aa0885416dfe6ae569f305793a60aef35aa6b50e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINKM30.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINKM30", + "top_k": 12, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..081e8699267b15cb445272f3adbc55b17ca148bd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-f9f1-7c92-9e88-23c406e3c958"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7230fabb86e44b1aef8f7752d61dabe5c0954276 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-f9f1-7c92-9e88-23c406e3c958"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..9ba1333cfa94bd766785d41e27b4482a54d77516 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-091c-7013-983b-092316cdc3c1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..decb48d15ee8598661d6ff002b8640ef8b90540d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-091c-7013-983b-092316cdc3c1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3936c16db823656c/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bc8bfc26836f5a3f71174cac7b168aa983dbe6fe --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33260, "bytes_utf8": 33260, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 2118, "bytes_utf8": 2118, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23048, "cached_input_tokens": 12032, "output_tokens": 4641, "reasoning_output_tokens": 3969}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..3bca752e0b64592d5e261000923e2c1ba544a922 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_3adaaeb8f1ed941d", + "api_calls": 0, + "input_tokens": 23048, + "cached_input_tokens": 12032, + "output_tokens": 4641, + "total_tokens": 27689, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 65802.96, + "sql_execution_elapsed_ms_total": 4.78, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..dedaf6582919a9f7655169e93f120fc9629e5317 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:58:30.005514+00:00", + "ended_at": "2026-05-19T15:59:35.808501+00:00", + "elapsed_ms": 65802.96, + "prompt_metrics": { + "chars": 33260, + "bytes_utf8": 33260, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2778, + "bytes_utf8": 2778, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 2118, + "bytes_utf8": 2118, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23048, + "cached_input_tokens": 12032, + "output_tokens": 4641, + "reasoning_output_tokens": 3969 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..dd82fec7f0ff2edc4c017f789f107b6dda79ad9e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MAANTHUI, measure_col=MAUT0.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MAANTHUI", + "measure_col": "MAUT0", + "top_k": 17, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e6f6a487692040bdffe27e1f8557956fdf7700cd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f5-c97b-7223-b753-47e2c0be1855"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"filtered\\\" AS (\\n SELECT\\n \\\"MAANTHUI\\\" AS \\\"group_value\\\",\\n CAST(\\\"MAUT0\\\" AS REAL) AS \\\"measure_value\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MAANTHUI\\\" IS NOT NULL\\n AND \\\"MAUT0\\\" IS NOT NULL\\n AND TRIM(\\\"MAUT0\\\") <> ''\\n AND \\\"ABYSTAND\\\" = '1'\\n),\\n\\\"ordered\\\" AS (\\n SELECT\\n \\\"group_value\\\",\\n \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"group_value\\\"\\n ORDER BY \\\"measure_value\\\"\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (PARTITION BY \\\"group_value\\\") AS \\\"cnt\\\"\\n FROM \\\"filtered\\\"\\n),\\n\\\"target_ranks\\\" AS (\\n SELECT DISTINCT\\n \\\"group_value\\\",\\n \\\"cnt\\\",\\n 1.0 + 0.95 * (\\\"cnt\\\" - 1) AS \\\"target_rank\\\"\\n FROM \\\"ordered\\\"\\n),\\n\\\"bounds\\\" AS (\\n SELECT\\n \\\"group_value\\\",\\n \\\"cnt\\\",\\n CAST(\\\"target_rank\\\" AS INTEGER) AS \\\"lower_rn\\\",\\n CAST(\\\"target_rank\\\" AS INTEGER) +\\n CASE\\n WHEN ABS(\\\"target_rank\\\" - CAST(\\\"target_rank\\\" AS INTEGER)) < 1e-12 THEN 0\\n ELSE 1\\n END AS \\\"upper_rn\\\",\\n \\\"target_rank\\\" - CAST(\\\"target_rank\\\" AS INTEGER) AS \\\"weight\\\"\\n FROM \\\"target_ranks\\\"\\n WHERE \\\"cnt\\\" >= 5\\n)\\nSELECT\\n b.\\\"group_value\\\" AS \\\"MAANTHUI\\\",\\n CASE\\n WHEN b.\\\"lower_rn\\\" = b.\\\"upper_rn\\\" THEN\\n MAX(CASE WHEN o.\\\"rn\\\" = b.\\\"lower_rn\\\" THEN o.\\\"measure_value\\\" END)\\n ELSE\\n MAX(CASE WHEN o.\\\"rn\\\" = b.\\\"lower_rn\\\" THEN o.\\\"measure_value\\\" END) * (1.0 - b.\\\"weight\\\") +\\n MAX(CASE WHEN o.\\\"rn\\\" = b.\\\"upper_rn\\\" THEN o.\\\"measure_value\\\" END) * b.\\\"weight\\\"\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"bounds\\\" AS b\\nJOIN \\\"ordered\\\" AS o\\n ON o.\\\"group_value\\\" = b.\\\"group_value\\\"\\nGROUP BY\\n b.\\\"group_value\\\",\\n b.\\\"lower_rn\\\",\\n b.\\\"upper_rn\\\",\\n b.\\\"weight\\\"\\nORDER BY \\\"percentile_measure\\\" DESC, \\\"MAANTHUI\\\";\",\"notes\":\"Emulates SQLite-incompatible PERCENTILE_CONT(0.95) with window-function linear interpolation on numeric CAST(\\\"MAUT0\\\" AS REAL), grouped by \\\"MAANTHUI\\\". Assumes focused_target_view means restricting to positive-target rows where \\\"ABYSTAND\\\" = '1', and applies the provided minimum group size of 5.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23048,"cached_input_tokens":12032,"output_tokens":4641,"reasoning_output_tokens":3969}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..abe880b49a880506c7fa11f8d322d88e07aa4730 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"filtered\" AS (\n SELECT\n \"MAANTHUI\" AS \"group_value\",\n CAST(\"MAUT0\" AS REAL) AS \"measure_value\"\n FROM \"n15\"\n WHERE \"MAANTHUI\" IS NOT NULL\n AND \"MAUT0\" IS NOT NULL\n AND TRIM(\"MAUT0\") <> ''\n AND \"ABYSTAND\" = '1'\n),\n\"ordered\" AS (\n SELECT\n \"group_value\",\n \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"group_value\"\n ORDER BY \"measure_value\"\n ) AS \"rn\",\n COUNT(*) OVER (PARTITION BY \"group_value\") AS \"cnt\"\n FROM \"filtered\"\n),\n\"target_ranks\" AS (\n SELECT DISTINCT\n \"group_value\",\n \"cnt\",\n 1.0 + 0.95 * (\"cnt\" - 1) AS \"target_rank\"\n FROM \"ordered\"\n),\n\"bounds\" AS (\n SELECT\n \"group_value\",\n \"cnt\",\n CAST(\"target_rank\" AS INTEGER) AS \"lower_rn\",\n CAST(\"target_rank\" AS INTEGER) +\n CASE\n WHEN ABS(\"target_rank\" - CAST(\"target_rank\" AS INTEGER)) < 1e-12 THEN 0\n ELSE 1\n END AS \"upper_rn\",\n \"target_rank\" - CAST(\"target_rank\" AS INTEGER) AS \"weight\"\n FROM \"target_ranks\"\n WHERE \"cnt\" >= 5\n)\nSELECT\n b.\"group_value\" AS \"MAANTHUI\",\n CASE\n WHEN b.\"lower_rn\" = b.\"upper_rn\" THEN\n MAX(CASE WHEN o.\"rn\" = b.\"lower_rn\" THEN o.\"measure_value\" END)\n ELSE\n MAX(CASE WHEN o.\"rn\" = b.\"lower_rn\" THEN o.\"measure_value\" END) * (1.0 - b.\"weight\") +\n MAX(CASE WHEN o.\"rn\" = b.\"upper_rn\" THEN o.\"measure_value\" END) * b.\"weight\"\n END AS \"percentile_measure\"\nFROM \"bounds\" AS b\nJOIN \"ordered\" AS o\n ON o.\"group_value\" = b.\"group_value\"\nGROUP BY\n b.\"group_value\",\n b.\"lower_rn\",\n b.\"upper_rn\",\n b.\"weight\"\nORDER BY \"percentile_measure\" DESC, \"MAANTHUI\";","notes":"Emulates SQLite-incompatible PERCENTILE_CONT(0.95) with window-function linear interpolation on numeric CAST(\"MAUT0\" AS REAL), grouped by \"MAANTHUI\". Assumes focused_target_view means restricting to positive-target rows where \"ABYSTAND\" = '1', and applies the provided minimum group size of 5."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3adaaeb8f1ed941d/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..888bbbc030102cd76c9c24576b4e9653f4344342 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33080, "bytes_utf8": 33080, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 395, "bytes_utf8": 395, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23012, "cached_input_tokens": 12032, "output_tokens": 329, "reasoning_output_tokens": 217}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..6753b7901e6c0b318e983a23b862ba7ff8342145 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_3c3ff22af151ad5b", + "api_calls": 0, + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 329, + "total_tokens": 23341, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 9583.48, + "sql_execution_elapsed_ms_total": 7.02, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d167b46f88cb7e9d1af2d47456fe1fd74ad785a7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:29:07.157710+00:00", + "ended_at": "2026-05-19T15:29:16.741228+00:00", + "elapsed_ms": 9583.48, + "prompt_metrics": { + "chars": 33080, + "bytes_utf8": 33080, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 745, + "bytes_utf8": 745, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 395, + "bytes_utf8": 395, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 329, + "reasoning_output_tokens": 217 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0cb694f5b8f1a4343a134d44f71fcc3e3893632a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGEMOMV, measure_col=MGEMOMV.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGEMOMV", + "measure_col": "MGEMOMV", + "top_k": 12, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4cb07b0409e3a66be23e1478058affba9efa26b3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40da-e360-71f0-b5e4-f346829aab59"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGEMOMV\\\", SUM(CAST(\\\"MGEMOMV\\\" AS NUMERIC)) AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGEMOMV\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Uses the required grouped numeric sum template with group_col and measure_col both bound to \\\"MGEMOMV\\\". CAST is added because the schema stores values as TEXT, and SQLite will then sum them numerically.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23012,"cached_input_tokens":12032,"output_tokens":329,"reasoning_output_tokens":217}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1774e33e691729373bcf662b1f3bb2268da4a123 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGEMOMV\", SUM(CAST(\"MGEMOMV\" AS NUMERIC)) AS total_measure\nFROM \"n15\"\nGROUP BY \"MGEMOMV\"\nORDER BY total_measure DESC;","notes":"Uses the required grouped numeric sum template with group_col and measure_col both bound to \"MGEMOMV\". CAST is added because the schema stores values as TEXT, and SQLite will then sum them numerically."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3c3ff22af151ad5b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3cf4c74f1e4bbbe849c3eb28a551865d4c0e9748 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33629, "bytes_utf8": 33629, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 628, "bytes_utf8": 628, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23144, "cached_input_tokens": 21888, "output_tokens": 697, "reasoning_output_tokens": 505}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..553c17912092ad84632c2c86c3124392e1722c7a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_3d7bef6c8a525e22", + "api_calls": 0, + "input_tokens": 23144, + "cached_input_tokens": 21888, + "output_tokens": 697, + "total_tokens": 23841, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 14621.27, + "sql_execution_elapsed_ms_total": 5.82, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f1de5e233e23d0d2eaa5ccb00ed070227a826bdc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:53:09.904412+00:00", + "ended_at": "2026-05-19T15:53:24.525746+00:00", + "elapsed_ms": 14621.27, + "prompt_metrics": { + "chars": 33629, + "bytes_utf8": 33629, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1047, + "bytes_utf8": 1047, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 628, + "bytes_utf8": 628, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23144, + "cached_input_tokens": 21888, + "output_tokens": 697, + "reasoning_output_tokens": 505 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2805071cabf609c2ac1be0926392e4fd309fa284 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=ABRAND, measure_col=MSKB1.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ABRAND", + "measure_col": "MSKB1", + "top_k": 14, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..46f01277ffe2e1fa36e7be2b7b481f796f3a6c8c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f0-e73a-70e1-93cc-7ea7d91eef9d"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH \\\"grouped\\\" AS (\\n SELECT \\\"ABRAND\\\", SUM(CAST(\\\"MSKB1\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ABRAND\\\"\\n), \\\"total\\\" AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM \\\"grouped\\\"\\n)\\nSELECT g.\\\"ABRAND\\\", g.\\\"group_value\\\"\\nFROM \\\"grouped\\\" AS g\\nCROSS JOIN \\\"total\\\" AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Uses the requested template with group_col=\\\"ABRAND\\\" and measure_col=\\\"MSKB1\\\"; casts \\\"MSKB1\\\" to REAL because the SQLite schema stores it as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23144,"cached_input_tokens":21888,"output_tokens":697,"reasoning_output_tokens":505}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..df2ebbb1eac0b02be815eeb83784604ede995daf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH \"grouped\" AS (\n SELECT \"ABRAND\", SUM(CAST(\"MSKB1\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"ABRAND\"\n), \"total\" AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM \"grouped\"\n)\nSELECT g.\"ABRAND\", g.\"group_value\"\nFROM \"grouped\" AS g\nCROSS JOIN \"total\" AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;","notes":"Uses the requested template with group_col=\"ABRAND\" and measure_col=\"MSKB1\"; casts \"MSKB1\" to REAL because the SQLite schema stores it as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3d7bef6c8a525e22/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a9226984a6278aafaf8209335c9ad43f9ea203b9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33479, "bytes_utf8": 33479, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 585, "bytes_utf8": 585, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23126, "cached_input_tokens": 21888, "output_tokens": 978, "reasoning_output_tokens": 791}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..11cea26b564d224a70b2b571965370cdd192a4aa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_3ef83c6e328ee527", + "api_calls": 0, + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 978, + "total_tokens": 24104, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 17437.47, + "sql_execution_elapsed_ms_total": 8.93, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..881e300d7c3128ddbf1e5ab2364cdf188e44cda4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:35:55.552275+00:00", + "ended_at": "2026-05-19T15:36:12.989766+00:00", + "elapsed_ms": 17437.47, + "prompt_metrics": { + "chars": 33479, + "bytes_utf8": 33479, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 980, + "bytes_utf8": 980, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 585, + "bytes_utf8": 585, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 978, + "reasoning_output_tokens": 791 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e0c04f7b4bdb084adf58abad1aaf8c6189c99617 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MSKB2, measure_col=MSKB2.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKB2", + "measure_col": "MSKB2", + "item_col": "MOSTYPE", + "top_k": 16, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..64bc693df415b6963d0f17cd7f611eae914631b7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e1-1ea9-7312-a268-505ac6d1e6ea"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MSKB2\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKB2\\\" AS REAL)) AS \\\"total_measure\\\",\\n SUM(CAST(\\\"MSKB2\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MSKB2\\\" AS REAL))) OVER (PARTITION BY \\\"MSKB2\\\") AS \\\"share_within_group\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MSKB2\\\", \\\"MOSTYPE\\\"\\nORDER BY \\\"share_within_group\\\" DESC\\nLIMIT 16;\",\"notes\":\"Applied the planned Within-Group Share of Total template with group_col=\\\"MSKB2\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKB2\\\". CAST to REAL is used because the schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23126,"cached_input_tokens":21888,"output_tokens":978,"reasoning_output_tokens":791}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..85fb7d47e6613edab5803b9b60ede932881fd90b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MSKB2\",\n \"MOSTYPE\",\n SUM(CAST(\"MSKB2\" AS REAL)) AS \"total_measure\",\n SUM(CAST(\"MSKB2\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MSKB2\" AS REAL))) OVER (PARTITION BY \"MSKB2\") AS \"share_within_group\"\nFROM \"n15\"\nGROUP BY \"MSKB2\", \"MOSTYPE\"\nORDER BY \"share_within_group\" DESC\nLIMIT 16;","notes":"Applied the planned Within-Group Share of Total template with group_col=\"MSKB2\", item_col=\"MOSTYPE\", and measure_col=\"MSKB2\". CAST to REAL is used because the schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_3ef83c6e328ee527/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ebdeb68a91bd2308a6910804336924fffdcc953b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33087, "bytes_utf8": 33087, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 437, "bytes_utf8": 437, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23012, "cached_input_tokens": 12032, "output_tokens": 418, "reasoning_output_tokens": 292}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..62b9f114160b944a82a5011518c503ef056cabd8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_40dac0a87ffc4f46", + "api_calls": 0, + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 418, + "total_tokens": 23430, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 10564.28, + "sql_execution_elapsed_ms_total": 10.41, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..256656d4b0ac605631756942681a124912fd3fb3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:29:39.475604+00:00", + "ended_at": "2026-05-19T15:29:50.039920+00:00", + "elapsed_ms": 10564.28, + "prompt_metrics": { + "chars": 33087, + "bytes_utf8": 33087, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 801, + "bytes_utf8": 801, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 437, + "bytes_utf8": 437, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 418, + "reasoning_output_tokens": 292 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2666d709cbef7e6ef8afc9c2f87812f622d8bc94 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGEMLEEF, measure_col=MGEMLEEF.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGEMLEEF", + "measure_col": "MGEMLEEF", + "top_k": 18, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..434194cb47e1d2eadfb24a31dd6c272a623705a3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40db-6188-7782-8b50-1a55465f121c"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT\\n \\\"MGEMLEEF\\\",\\n SUM(CAST(\\\"MGEMLEEF\\\" AS INTEGER)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGEMLEEF\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Applied the planned Grouped Numeric Sum template with group_col=\\\"MGEMLEEF\\\" and measure_col=\\\"MGEMLEEF\\\". Used CAST to INTEGER because the SQLite schema stores this field as TEXT while the task describes it as numeric_discrete.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23012,"cached_input_tokens":12032,"output_tokens":418,"reasoning_output_tokens":292}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..579e30357838527c6e7b39fbd0e14a0398a632a4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT\n \"MGEMLEEF\",\n SUM(CAST(\"MGEMLEEF\" AS INTEGER)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MGEMLEEF\"\nORDER BY \"total_measure\" DESC;","notes":"Applied the planned Grouped Numeric Sum template with group_col=\"MGEMLEEF\" and measure_col=\"MGEMLEEF\". Used CAST to INTEGER because the SQLite schema stores this field as TEXT while the task describes it as numeric_discrete."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_40dac0a87ffc4f46/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..38e83add3e3dcb59668356b7908c806ceb617b15 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33255, "bytes_utf8": 33255, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 536, "bytes_utf8": 536, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23061, "cached_input_tokens": 12032, "output_tokens": 575, "reasoning_output_tokens": 411}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..6c7ce73de8b8ed9592c9c8359e85a85f37d0a390 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_44131f5286476cff", + "api_calls": 0, + "input_tokens": 23061, + "cached_input_tokens": 12032, + "output_tokens": 575, + "total_tokens": 23636, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16097.69, + "sql_execution_elapsed_ms_total": 14.53, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7b7dd7ff83b15beb56f8c55446bbdeb6389a495e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:49:00.979458+00:00", + "ended_at": "2026-05-19T15:49:17.077178+00:00", + "elapsed_ms": 16097.69, + "prompt_metrics": { + "chars": 33255, + "bytes_utf8": 33255, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 916, + "bytes_utf8": 916, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 536, + "bytes_utf8": 536, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23061, + "cached_input_tokens": 12032, + "output_tokens": 575, + "reasoning_output_tokens": 411 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a03db6149380c549ed0657d96d1777c8aa30ea54 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_quantile_tail_slice", + "template_name": "Quantile Tail Slice", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MFWEKIND.", + "planned_template_id": "tpl_m4_quantile_tail_slice", + "bindings": { + "measure_col": "MFWEKIND", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..f536ff2d25819de96b74acd8675f3276e6440623 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ed-1ac6-72d1-93cf-7d3a451a9c4f"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n CAST(\\\"MFWEKIND\\\" AS INTEGER) AS \\\"MFWEKIND\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"MFWEKIND\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"n15\\\"\\n)\\nSELECT \\\"MFWEKIND\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY \\\"MFWEKIND\\\" DESC;\",\"notes\":\"Applied the Quantile Tail Slice template with measure_col=\\\"MFWEKIND\\\" and num_tiles=10, casting the TEXT column to INTEGER so the tail bucket is computed numerically in SQLite.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23061,"cached_input_tokens":12032,"output_tokens":575,"reasoning_output_tokens":411}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2cb8adddbe36310e3262ab2b6f39f44d88d6c064 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n CAST(\"MFWEKIND\" AS INTEGER) AS \"MFWEKIND\",\n NTILE(10) OVER (ORDER BY CAST(\"MFWEKIND\" AS INTEGER) DESC) AS \"tail_bucket\"\n FROM \"n15\"\n)\nSELECT \"MFWEKIND\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY \"MFWEKIND\" DESC;","notes":"Applied the Quantile Tail Slice template with measure_col=\"MFWEKIND\" and num_tiles=10, casting the TEXT column to INTEGER so the tail bucket is computed numerically in SQLite."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44131f5286476cff/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..7d2359de2c9191bffa4151812653951b6ce2acdf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/final_answer.txt @@ -0,0 +1,2 @@ +SQL executed successfully for: Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=AZEILPL, measure_col=MSKB2. +Result preview: [{"AZEILPL": "0", "group_value": 21640.0}] \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..c15e725d7344d74c06218c23080d34fb758c0e55 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/generated_sql.sql @@ -0,0 +1,26 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: tail_rarity_structure +-- canonical_subitem_id: tail_mass_similarity +-- intended_facet_id: tail_ranked_signal +-- variant_semantic_role: count_distribution +-- template_id: tpl_tpch_relative_total_threshold +-- query_record_id: v2q_n15_44b33beed175fb01 +-- problem_id: v2p_n15_21d09f0c10e52d83 +-- realization_mode: agent +-- source_kind: agent +WITH grouped AS ( + SELECT "AZEILPL", SUM(CAST("MSKB2" AS REAL)) AS group_value + FROM "n15" + GROUP BY "AZEILPL" +), total AS ( + SELECT SUM(group_value) AS total_value + FROM grouped +) +SELECT g."AZEILPL", g.group_value +FROM grouped AS g +CROSS JOIN total AS t +WHERE g.group_value > t.total_value * 0.1 +ORDER BY g.group_value DESC; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e5223c8abed717d9b7418a8be3b0277cbacac40b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/query_results.jsonl @@ -0,0 +1 @@ +{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"AZEILPL\", SUM(CAST(\"MSKB2\" AS REAL)) AS group_value\n FROM \"n15\"\n GROUP BY \"AZEILPL\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"AZEILPL\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.1\nORDER BY g.group_value DESC;", "result": "{\"query\": \"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"AZEILPL\\\", SUM(CAST(\\\"MSKB2\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"AZEILPL\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"AZEILPL\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.1\\nORDER BY g.group_value DESC;\", \"columns\": [\"AZEILPL\", \"group_value\"], \"rows\": [{\"AZEILPL\": \"0\", \"group_value\": 21640.0}], \"row_count_returned\": 1, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 7.28}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..aaaaef7ea8608c82dd70fb6f6090a8c62d9fb564 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/run_manifest.json @@ -0,0 +1,89 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T15:53:40.389248+00:00", + "ended_at": "2026-05-19T15:53:51.873744+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_44b33beed175fb01", + "problem_id": "v2p_n15_21d09f0c10e52d83", + "dataset_id": "n15", + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "family_id": "tail_rarity_structure", + "canonical_subitem_id": "tail_mass_similarity", + "intended_facet_id": "tail_ranked_signal", + "variant_semantic_role": "count_distribution", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=AZEILPL, measure_col=MSKB2.", + "bindings": { + "group_col": "AZEILPL", + "measure_col": "MSKB2", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "measure_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "notes": [ + "default_facets=tail_ranked_signal", + "template_selection_mode=rule", + "problem_index_within_template=9", + "sql_variant_index=1/2", + "binding_index=80" + ], + "template_selection_mode": "rule", + "selected_template_rank": 7, + "problem_index_within_template": 9, + "sql_variant_index": 1, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_44b33beed175fb01.sql", + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_44b33beed175fb01", + "api_calls": 0, + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 574, + "total_tokens": 23720, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11466.23, + "sql_execution_elapsed_ms_total": 7.28, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..68c7a81c762a4e2a8b0dba0a6d16e6b4a4b372a7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/trace.jsonl @@ -0,0 +1 @@ +{"timestamp": "2026-05-19T15:53:51.864558+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 11466.23, "started_at": "2026-05-19T15:53:40.397296+00:00", "ended_at": "2026-05-19T15:53:51.863574+00:00", "prompt_metrics": {"chars": 33630, "bytes_utf8": 33630, "lines": 1128, "estimated_tokens": null}, "response_metrics": {"chars": 625, "bytes_utf8": 625, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23146, "cached_input_tokens": 21888, "output_tokens": 574, "reasoning_output_tokens": 394}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"AZEILPL\\\", SUM(CAST(\\\"MSKB2\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"AZEILPL\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"AZEILPL\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.1\\nORDER BY g.group_value DESC;\",\"notes\":\"Applied the provided Relative-to-Total Extreme Threshold template with group_col=\\\"AZEILPL\\\" and measure_col=\\\"MSKB2\\\". Cast \\\"MSKB2\\\" to REAL because the SQLite schema stores values as TEXT.\"}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..7fedb166ceb1099eed9fbc0b3fe1551dcabf4e78 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/usage_summary.json @@ -0,0 +1,20 @@ +{ + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_44b33beed175fb01", + "api_calls": 0, + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 574, + "total_tokens": 23720, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11466.23, + "sql_execution_elapsed_ms_total": 7.28, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_44b33beed175fb01/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1cadcd2e008e58e7c2e8f1d430501e64e6f33963 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:56.825832+00:00", + "ended_at": "2026-05-19T16:12:59.795429+00:00", + "elapsed_ms": 2969.57, + "returncode": 1, + "prompt_metrics": { + "chars": 33155, + "bytes_utf8": 33155, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5d8a482c76640b0585ebea343e40528942fcc828 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:00.797612+00:00", + "ended_at": "2026-05-19T16:13:04.381128+00:00", + "elapsed_ms": 3583.48, + "returncode": 1, + "prompt_metrics": { + "chars": 33155, + "bytes_utf8": 33155, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ecda938a571e563b301046e32fd6e2d22423d080 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role ranked_signal_view. Focus on group_col=PVRAAUT, measure_col=MSKC.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PVRAAUT", + "measure_col": "MSKC", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..ecda938a571e563b301046e32fd6e2d22423d080 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role ranked_signal_view. Focus on group_col=PVRAAUT, measure_col=MSKC.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PVRAAUT", + "measure_col": "MSKC", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8ce49ed0cc7c138221d666faed519307187864a9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-0381-7442-b944-d17dcd4e62c5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e2a2fada05318d77e0516c99227630f8ec550969 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-0381-7442-b944-d17dcd4e62c5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..43f0305355ed98ae6afa4ba44540600744982d64 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-12f8-7ca1-8d8d-0c08cfe9f617"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e0364360fc56b32db23aad60410ee3a805bd19af --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-12f8-7ca1-8d8d-0c08cfe9f617"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_4815ecc863b9dfad/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..96b8062ddf2b9713ba25a0433db20b1aae461f9f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:14.140259+00:00", + "ended_at": "2026-05-19T16:08:31.537972+00:00", + "elapsed_ms": 17397.69, + "returncode": 1, + "prompt_metrics": { + "chars": 33331, + "bytes_utf8": 33331, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ddfa843d30ee363649ed8c09716e790a194ae7e1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:32.540370+00:00", + "ended_at": "2026-05-19T16:08:36.416920+00:00", + "elapsed_ms": 3876.52, + "returncode": 1, + "prompt_metrics": { + "chars": 33331, + "bytes_utf8": 33331, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d40a202eee43548c0135b82faf55537acb4fe924 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MOPLMIDD, condition_col=MBERZELF.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLMIDD", + "condition_col": "MBERZELF", + "condition_value": "0", + "positive_value": "1", + "negative_value": "0", + "top_k": 17, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..d40a202eee43548c0135b82faf55537acb4fe924 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MOPLMIDD, condition_col=MBERZELF.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLMIDD", + "condition_col": "MBERZELF", + "condition_value": "0", + "positive_value": "1", + "negative_value": "0", + "top_k": 17, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..9cb39946ea66d2fd6a6df1032d668105b766dbee --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-b341-71d3-bca2-9c75d7fd98a3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..98b61be43c690e27c6e616bf045b28098a05d77c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-b341-71d3-bca2-9c75d7fd98a3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8b047ae2c90124071f298aaf44d58893b486c0c5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-fb16-74d1-8338-034d6062163c"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..08ed6f04d1733ff4a5d30414d684d0d0dbdf5e98 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-fb16-74d1-8338-034d6062163c"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_48930307b443a92e/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b84aa8c8b26d3c5d331d7f0e47fb5c107f2b0883 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33084, "bytes_utf8": 33084, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 448, "bytes_utf8": 448, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23010, "cached_input_tokens": 12032, "output_tokens": 358, "reasoning_output_tokens": 236}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..8f69735a497ff87a561178934f0fc2bb63480813 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_49b2d3b273fc0a17", + "api_calls": 0, + "input_tokens": 23010, + "cached_input_tokens": 12032, + "output_tokens": 358, + "total_tokens": 23368, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11418.42, + "sql_execution_elapsed_ms_total": 4.79, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1e5912b2302d8bbef14d1e7cb2b5233bf860ec2f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:29:50.064252+00:00", + "ended_at": "2026-05-19T15:30:01.482708+00:00", + "elapsed_ms": 11418.42, + "prompt_metrics": { + "chars": 33084, + "bytes_utf8": 33084, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 810, + "bytes_utf8": 810, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 448, + "bytes_utf8": 448, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23010, + "cached_input_tokens": 12032, + "output_tokens": 358, + "reasoning_output_tokens": 236 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..88cc2da5ad69d43e08dc4d1db2e4d7efd046dedd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MOSHOOFD, measure_col=MOSHOOFD.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MOSHOOFD", + "measure_col": "MOSHOOFD", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..079ad5e273952993081f5424d54716149cf9ed43 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40db-8aed-74e1-8e82-b074fde7172c"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MOSHOOFD\\\", SUM(CAST(\\\"MOSHOOFD\\\" AS INTEGER)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOSHOOFD\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Used the required Grouped Numeric Sum template with group_col=\\\"MOSHOOFD\\\" and measure_col=\\\"MOSHOOFD\\\". CAST to INTEGER is applied because the SQLite schema stores this field as TEXT while the dataset semantics indicate numeric discrete values.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23010,"cached_input_tokens":12032,"output_tokens":358,"reasoning_output_tokens":236}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6fbff97adcd72d83601de7c1e0d16df45c12d9ce --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MOSHOOFD\", SUM(CAST(\"MOSHOOFD\" AS INTEGER)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MOSHOOFD\"\nORDER BY \"total_measure\" DESC;","notes":"Used the required Grouped Numeric Sum template with group_col=\"MOSHOOFD\" and measure_col=\"MOSHOOFD\". CAST to INTEGER is applied because the SQLite schema stores this field as TEXT while the dataset semantics indicate numeric discrete values."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_49b2d3b273fc0a17/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9feecdee16c4f417c1e97b8ee3546f2dbff1efd0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:49.450618+00:00", + "ended_at": "2026-05-19T16:12:52.702182+00:00", + "elapsed_ms": 3251.53, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4fc1123b913619a46916dd85f888a0b6ae787858 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:53.704570+00:00", + "ended_at": "2026-05-19T16:12:56.821112+00:00", + "elapsed_ms": 3116.5, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..abe985599cb47d3dfcc10122dfdd06a7086d599c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PMOTSCO, measure_col=MSKB2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PMOTSCO", + "measure_col": "MSKB2", + "top_k": 19, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..abe985599cb47d3dfcc10122dfdd06a7086d599c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PMOTSCO, measure_col=MSKB2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PMOTSCO", + "measure_col": "MSKB2", + "top_k": 19, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..6b3a73f0c376067d971efd041603291c2de1e88b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-e695-74e3-98da-6c76468b0a16"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6215fa145faa6e2f47b6dfbf601346fbb2b6deb4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-e695-74e3-98da-6c76468b0a16"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..98738b3e327ad29ccf36d7299fc32d832cc3c62d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-f767-7481-97ef-20fe386151b3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..cd7f2c1c83b7537ab52e617fef94df67db1fdaab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-f767-7481-97ef-20fe386151b3"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_50310b56d9c3afbd/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2d2ffdd1a046229762e58222fc11923342fa36ee --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33388, "bytes_utf8": 33388, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 446, "bytes_utf8": 446, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23101, "cached_input_tokens": 21888, "output_tokens": 403, "reasoning_output_tokens": 274}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..d2ae9d2e334b0b62c5b9a896a038d0027dd7fe1f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_5043ee9a6c35e366", + "api_calls": 0, + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 403, + "total_tokens": 23504, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 12705.63, + "sql_execution_elapsed_ms_total": 6.71, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..48155b8d87948bf995588de81df9b035e84f65a1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:46:34.679679+00:00", + "ended_at": "2026-05-19T15:46:47.385359+00:00", + "elapsed_ms": 12705.63, + "prompt_metrics": { + "chars": 33388, + "bytes_utf8": 33388, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 801, + "bytes_utf8": 801, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 446, + "bytes_utf8": 446, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 403, + "reasoning_output_tokens": 274 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e0f3cbf22ba500ba5d6d9e5ba6e56e7dde943f40 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PWAOREG.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PWAOREG", + "predicate_col": "PGEZONG", + "predicate_op": "=", + "predicate_value": "2", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..9c05b92032c6f06a7df61eeddd30776f85300e18 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ea-df9d-77f0-9057-3af4c91073cd"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"MOSTYPE\\\", \\\"PWAOREG\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nWHERE \\\"PGEZONG\\\" = '2'\\nGROUP BY \\\"MOSTYPE\\\", \\\"PWAOREG\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Used the provided filtered two-dimensional group count template with bound columns MOSTYPE, PWAOREG, and predicate PGEZONG = '2'. The predicate value is quoted as a string because the SQLite schema lists the column as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23101,"cached_input_tokens":21888,"output_tokens":403,"reasoning_output_tokens":274}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..4656d7b07277f7392fe879eee6bd363b40186338 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"MOSTYPE\", \"PWAOREG\", COUNT(*) AS row_count\nFROM \"n15\"\nWHERE \"PGEZONG\" = '2'\nGROUP BY \"MOSTYPE\", \"PWAOREG\"\nORDER BY row_count DESC;","notes":"Used the provided filtered two-dimensional group count template with bound columns MOSTYPE, PWAOREG, and predicate PGEZONG = '2'. The predicate value is quoted as a string because the SQLite schema lists the column as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5043ee9a6c35e366/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..c90c4d8773be93ee1686fa517883610baad8db0a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:00:56.395694+00:00", + "ended_at": "2026-05-19T16:00:59.493115+00:00", + "elapsed_ms": 3097.39, + "returncode": 1, + "prompt_metrics": { + "chars": 33260, + "bytes_utf8": 33260, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..082efd35dd72745d8f4bf71d84dbf93d743a447c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:01:00.496633+00:00", + "ended_at": "2026-05-19T16:01:03.687981+00:00", + "elapsed_ms": 3191.3, + "returncode": 1, + "prompt_metrics": { + "chars": 33260, + "bytes_utf8": 33260, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..62540dd0b1d3aa5b7885381949036ca31778dc8d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=MGEMOMV, measure_col=MZFONDS.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMOMV", + "measure_col": "MZFONDS", + "top_k": 18, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..62540dd0b1d3aa5b7885381949036ca31778dc8d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=MGEMOMV, measure_col=MZFONDS.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMOMV", + "measure_col": "MZFONDS", + "top_k": 18, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ba6bac566c4e3032c26dfb2e3bd12e52b00c964b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-0544-7030-861d-cedbac714016"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8648e706b4b9f14d588204e69ae89ba1ce7e7ee0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-0544-7030-861d-cedbac714016"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd2f987d35455bd4c9d8b67d05f40af02274e68c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-1573-7e83-b924-2bd93e3c3948"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b67c0db912d4ad84bb16086807cdc9d71a0f41cb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-1573-7e83-b924-2bd93e3c3948"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_52793a6cb08400d4/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f616c001a5311e6962a0ba6bc3413ce1588e1490 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:51.086283+00:00", + "ended_at": "2026-05-19T16:06:54.042411+00:00", + "elapsed_ms": 2956.1, + "returncode": 1, + "prompt_metrics": { + "chars": 33322, + "bytes_utf8": 33322, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..648d8ca2b99883fb069f9005ddb7e40300083ee7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:06:55.045195+00:00", + "ended_at": "2026-05-19T16:06:58.470069+00:00", + "elapsed_ms": 3424.84, + "returncode": 1, + "prompt_metrics": { + "chars": 33322, + "bytes_utf8": 33322, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1e6e95fcf58d0acafbe0d225897b6122c8f49dce --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role within_group_proportion. Focus on group_col=MRELOV, condition_col=CARAVAN.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELOV", + "condition_col": "CARAVAN", + "condition_value": "1", + "positive_value": "0", + "negative_value": "1", + "top_k": 17, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.25, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1e6e95fcf58d0acafbe0d225897b6122c8f49dce --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role within_group_proportion. Focus on group_col=MRELOV, condition_col=CARAVAN.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MRELOV", + "condition_col": "CARAVAN", + "condition_value": "1", + "positive_value": "0", + "negative_value": "1", + "top_k": 17, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.25, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1b7dd5f2bf1bca398403bfa9f015c92cd63d3fa1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-6ecb-77a0-b1d1-3172ebfa155d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a85de36a7ba1c6d284aaf3a4698c9602a539e208 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-6ecb-77a0-b1d1-3172ebfa155d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4bb37d73e3ec47adc81bbba5f0b1bb8c7c0a587d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-7e51-75f0-a24c-82ea04bfbef8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..10abe5f34b9233eaea84d3f186659ece71432269 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-7e51-75f0-a24c-82ea04bfbef8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_540bfa1180c2259d/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..29b4aa464481e349561fa9463a06ab1bbca51e6c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33076, "bytes_utf8": 33076, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 349, "bytes_utf8": 349, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23008, "cached_input_tokens": 12032, "output_tokens": 463, "reasoning_output_tokens": 360}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f44bf2267fccb7a0f9bde764c0519535395ece9f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_57696d33153b7eb0", + "api_calls": 0, + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 463, + "total_tokens": 23471, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 17917.58, + "sql_execution_elapsed_ms_total": 5.29, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1a01495483c0b852469306cd63e84dfd62f7f438 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:31:54.886329+00:00", + "ended_at": "2026-05-19T15:32:12.803944+00:00", + "elapsed_ms": 17917.58, + "prompt_metrics": { + "chars": 33076, + "bytes_utf8": 33076, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1373, + "bytes_utf8": 1373, + "lines": 6, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 349, + "bytes_utf8": 349, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 463, + "reasoning_output_tokens": 360 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ee1758e5a4f549b69c58fd570ff06cd3506db6bf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGODGE, measure_col=MGODGE.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGODGE", + "measure_col": "MGODGE", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d2ef43d5b7c7763e74314eb7db204aca156f89a5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,6 @@ +{"type":"thread.started","thread_id":"019e40dd-72ab-79b0-9e22-f643a919482b"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23643. Please try again in 709ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1992326, Requested 23643. Please try again in 479ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGODGE\\\", SUM(CAST(\\\"MGODGE\\\" AS NUMERIC)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGODGE\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Uses the planned grouped-sum template with group_col and measure_col both bound to \\\"MGODGE\\\"; CAST is applied because the schema stores values as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23008,"cached_input_tokens":12032,"output_tokens":463,"reasoning_output_tokens":360}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7bb4398ebb2d1fb47ef669992dbdb2bfe9f06ee8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGODGE\", SUM(CAST(\"MGODGE\" AS NUMERIC)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MGODGE\"\nORDER BY \"total_measure\" DESC;","notes":"Uses the planned grouped-sum template with group_col and measure_col both bound to \"MGODGE\"; CAST is applied because the schema stores values as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57696d33153b7eb0/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4509f58fef037eda7bf4adad67309c044c0b054f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:01:24.312236+00:00", + "ended_at": "2026-05-19T16:01:27.410905+00:00", + "elapsed_ms": 3098.64, + "returncode": 1, + "prompt_metrics": { + "chars": 33262, + "bytes_utf8": 33262, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ddcee0120f2bbbc17b1b024cbd6be173fc041281 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:01:28.412917+00:00", + "ended_at": "2026-05-19T16:01:31.265087+00:00", + "elapsed_ms": 2852.14, + "returncode": 1, + "prompt_metrics": { + "chars": 33262, + "bytes_utf8": 33262, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7769437ffd5d1bb1fb67a12f97568c024b035c06 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGEMLEEF, measure_col=MZPART.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMLEEF", + "measure_col": "MZPART", + "top_k": 19, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..7769437ffd5d1bb1fb67a12f97568c024b035c06 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGEMLEEF, measure_col=MZPART.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMLEEF", + "measure_col": "MZPART", + "top_k": 19, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..0450ffa10b39329d8d3a369044966e02ecaaf014 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-7274-74b1-9009-ae422dd4d8b2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..4633ac6ecc2f9c085fc05d9dd707ec7ef89b8850 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-7274-74b1-9009-ae422dd4d8b2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..85704abe944c4764f381b5210c39e6cda3b2ff95 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-8263-7c83-96c8-72921858d072"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..4161db2dd864cf5cbd96558489ea27a244ec0e2c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-8263-7c83-96c8-72921858d072"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_57cea4c78c5e6455/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..44ea16ce6b21c3e58301b2b82000a9a67e17d8b0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:28.502622+00:00", + "ended_at": "2026-05-19T16:09:31.660772+00:00", + "elapsed_ms": 3158.12, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8195790f5fcab555f588a047c33c2291f8809248 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:32.664031+00:00", + "ended_at": "2026-05-19T16:09:35.772092+00:00", + "elapsed_ms": 3108.03, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..fabf1e41d6ed56af3e102a1c7fe504ce1f071863 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGEMLEEF.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGEMLEEF", + "top_k": 11, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..fabf1e41d6ed56af3e102a1c7fe504ce1f071863 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGEMLEEF.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGEMLEEF", + "top_k": 11, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..2dbc3c75390766602f532662dfa4b3afa5e46a8d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-d5e3-7301-834d-7847089c3b32"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3a5227381745ef008431f7bac1c5e9cb577b99e7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-d5e3-7301-834d-7847089c3b32"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..bfeca3a60d8c7e1f245449049879b78ea961c389 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-e600-7902-bd46-86b20b62cb4e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd237d542ffb35681d824f46789aa0de5d87d409 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-e600-7902-bd46-86b20b62cb4e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_58087a2e86a052db/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..56a557c8b40262fc819c54c55308c402f908f3e2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:27.866982+00:00", + "ended_at": "2026-05-19T16:11:32.034438+00:00", + "elapsed_ms": 4167.41, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..b90cfef66e9fdf9aa7f5c824bc6b2dd3a027f343 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:33.036942+00:00", + "ended_at": "2026-05-19T16:11:36.005762+00:00", + "elapsed_ms": 2968.79, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..72e6321745ae05c1a7ed4195dcaed52d2c5382b3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MINK7512.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK7512", + "top_k": 10, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..72e6321745ae05c1a7ed4195dcaed52d2c5382b3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MINK7512.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK7512", + "top_k": 10, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1ae42312770275c0bb21f934a31ca92ff81ca2a3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-a811-7262-be1a-c0a8bd48415b"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a3cbe6fbe4df5d7001880dea42069d750c41fe71 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-a811-7262-be1a-c0a8bd48415b"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..80b886e90e150a1181dc4bbbfea71c8ecc9a9312 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-bc46-7c53-8c10-2cd6eaa44ff7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..9d3ad26d1836859d048634a9df0d969e05f35468 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-bc46-7c53-8c10-2cd6eaa44ff7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5aaac4a407338394/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9fefc93bd85b6e341b08d23176d6ce413e0754bc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33476, "bytes_utf8": 33476, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 590, "bytes_utf8": 590, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23126, "cached_input_tokens": 12032, "output_tokens": 907, "reasoning_output_tokens": 713}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b40ff5514398511386bced768f799261e862814e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_5cd070a477bdf678", + "api_calls": 0, + "input_tokens": 23126, + "cached_input_tokens": 12032, + "output_tokens": 907, + "total_tokens": 24033, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16728.03, + "sql_execution_elapsed_ms_total": 9.4, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8b25c900852845874882512a33e8f62c15d80069 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:38:58.592884+00:00", + "ended_at": "2026-05-19T15:39:15.320956+00:00", + "elapsed_ms": 16728.03, + "prompt_metrics": { + "chars": 33476, + "bytes_utf8": 33476, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 976, + "bytes_utf8": 976, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 590, + "bytes_utf8": 590, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23126, + "cached_input_tokens": 12032, + "output_tokens": 907, + "reasoning_output_tokens": 713 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..93dfccf06aa5e7550029b17e7d3d5028fc781a70 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MAUT1, measure_col=MAUT1.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MAUT1", + "measure_col": "MAUT1", + "item_col": "MOSTYPE", + "top_k": 11, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..fdcc7904ec92bd795472e0974a90c28350c1fb6f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e3-e9ac-75d1-a5dd-c854e7aeadb3"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MAUT1\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT1\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MAUT1\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MAUT1\\\" AS REAL))) OVER (PARTITION BY \\\"MAUT1\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAUT1\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Used the planned template with group_col=\\\"MAUT1\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT1\\\". Cast \\\"MAUT1\\\" from TEXT to REAL for aggregation and used NULLIF to avoid division by zero when a group total is 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23126,"cached_input_tokens":12032,"output_tokens":907,"reasoning_output_tokens":713}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..deb4b8f735cd3b7cb6686ff9cbde0192ba6a82a0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MAUT1\",\n \"MOSTYPE\",\n SUM(CAST(\"MAUT1\" AS REAL)) AS total_measure,\n SUM(CAST(\"MAUT1\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MAUT1\" AS REAL))) OVER (PARTITION BY \"MAUT1\"), 0) AS share_within_group\nFROM \"n15\"\nGROUP BY \"MAUT1\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Used the planned template with group_col=\"MAUT1\", item_col=\"MOSTYPE\", and measure_col=\"MAUT1\". Cast \"MAUT1\" from TEXT to REAL for aggregation and used NULLIF to avoid division by zero when a group total is 0."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5cd070a477bdf678/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a8f9840cbe4585e3b97616ab8e9abf4659c23e4a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33081, "bytes_utf8": 33081, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 395, "bytes_utf8": 395, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23004, "cached_input_tokens": 4480, "output_tokens": 318, "reasoning_output_tokens": 210}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2d655f9c200f2aedaf133afc560011d1daccc6cf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_5ee573523ac69846", + "api_calls": 0, + "input_tokens": 23004, + "cached_input_tokens": 4480, + "output_tokens": 318, + "total_tokens": 23322, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11596.03, + "sql_execution_elapsed_ms_total": 5.31, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..24956c253c7a4f53ce60a336d0b6a2aa98143c46 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:28:17.979623+00:00", + "ended_at": "2026-05-19T15:28:29.575676+00:00", + "elapsed_ms": 11596.03, + "prompt_metrics": { + "chars": 33081, + "bytes_utf8": 33081, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 752, + "bytes_utf8": 752, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 395, + "bytes_utf8": 395, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23004, + "cached_input_tokens": 4480, + "output_tokens": 318, + "reasoning_output_tokens": 210 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6a0c0b866a3353c2f1cc05307c35e901bc6c06f1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MOSTYPE, measure_col=MOSTYPE.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MOSTYPE", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 20.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ebb58c02f3c5a3b6f615d91e263b865dc719e58f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40da-2337-7460-83e5-6e7fc83fda6b"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MOSTYPE\\\", SUM(CAST(\\\"MOSTYPE\\\" AS NUMERIC)) AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOSTYPE\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Used the planned Grouped Numeric Sum template with both \\\"group_col\\\" and \\\"measure_col\\\" bound to \\\"MOSTYPE\\\". Applied CAST(... AS NUMERIC) because the schema stores this numeric-discrete field as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23004,"cached_input_tokens":4480,"output_tokens":318,"reasoning_output_tokens":210}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a8faf7ace916c95bdce77ac930523ff2b56d5db --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MOSTYPE\", SUM(CAST(\"MOSTYPE\" AS NUMERIC)) AS total_measure\nFROM \"n15\"\nGROUP BY \"MOSTYPE\"\nORDER BY total_measure DESC;","notes":"Used the planned Grouped Numeric Sum template with both \"group_col\" and \"measure_col\" bound to \"MOSTYPE\". Applied CAST(... AS NUMERIC) because the schema stores this numeric-discrete field as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_5ee573523ac69846/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b3a5315bf280e3792141a144ce6892e0042c5376 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33476, "bytes_utf8": 33476, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 617, "bytes_utf8": 617, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23126, "cached_input_tokens": 21888, "output_tokens": 998, "reasoning_output_tokens": 803}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f9b129206ced06675f2b67e31d9d1888b74d5874 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_646ec09ce1f923b2", + "api_calls": 0, + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 998, + "total_tokens": 24124, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 28835.37, + "sql_execution_elapsed_ms_total": 21.68, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9b9d1ffc7ade2a4491c6384b022617d089e3ecbd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:40:17.622353+00:00", + "ended_at": "2026-05-19T15:40:46.457751+00:00", + "elapsed_ms": 28835.37, + "prompt_metrics": { + "chars": 33476, + "bytes_utf8": 33476, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1997, + "bytes_utf8": 1997, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 617, + "bytes_utf8": 617, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 998, + "reasoning_output_tokens": 803 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b7866de1c4adac7ed56b9134ea16712ea066d957 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MAUT0, measure_col=MAUT0.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MAUT0", + "measure_col": "MAUT0", + "item_col": "MOSTYPE", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..15a5a05c8db82a0ca6dca8dc938ed0b19909e22e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40e5-1e4f-7cd2-b48c-cb39f2b3f7d0"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1994463, Requested 23761. Please try again in 546ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1990358, Requested 23761. Please try again in 423ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1978140, Requested 23761. Please try again in 57ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share.\\nSELECT\\n \\\"MAUT0\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT0\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MAUT0\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MAUT0\\\" AS REAL))) OVER (PARTITION BY \\\"MAUT0\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAUT0\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the planned template with group_col=\\\"MAUT0\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT0\\\". CAST is used because the SQLite schema stores these fields as TEXT, and NULLIF prevents division-by-zero when a group has total measure 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23126,"cached_input_tokens":21888,"output_tokens":998,"reasoning_output_tokens":803}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..973471ed2c10d60766b40db1566d45a6ff7085dc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share.\nSELECT\n \"MAUT0\",\n \"MOSTYPE\",\n SUM(CAST(\"MAUT0\" AS REAL)) AS total_measure,\n SUM(CAST(\"MAUT0\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MAUT0\" AS REAL))) OVER (PARTITION BY \"MAUT0\"), 0) AS share_within_group\nFROM \"n15\"\nGROUP BY \"MAUT0\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Applied the planned template with group_col=\"MAUT0\", item_col=\"MOSTYPE\", and measure_col=\"MAUT0\". CAST is used because the SQLite schema stores these fields as TEXT, and NULLIF prevents division-by-zero when a group has total measure 0."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_646ec09ce1f923b2/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ff53872e9d0e7d348946040665cbe6068ffd3682 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/run_manifest.json @@ -0,0 +1,72 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T16:07:21.749928+00:00", + "ended_at": "2026-05-19T16:07:29.217504+00:00", + "status": "failed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_6a41a381f7d7c47e", + "problem_id": "v2p_n15_adba1cebaf7c7ee6", + "dataset_id": "n15", + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "family_id": "conditional_dependency_structure", + "canonical_subitem_id": "direction_consistency", + "intended_facet_id": "conditional_rate_shift", + "variant_semantic_role": "within_group_proportion", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role within_group_proportion. Focus on group_col=MFGEKIND, condition_col=MGEMLEEF.", + "bindings": { + "group_col": "MFGEKIND", + "condition_col": "MGEMLEEF", + "condition_value": "2", + "positive_value": "3", + "negative_value": "2", + "top_k": 19, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "condition_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "notes": [ + "default_facets=conditional_rate_shift", + "template_selection_mode=rule", + "problem_index_within_template=4", + "sql_variant_index=2/2", + "binding_index=99" + ], + "template_selection_mode": "rule", + "selected_template_rank": 9, + "problem_index_within_template": 4, + "sql_variant_index": 2, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "error": "AI CLI command failed with exit code 1: " +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3e9f27d989bd2fb93384e498082eed9c13c9b640 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6a41a381f7d7c47e/trace.jsonl @@ -0,0 +1,2 @@ +{"timestamp": "2026-05-19T16:07:24.770516+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": 3016.01, "started_at": "2026-05-19T16:07:21.753646+00:00", "ended_at": "2026-05-19T16:07:24.769683+00:00", "prompt_metrics": {"chars": 33327, "bytes_utf8": 33327, "lines": 1131, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-e68a-7b31-9b1e-5bafef6dcfca\"}\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: "} +{"timestamp": "2026-05-19T16:07:29.217416+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": 3444.66, "started_at": "2026-05-19T16:07:25.771900+00:00", "ended_at": "2026-05-19T16:07:29.216599+00:00", "prompt_metrics": {"chars": 33327, "bytes_utf8": 33327, "lines": 1131, "estimated_tokens": null}, "response_metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "stderr_preview": "", "stdout_preview": "{\"type\":\"thread.started\",\"thread_id\":\"019e40fd-f66d-7671-abd6-7354ed6322e5\"}\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: "} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..20a20ad20c3d11c99c0b10919f18d5766ba8bf30 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:19.410418+00:00", + "ended_at": "2026-05-19T16:13:22.363567+00:00", + "elapsed_ms": 2953.12, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a8890bc51fc41e44da0c4f0124d240f6a387d343 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:23.366008+00:00", + "ended_at": "2026-05-19T16:13:26.682715+00:00", + "elapsed_ms": 3316.68, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1f0fb6f1fea99d4d62544beec6de0f070a0f1fae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PAANHANG, measure_col=MSKD.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PAANHANG", + "measure_col": "MSKD", + "top_k": 16, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1f0fb6f1fea99d4d62544beec6de0f070a0f1fae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PAANHANG, measure_col=MSKD.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PAANHANG", + "measure_col": "MSKD", + "top_k": 16, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..40ddd85cad873d1f934ce1386d1580bfc3af66d9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-5bae-7a02-beab-fcc8bade4136"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3f9b7897b59220506ceff0e785db6c52965f9879 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-5bae-7a02-beab-fcc8bade4136"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..337d45f0ac6e746e97787206e8b88f27d2f8d6b9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-6b27-72f1-b8c4-0650bd2b50e2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..89d1c9fe5dedfc5a48ceacf1bdf3d3d055b73c75 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-6b27-72f1-b8c4-0650bd2b50e2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6afc14e03c503f20/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bcf7ac1cecb4686bc4ce41893a568e6de65d74cd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32993, "bytes_utf8": 32993, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 295, "bytes_utf8": 295, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22982, "cached_input_tokens": 21888, "output_tokens": 462, "reasoning_output_tokens": 369}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..d4c821207db757b4b9a947383e263d0ca985bbfa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_6e630a0db712b417", + "api_calls": 0, + "input_tokens": 22982, + "cached_input_tokens": 21888, + "output_tokens": 462, + "total_tokens": 23444, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20597.75, + "sql_execution_elapsed_ms_total": 4.23, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..23812cee80b8602f8d78015ae177dd79a6de9dd7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:33:20.400933+00:00", + "ended_at": "2026-05-19T15:33:40.998726+00:00", + "elapsed_ms": 20597.75, + "prompt_metrics": { + "chars": 32993, + "bytes_utf8": 32993, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1650, + "bytes_utf8": 1650, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 295, + "bytes_utf8": 295, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22982, + "cached_input_tokens": 21888, + "output_tokens": 462, + "reasoning_output_tokens": 369 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8e6a7685b0bbdf8cd42d04292785e2c8f82a4c80 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MOPLHOOG.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MOPLHOOG", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ee3ef80e13b67b8e7e26bc79c4ff322bcb5f4cc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40de-c090-7f01-a06c-4507a1b72776"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1992050, Requested 23617. Please try again in 470ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1977447, Requested 23617. Please try again in 31ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1976729, Requested 23617. Please try again in 10ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MOPLHOOG\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOPLHOOG\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Used the planned Grouped Count by Category template with group_col bound to \\\"MOPLHOOG\\\" on the single table \\\"n15\\\".\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22982,"cached_input_tokens":21888,"output_tokens":462,"reasoning_output_tokens":369}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..77c7a69a12483d8716e428077dfed3efab41b074 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MOPLHOOG\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nGROUP BY \"MOPLHOOG\"\nORDER BY \"row_count\" DESC;","notes":"Used the planned Grouped Count by Category template with group_col bound to \"MOPLHOOG\" on the single table \"n15\"."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6e630a0db712b417/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..fd9b7f20371cd22f434dd59ea46b553a12989a17 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:58:02.530352+00:00", + "ended_at": "2026-05-19T15:58:06.181403+00:00", + "elapsed_ms": 3651.03, + "returncode": 1, + "prompt_metrics": { + "chars": 33256, + "bytes_utf8": 33256, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0983599c8e1a594a8b09f589ae656ff8e2d82c5b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:58:07.183686+00:00", + "ended_at": "2026-05-19T15:58:10.485942+00:00", + "elapsed_ms": 3302.22, + "returncode": 1, + "prompt_metrics": { + "chars": 33256, + "bytes_utf8": 33256, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..535d3b712879890b167c4e55adbfea60dfa0847f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=MOSTYPE, measure_col=MAUT2.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MAUT2", + "top_k": 16, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..535d3b712879890b167c4e55adbfea60dfa0847f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=MOSTYPE, measure_col=MAUT2.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MAUT2", + "top_k": 16, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..92841ec8a43ebfc1fc184d815236260e27bf40ff --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f5-5e47-7142-965a-2de8910783fc"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..693afb5e6184e4d84aa524de678f92476fcaf080 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f5-5e47-7142-965a-2de8910783fc"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..50132310197c4c6e86706bac9c6f6ac516c5088d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f5-704d-7ed2-8205-f37b2b5984ee"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..57d8bedb09aa314000fee461d53555d0c00788de --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f5-704d-7ed2-8205-f37b2b5984ee"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_6fe8f46bee03b332/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a325517c59e1f28a6e93990938295d775bc90e31 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:36.421849+00:00", + "ended_at": "2026-05-19T16:08:39.337208+00:00", + "elapsed_ms": 2915.34, + "returncode": 1, + "prompt_metrics": { + "chars": 33314, + "bytes_utf8": 33314, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..66c57f573aa17a96f1b2dc6c9f8d288eccacd19b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:08:40.339564+00:00", + "ended_at": "2026-05-19T16:08:43.080154+00:00", + "elapsed_ms": 2740.56, + "returncode": 1, + "prompt_metrics": { + "chars": 33314, + "bytes_utf8": 33314, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1406f5e00026ffe9963b905e7c96c58273978617 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MOPLLAAG, condition_col=MAUT2.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLLAAG", + "condition_col": "MAUT2", + "condition_value": "2", + "positive_value": "2", + "negative_value": "0", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1406f5e00026ffe9963b905e7c96c58273978617 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MOPLLAAG, condition_col=MAUT2.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLLAAG", + "condition_col": "MAUT2", + "condition_value": "2", + "positive_value": "2", + "negative_value": "0", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..72342eaa0db39e015dbaceabb78ed6aa11ebbdf5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-0a50-7e03-9f66-a7a6901418f4"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ae7820c4f1ebdc284e964cc5bd0b062e309f61f6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-0a50-7e03-9f66-a7a6901418f4"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..43192059f74b4aa26d7d8dab065fd431a55fd96b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-1991-7ab3-9d55-3eea541201ca"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b7e63ec7957a45b7f8dbb29bd69de5eb1abe4e4a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-1991-7ab3-9d55-3eea541201ca"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7017bd8c7dc39f8b/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4e6f2fad4084475ea71842382e2769c7becf711c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33475, "bytes_utf8": 33475, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 551, "bytes_utf8": 551, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23122, "cached_input_tokens": 12032, "output_tokens": 435, "reasoning_output_tokens": 270}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..1ce3d2c17ebc9db05d40e9671497e3436b32de96 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_709b070fb6714d72", + "api_calls": 0, + "input_tokens": 23122, + "cached_input_tokens": 12032, + "output_tokens": 435, + "total_tokens": 23557, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 12007.96, + "sql_execution_elapsed_ms_total": 13.34, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..68efd9b854d81622e10c7531761c038a149ba1df --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:34:45.359300+00:00", + "ended_at": "2026-05-19T15:34:57.367297+00:00", + "elapsed_ms": 12007.96, + "prompt_metrics": { + "chars": 33475, + "bytes_utf8": 33475, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 931, + "bytes_utf8": 931, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 551, + "bytes_utf8": 551, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23122, + "cached_input_tokens": 12032, + "output_tokens": 435, + "reasoning_output_tokens": 270 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8b98f096848d6c90d8742a2005a7a338ea03c781 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MSKA, measure_col=MSKA.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKA", + "measure_col": "MSKA", + "item_col": "MOSTYPE", + "top_k": 19, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..320d751ae5763499d80c1a024d8d7edf40618387 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e0-0c82-7862-b4d8-a37e63e11afb"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"MSKA\\\", \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKA\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MSKA\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MSKA\\\" AS REAL))) OVER (PARTITION BY \\\"MSKA\\\") AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MSKA\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the Within-Group Share of Total template with group_col=\\\"MSKA\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKA\\\". CAST to REAL is used because the schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23122,"cached_input_tokens":12032,"output_tokens":435,"reasoning_output_tokens":270}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..63993eff465f193e0bb244810bcb122df98a981d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"MSKA\", \"MOSTYPE\",\n SUM(CAST(\"MSKA\" AS REAL)) AS total_measure,\n SUM(CAST(\"MSKA\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MSKA\" AS REAL))) OVER (PARTITION BY \"MSKA\") AS share_within_group\nFROM \"n15\"\nGROUP BY \"MSKA\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Applied the Within-Group Share of Total template with group_col=\"MSKA\", item_col=\"MOSTYPE\", and measure_col=\"MSKA\". CAST to REAL is used because the schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_709b070fb6714d72/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b25d2755103f43710937b520575d86a7a708b8cc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33083, "bytes_utf8": 33083, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 290, "bytes_utf8": 290, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23012, "cached_input_tokens": 12032, "output_tokens": 361, "reasoning_output_tokens": 275}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..1aa12e1c82035287d9903403b3e4b765524c5de0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_71ea85c61b2b4eab", + "api_calls": 0, + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 361, + "total_tokens": 23373, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 10998.24, + "sql_execution_elapsed_ms_total": 4.98, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..24c9a499cc4c0835c9a5c092e22e20bc9d1084db --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:29:28.465253+00:00", + "ended_at": "2026-05-19T15:29:39.463514+00:00", + "elapsed_ms": 10998.24, + "prompt_metrics": { + "chars": 33083, + "bytes_utf8": 33083, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 640, + "bytes_utf8": 640, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 290, + "bytes_utf8": 290, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 361, + "reasoning_output_tokens": 275 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..229321a5f800c6addbbca8fdc26be081e1fe8e2c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGEMLEEF, measure_col=MGEMLEEF.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGEMLEEF", + "measure_col": "MGEMLEEF", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4f30624a9a50f9572e6ab91aab21e8eaaeabb63f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40db-36a5-7361-a471-d0cfd5595b57"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGEMLEEF\\\", SUM(\\\"MGEMLEEF\\\") AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGEMLEEF\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Uses the provided grouped numeric sum template with \\\"MGEMLEEF\\\" as both the grouping column and summed measure.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23012,"cached_input_tokens":12032,"output_tokens":361,"reasoning_output_tokens":275}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5e2ac5b6ad20a38e8ff483fb45897a9d22a489eb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGEMLEEF\", SUM(\"MGEMLEEF\") AS total_measure\nFROM \"n15\"\nGROUP BY \"MGEMLEEF\"\nORDER BY total_measure DESC;","notes":"Uses the provided grouped numeric sum template with \"MGEMLEEF\" as both the grouping column and summed measure."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_71ea85c61b2b4eab/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..526f23832971e2d311563452af3a4ed1b6d06980 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33480, "bytes_utf8": 33480, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 561, "bytes_utf8": 561, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23123, "cached_input_tokens": 12032, "output_tokens": 690, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2ec6093fcc783fed207638c96d727f7ceae40ba4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_723c32f43597d793", + "api_calls": 0, + "input_tokens": 23123, + "cached_input_tokens": 12032, + "output_tokens": 690, + "total_tokens": 23813, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 18169.64, + "sql_execution_elapsed_ms_total": 9.28, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..be7ceb703d13d7c6267a12e626f4642120c2b4de --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:36:33.084186+00:00", + "ended_at": "2026-05-19T15:36:51.253865+00:00", + "elapsed_ms": 18169.64, + "prompt_metrics": { + "chars": 33480, + "bytes_utf8": 33480, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 955, + "bytes_utf8": 955, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 561, + "bytes_utf8": 561, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23123, + "cached_input_tokens": 12032, + "output_tokens": 690, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..40a1840294e89105c6636cd92c2c800bf773d495 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MSKC, measure_col=MSKC.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKC", + "measure_col": "MSKC", + "item_col": "MOSTYPE", + "top_k": 17, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.28, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..cd1c0c87078443f37fe1cb984c110505edb08fe4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e1-b137-7210-9a4a-2aa523796ade"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MSKC\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKC\\\" AS REAL)) AS \\\"total_measure\\\",\\n SUM(CAST(\\\"MSKC\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MSKC\\\" AS REAL))) OVER (PARTITION BY \\\"MSKC\\\") AS \\\"share_within_group\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MSKC\\\", \\\"MOSTYPE\\\"\\nORDER BY \\\"share_within_group\\\" DESC;\",\"notes\":\"Applied the Within-Group Share of Total template with group_col=\\\"MSKC\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKC\\\". CAST is used because the schema stores these fields as TEXT in SQLite.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23123,"cached_input_tokens":12032,"output_tokens":690,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2747a0e7741283a58b351825ed31ff2a3e18c8e6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MSKC\",\n \"MOSTYPE\",\n SUM(CAST(\"MSKC\" AS REAL)) AS \"total_measure\",\n SUM(CAST(\"MSKC\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MSKC\" AS REAL))) OVER (PARTITION BY \"MSKC\") AS \"share_within_group\"\nFROM \"n15\"\nGROUP BY \"MSKC\", \"MOSTYPE\"\nORDER BY \"share_within_group\" DESC;","notes":"Applied the Within-Group Share of Total template with group_col=\"MSKC\", item_col=\"MOSTYPE\", and measure_col=\"MSKC\". CAST is used because the schema stores these fields as TEXT in SQLite."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_723c32f43597d793/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e11ff548f55f9f13966ab808e2eb36f4b3751167 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:05.240173+00:00", + "ended_at": "2026-05-19T16:11:09.440290+00:00", + "elapsed_ms": 4200.09, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..b83dcebcc00bcea14dc9631449403c120bfab511 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:10.443064+00:00", + "ended_at": "2026-05-19T16:11:13.476235+00:00", + "elapsed_ms": 3033.14, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c768ed4803d77736b2b6b0594bfc6a6a73d549a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MINK3045.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK3045", + "top_k": 18, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c768ed4803d77736b2b6b0594bfc6a6a73d549a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MINK3045.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK3045", + "top_k": 18, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..c0408c65833628b26c9be4083b7a84c7e89b9544 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-4fa5-79e0-b075-2b18161e55f7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5c6b92f742a4549bcbacb1939c1e9c1cb05da007 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-4fa5-79e0-b075-2b18161e55f7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7ef4e6f4fa3136187a8db46182fc95cf41227594 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-63e7-7221-a8db-1592b4cb2a86"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..71a70c7e4e0b4030f7ef327f8e828aa83a138173 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-63e7-7221-a8db-1592b4cb2a86"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_748864741e8d258a/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3d0d0248d140fb8150a1efff193a7b3377fc4707 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33472, "bytes_utf8": 33472, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 777, "bytes_utf8": 777, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23122, "cached_input_tokens": 21888, "output_tokens": 1198, "reasoning_output_tokens": 972}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..dcc7a4b71085d2cddf8d3274dd5ae142a4f18763 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_76b7ad93243986d5", + "api_calls": 0, + "input_tokens": 23122, + "cached_input_tokens": 21888, + "output_tokens": 1198, + "total_tokens": 24320, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20053.29, + "sql_execution_elapsed_ms_total": 13.85, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ad076d106be0e6bf15fd98e24820ec818edcaf31 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:36:13.005835+00:00", + "ended_at": "2026-05-19T15:36:33.059152+00:00", + "elapsed_ms": 20053.29, + "prompt_metrics": { + "chars": 33472, + "bytes_utf8": 33472, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1190, + "bytes_utf8": 1190, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 777, + "bytes_utf8": 777, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23122, + "cached_input_tokens": 21888, + "output_tokens": 1198, + "reasoning_output_tokens": 972 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ab322aa7676a0407a0abf8332337383bc85f27b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MSKC, measure_col=MSKC.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKC", + "measure_col": "MSKC", + "item_col": "MOSTYPE", + "top_k": 12, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d3ee16a9f4fa132ca32386fa5eb7e1b31185b6a7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e1-62d1-7ff2-8907-40b6e1e652e2"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MSKC\\\" AS \\\"MSKC\\\",\\n \\\"MOSTYPE\\\" AS \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKC\\\" AS REAL)) AS \\\"total_measure\\\",\\n SUM(CAST(\\\"MSKC\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MSKC\\\" AS REAL))) OVER (PARTITION BY \\\"MSKC\\\") AS \\\"share_within_group\\\"\\nFROM \\\"n15\\\"\\nWHERE \\\"MSKC\\\" IS NOT NULL\\n AND \\\"MOSTYPE\\\" IS NOT NULL\\nGROUP BY \\\"MSKC\\\", \\\"MOSTYPE\\\"\\nORDER BY \\\"share_within_group\\\" DESC;\",\"notes\":\"Applied the provided Within-Group Share of Total template with group_col=\\\"MSKC\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKC\\\". CAST is used because the schema stores these numeric-coded fields as TEXT in SQLite. No top-k filter was added because the supplied runtime template does not include a per-group ranking step.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23122,"cached_input_tokens":21888,"output_tokens":1198,"reasoning_output_tokens":972}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b98508f1a5d4a6c5a7f5e6b96ee7cfb56d122c90 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MSKC\" AS \"MSKC\",\n \"MOSTYPE\" AS \"MOSTYPE\",\n SUM(CAST(\"MSKC\" AS REAL)) AS \"total_measure\",\n SUM(CAST(\"MSKC\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MSKC\" AS REAL))) OVER (PARTITION BY \"MSKC\") AS \"share_within_group\"\nFROM \"n15\"\nWHERE \"MSKC\" IS NOT NULL\n AND \"MOSTYPE\" IS NOT NULL\nGROUP BY \"MSKC\", \"MOSTYPE\"\nORDER BY \"share_within_group\" DESC;","notes":"Applied the provided Within-Group Share of Total template with group_col=\"MSKC\", item_col=\"MOSTYPE\", and measure_col=\"MSKC\". CAST is used because the schema stores these numeric-coded fields as TEXT in SQLite. No top-k filter was added because the supplied runtime template does not include a per-group ranking step."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_76b7ad93243986d5/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1fc0d779014038ef4906753c738d7c532510540f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:17.404953+00:00", + "ended_at": "2026-05-19T16:14:20.847098+00:00", + "elapsed_ms": 3442.11, + "returncode": 1, + "prompt_metrics": { + "chars": 33160, + "bytes_utf8": 33160, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..84df942e9b7316ae4632cd76d9d524fc15b0445a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:21.850316+00:00", + "ended_at": "2026-05-19T16:14:24.799682+00:00", + "elapsed_ms": 2949.33, + "returncode": 1, + "prompt_metrics": { + "chars": 33160, + "bytes_utf8": 33160, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7c2b372576e668664b51824e5612e9bf46a6b83a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PLEVEN, measure_col=MAUT2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PLEVEN", + "measure_col": "MAUT2", + "top_k": 15, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..7c2b372576e668664b51824e5612e9bf46a6b83a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role ranked_signal_view. Focus on group_col=PLEVEN, measure_col=MAUT2.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PLEVEN", + "measure_col": "MAUT2", + "top_k": 15, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..37de9d2f905e8c946cbeae9570bb44e8384e73ef --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-3e58-7231-ad0b-e40de1977ca5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..f1dedfd33eca8b630115a42f0370982d40364793 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-3e58-7231-ad0b-e40de1977ca5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..5347a9fea8449ebcdefc21ee690cca603eb5e5a9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-4f9d-74b0-b521-75d55ff309cd"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..01e11e82cdce9206339202c2b46f586fba0f174e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-4f9d-74b0-b521-75d55ff309cd"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7de07f362d9405d8/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0d3c7aaf5c0ab61cbb22f6554c7c6cce05ef6596 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33632, "bytes_utf8": 33632, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 692, "bytes_utf8": 692, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23144, "cached_input_tokens": 12032, "output_tokens": 501, "reasoning_output_tokens": 292}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..12a8991cd77a5b53a75223c30ac3c6ff89e521a3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_7ec6eb112f27ba14", + "api_calls": 0, + "input_tokens": 23144, + "cached_input_tokens": 12032, + "output_tokens": 501, + "total_tokens": 23645, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19171.96, + "sql_execution_elapsed_ms_total": 8.5, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3cecd0bd1ce23689389c61b4a2fa5369a339dea1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:50:16.514144+00:00", + "ended_at": "2026-05-19T15:50:35.686137+00:00", + "elapsed_ms": 19171.96, + "prompt_metrics": { + "chars": 33632, + "bytes_utf8": 33632, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1444, + "bytes_utf8": 1444, + "lines": 5, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 692, + "bytes_utf8": 692, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23144, + "cached_input_tokens": 12032, + "output_tokens": 501, + "reasoning_output_tokens": 292 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..c1937e52ea3a69112b66d199d9be1db185c0e336 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=ABROM, measure_col=MBERBOER.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ABROM", + "measure_col": "MBERBOER", + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..c16b59a195f8da5b759dafbf0d6fd08073e976f0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,5 @@ +{"type":"thread.started","thread_id":"019e40ee-41d7-72e0-a3ea-6a9c4eadb4cd"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1981096, Requested 23779. Please try again in 146ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"ABROM\\\",\\n SUM(CAST(\\\"MBERBOER\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ABROM\\\"\\n), \\\"total\\\" AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM \\\"grouped\\\"\\n)\\nSELECT\\n g.\\\"ABROM\\\",\\n g.\\\"group_value\\\"\\nFROM \\\"grouped\\\" AS g\\nCROSS JOIN \\\"total\\\" AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Uses the requested Relative-to-Total Extreme Threshold template with group_col=\\\"ABROM\\\", measure_col=\\\"MBERBOER\\\", and fraction_threshold=0.1. CAST is applied because the schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23144,"cached_input_tokens":12032,"output_tokens":501,"reasoning_output_tokens":292}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..086e93978e6db6615256d6afc5812b1e67836118 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH \"grouped\" AS (\n SELECT\n \"ABROM\",\n SUM(CAST(\"MBERBOER\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"ABROM\"\n), \"total\" AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM \"grouped\"\n)\nSELECT\n g.\"ABROM\",\n g.\"group_value\"\nFROM \"grouped\" AS g\nCROSS JOIN \"total\" AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;","notes":"Uses the requested Relative-to-Total Extreme Threshold template with group_col=\"ABROM\", measure_col=\"MBERBOER\", and fraction_threshold=0.1. CAST is applied because the schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_7ec6eb112f27ba14/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..97a4a2ab026c8acbbd1d877b98fb4897464edcfe --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:12.739803+00:00", + "ended_at": "2026-05-19T16:10:16.008454+00:00", + "elapsed_ms": 3268.62, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..19125bb32a0fdbfb52c03da6eac04622005d42e8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:17.012021+00:00", + "ended_at": "2026-05-19T16:10:20.167585+00:00", + "elapsed_ms": 3155.52, + "returncode": 1, + "prompt_metrics": { + "chars": 33071, + "bytes_utf8": 33071, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..979217771e27d89937ddf1d2e10584ec3bef88e5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MZFONDS.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZFONDS", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..979217771e27d89937ddf1d2e10584ec3bef88e5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MZFONDS.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZFONDS", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..82a27f667632efb359644722507a7deb55e7f784 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-827a-7401-a18f-73f79cfd5bd1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d313313ebaabe9c35b0ecd75142fee33ef9cf9c7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-827a-7401-a18f-73f79cfd5bd1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..487fe1b01fb2c16e40da9a1cd78ae3f3fa908f99 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-933f-78b0-8411-eb3ef61fdc76"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..57fdc3ec1f48c5d081d7d30abe1fd1248165f0ca --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-933f-78b0-8411-eb3ef61fdc76"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_81a1540b243f18af/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c07c368a44ece8464b26b7f49f118dcf9108dd1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33886, "bytes_utf8": 33886, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 758, "bytes_utf8": 758, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23219, "cached_input_tokens": 0, "output_tokens": 577, "reasoning_output_tokens": 353}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b3b528b398e0d7f40ab288e46977f196479e4763 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_821a079c217f49be", + "api_calls": 0, + "input_tokens": 23219, + "cached_input_tokens": 0, + "output_tokens": 577, + "total_tokens": 23796, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 26070.28, + "sql_execution_elapsed_ms_total": 13.41, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..43defa42b91d41367624384167f4ad40b347741b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:43:53.822599+00:00", + "ended_at": "2026-05-19T15:44:19.892914+00:00", + "elapsed_ms": 26070.28, + "prompt_metrics": { + "chars": 33886, + "bytes_utf8": 33886, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2147, + "bytes_utf8": 2147, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 758, + "bytes_utf8": 758, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23219, + "cached_input_tokens": 0, + "output_tokens": 577, + "reasoning_output_tokens": 353 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..491d67e16dbde248766966262e086963d6e437d3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_ratio_two_conditions", + "template_name": "Grouped Ratio of Two Conditions", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Ratio of Two Conditions to probe direction_consistency with semantic role contrastive_conditional_view. Focus on group_col=PWAPART, condition_col=AZEILPL.", + "planned_template_id": "tpl_m4_group_ratio_two_conditions", + "bindings": { + "group_col": "PWAPART", + "condition_col": "AZEILPL", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 2.25, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..09f1598152e8be8918aec10f24aec6f0589879bd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40e8-6afe-7691-ab53-bf6e3b965cb8"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1980109, Requested 23854. Please try again in 118ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1978475, Requested 23854. Please try again in 69ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23854. Please try again in 715ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_ratio_two_conditions\\nWITH grouped AS (\\n SELECT\\n \\\"PWAPART\\\",\\n SUM(CASE WHEN \\\"AZEILPL\\\" = '0' THEN 1 ELSE 0 END) AS \\\"numerator_count\\\",\\n SUM(CASE WHEN \\\"AZEILPL\\\" = '1' THEN 1 ELSE 0 END) AS \\\"denominator_count\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"PWAPART\\\"\\n)\\nSELECT\\n \\\"PWAPART\\\",\\n CAST(\\\"numerator_count\\\" AS FLOAT) / NULLIF(\\\"denominator_count\\\", 0) AS \\\"condition_ratio\\\"\\nFROM grouped\\nORDER BY \\\"condition_ratio\\\" DESC;\",\"notes\":\"Instantiates the grouped ratio template with group_col=\\\"PWAPART\\\" and condition_col=\\\"AZEILPL\\\", computing the per-group ratio of AZEILPL='0' to AZEILPL='1'. Values are compared as strings because the SQLite schema stores these columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23219,"cached_input_tokens":0,"output_tokens":577,"reasoning_output_tokens":353}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b2d82ce27d68c6245227a114a05fa33a87b3bf7c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_ratio_two_conditions\nWITH grouped AS (\n SELECT\n \"PWAPART\",\n SUM(CASE WHEN \"AZEILPL\" = '0' THEN 1 ELSE 0 END) AS \"numerator_count\",\n SUM(CASE WHEN \"AZEILPL\" = '1' THEN 1 ELSE 0 END) AS \"denominator_count\"\n FROM \"n15\"\n GROUP BY \"PWAPART\"\n)\nSELECT\n \"PWAPART\",\n CAST(\"numerator_count\" AS FLOAT) / NULLIF(\"denominator_count\", 0) AS \"condition_ratio\"\nFROM grouped\nORDER BY \"condition_ratio\" DESC;","notes":"Instantiates the grouped ratio template with group_col=\"PWAPART\" and condition_col=\"AZEILPL\", computing the per-group ratio of AZEILPL='0' to AZEILPL='1'. Values are compared as strings because the SQLite schema stores these columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_821a079c217f49be/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8ea391aedc5948d12ccd97af6f359b174c49b63f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:43.149048+00:00", + "ended_at": "2026-05-19T16:11:46.289125+00:00", + "elapsed_ms": 3140.05, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..57f4d838c4115c76d95271250a709d1d63d1cf29 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:47.291435+00:00", + "ended_at": "2026-05-19T16:11:50.604583+00:00", + "elapsed_ms": 3313.11, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..701bec4054500bc3c979a654b0a092f5fc454e89 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINK123M.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK123M", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..701bec4054500bc3c979a654b0a092f5fc454e89 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINK123M.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK123M", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4a2130ded72d8853003fe609960aa438ce2ec35d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-e3a8-7ab1-b8bc-f1f4af89ec00"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b7a8340b9988715c35eb25bd10a9b7c7be96fdc4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-e3a8-7ab1-b8bc-f1f4af89ec00"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4b8f157741f68db29fedaf378dc0a2838da97ad3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-f3ef-7b01-9500-448beaee5877"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..f6a2583e31936e5b757ed8e74828f520e249bf88 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-f3ef-7b01-9500-448beaee5877"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_85ed9b446856756f/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6d23944342e4c0934615e3f2563732206b017c58 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33253, "bytes_utf8": 33253, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 867, "bytes_utf8": 867, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23046, "cached_input_tokens": 21888, "output_tokens": 2323, "reasoning_output_tokens": 2053}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..068412d21ef57b07593ac4cd175a8e29cb1463d3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_8841071f29b80019", + "api_calls": 0, + "input_tokens": 23046, + "cached_input_tokens": 21888, + "output_tokens": 2323, + "total_tokens": 25369, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 39940.14, + "sql_execution_elapsed_ms_total": 30.86, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7d3c9ec9c0ae014c032941609fa4011cbd0b2618 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:55:51.759657+00:00", + "ended_at": "2026-05-19T15:56:31.699827+00:00", + "elapsed_ms": 39940.14, + "prompt_metrics": { + "chars": 33253, + "bytes_utf8": 33253, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1304, + "bytes_utf8": 1304, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 867, + "bytes_utf8": 867, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23046, + "cached_input_tokens": 21888, + "output_tokens": 2323, + "reasoning_output_tokens": 2053 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a81382e49bb16048a5bb3c70302921e953e6767e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=CARAVAN, measure_col=MAUT1.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "CARAVAN", + "measure_col": "MAUT1", + "top_k": 10, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a5bc4ab710c09816e5b28a0f640af9f18cd4e9a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f3-5f69-78f3-bad2-34933535e57d"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"ranked\\\" AS (\\n SELECT\\n \\\"CARAVAN\\\",\\n CAST(\\\"MAUT1\\\" AS REAL) AS \\\"measure_value\\\",\\n CUME_DIST() OVER (\\n PARTITION BY \\\"CARAVAN\\\"\\n ORDER BY CAST(\\\"MAUT1\\\" AS REAL)\\n ) AS \\\"cdf\\\",\\n COUNT(*) OVER (PARTITION BY \\\"CARAVAN\\\") AS \\\"group_size\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"CARAVAN\\\" IS NOT NULL\\n AND \\\"MAUT1\\\" IS NOT NULL\\n)\\nSELECT\\n \\\"CARAVAN\\\",\\n MIN(\\\"measure_value\\\") AS \\\"percentile_measure\\\"\\nFROM \\\"ranked\\\"\\nWHERE \\\"cdf\\\" >= 0.9\\n AND \\\"group_size\\\" >= 5\\nGROUP BY \\\"CARAVAN\\\"\\nORDER BY \\\"percentile_measure\\\" DESC;\",\"notes\":\"SQLite does not support PERCENTILE_CONT, so this uses CUME_DIST() to return the discrete 90th-percentile value of CAST(\\\"MAUT1\\\" AS REAL) within each \\\"CARAVAN\\\" group, while enforcing the provided minimum group size of 5 non-null rows.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23046,"cached_input_tokens":21888,"output_tokens":2323,"reasoning_output_tokens":2053}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7fd2dd266b47d0a132ab778aa1660b4c4eac2f83 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"ranked\" AS (\n SELECT\n \"CARAVAN\",\n CAST(\"MAUT1\" AS REAL) AS \"measure_value\",\n CUME_DIST() OVER (\n PARTITION BY \"CARAVAN\"\n ORDER BY CAST(\"MAUT1\" AS REAL)\n ) AS \"cdf\",\n COUNT(*) OVER (PARTITION BY \"CARAVAN\") AS \"group_size\"\n FROM \"n15\"\n WHERE \"CARAVAN\" IS NOT NULL\n AND \"MAUT1\" IS NOT NULL\n)\nSELECT\n \"CARAVAN\",\n MIN(\"measure_value\") AS \"percentile_measure\"\nFROM \"ranked\"\nWHERE \"cdf\" >= 0.9\n AND \"group_size\" >= 5\nGROUP BY \"CARAVAN\"\nORDER BY \"percentile_measure\" DESC;","notes":"SQLite does not support PERCENTILE_CONT, so this uses CUME_DIST() to return the discrete 90th-percentile value of CAST(\"MAUT1\" AS REAL) within each \"CARAVAN\" group, while enforcing the provided minimum group size of 5 non-null rows."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8841071f29b80019/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f6ff38d396b0d76c5af4acd22d4f34bb6a7793aa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:27.205757+00:00", + "ended_at": "2026-05-19T16:10:30.491091+00:00", + "elapsed_ms": 3285.31, + "returncode": 1, + "prompt_metrics": { + "chars": 33069, + "bytes_utf8": 33069, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f44014fd983b2bdf43179d7597e573d0432cbb20 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:31.493472+00:00", + "ended_at": "2026-05-19T16:10:35.472435+00:00", + "elapsed_ms": 3978.93, + "returncode": 1, + "prompt_metrics": { + "chars": 33069, + "bytes_utf8": 33069, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..fc71805b742342fc43c12db90de6ee5e39dc7509 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MZPART.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZPART", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..fc71805b742342fc43c12db90de6ee5e39dc7509 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MZPART.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MZPART", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..03c49a3d586c8f3e3338c09887145b3b8891b5fd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-bb0e-7ed3-bd39-227f42871dea"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b995d1a3dad88346ec7029e5a0fb30e78d633ff2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-bb0e-7ed3-bd39-227f42871dea"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..3fcdb70a503274cf9458ab571b82dd82ed523af9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-cbb3-7a81-be9a-76eab13148e2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..7fac78366ecf4d2626ebce79ff79ab7eae7331cb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-cbb3-7a81-be9a-76eab13148e2"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8852b4d5612a87f8/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d56352dc502bd5886819011e7372cbc203e3772c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33479, "bytes_utf8": 33479, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 649, "bytes_utf8": 649, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23126, "cached_input_tokens": 21888, "output_tokens": 717, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2bf99552a25773ca63f7154905a1b8f8ffe03c75 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_8a91fa6787491e50", + "api_calls": 0, + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 717, + "total_tokens": 23843, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 18344.66, + "sql_execution_elapsed_ms_total": 9.51, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..79f10509d630a136d51c2937d7507b2ee3f2d876 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:39:59.261150+00:00", + "ended_at": "2026-05-19T15:40:17.605840+00:00", + "elapsed_ms": 18344.66, + "prompt_metrics": { + "chars": 33479, + "bytes_utf8": 33479, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1033, + "bytes_utf8": 1033, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 649, + "bytes_utf8": 649, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23126, + "cached_input_tokens": 21888, + "output_tokens": 717, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e5aa10c236b2b60912e4deb3bb55e06494b3fa29 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role focused_target_view. Focus on group_col=MAUT2, measure_col=MAUT2.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MAUT2", + "measure_col": "MAUT2", + "item_col": "MOSTYPE", + "top_k": 17, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..abc2fab97ebaecd30fa92a636296a3ef0d9829c3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e4-d6ae-7cc0-88f7-bfc75f6211ae"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"MAUT2\\\", \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT2\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MAUT2\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MAUT2\\\" AS REAL))) OVER (PARTITION BY \\\"MAUT2\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAUT2\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Used the planned Within-Group Share of Total template with group_col=\\\"MAUT2\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT2\\\". Cast \\\"MAUT2\\\" to REAL because the schema stores it as TEXT, and used NULLIF to avoid division-by-zero within groups whose total measure is 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23126,"cached_input_tokens":21888,"output_tokens":717,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1b559a620af0a2e7905993f7a104b58b6382ce6c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"MAUT2\", \"MOSTYPE\",\n SUM(CAST(\"MAUT2\" AS REAL)) AS total_measure,\n SUM(CAST(\"MAUT2\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MAUT2\" AS REAL))) OVER (PARTITION BY \"MAUT2\"), 0) AS share_within_group\nFROM \"n15\"\nGROUP BY \"MAUT2\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Used the planned Within-Group Share of Total template with group_col=\"MAUT2\", item_col=\"MOSTYPE\", and measure_col=\"MAUT2\". Cast \"MAUT2\" to REAL because the schema stores it as TEXT, and used NULLIF to avoid division-by-zero within groups whose total measure is 0."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8a91fa6787491e50/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6a3777a8aa518c39c6fe8a97edb9ddcd32799db8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33251, "bytes_utf8": 33251, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 533, "bytes_utf8": 533, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23059, "cached_input_tokens": 21888, "output_tokens": 498, "reasoning_output_tokens": 328}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c873c519e71234824358e9bde592460b12766c6e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_8cd4f9a1a1e2b848", + "api_calls": 0, + "input_tokens": 23059, + "cached_input_tokens": 21888, + "output_tokens": 498, + "total_tokens": 23557, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11095.12, + "sql_execution_elapsed_ms_total": 13.7, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..c9abcb5afda5af6c19710572faa58ca88a16a439 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:47:26.847632+00:00", + "ended_at": "2026-05-19T15:47:37.942794+00:00", + "elapsed_ms": 11095.12, + "prompt_metrics": { + "chars": 33251, + "bytes_utf8": 33251, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 922, + "bytes_utf8": 922, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 533, + "bytes_utf8": 533, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23059, + "cached_input_tokens": 21888, + "output_tokens": 498, + "reasoning_output_tokens": 328 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6d4258c35d855a80bc277a4ba17abd80c9d2c584 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_quantile_tail_slice", + "template_name": "Quantile Tail Slice", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODGE.", + "planned_template_id": "tpl_m4_quantile_tail_slice", + "bindings": { + "measure_col": "MGODGE", + "top_k": 12, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..02af1690d8b19380cbe2eacc484943cf99355a74 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40eb-ab7c-7a41-99ef-1a457788a428"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n CAST(\\\"MGODGE\\\" AS INTEGER) AS \\\"MGODGE\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"MGODGE\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MGODGE\\\" IS NOT NULL\\n)\\nSELECT \\\"MGODGE\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY \\\"MGODGE\\\" DESC;\",\"notes\":\"Applied the Quantile Tail Slice template with measure_col bound to \\\"MGODGE\\\" and num_tiles=10. Cast \\\"MGODGE\\\" to INTEGER because the schema stores values as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23059,"cached_input_tokens":21888,"output_tokens":498,"reasoning_output_tokens":328}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..94e8c526ec9b67be7b02dc3857bacd67072e3c76 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n CAST(\"MGODGE\" AS INTEGER) AS \"MGODGE\",\n NTILE(10) OVER (ORDER BY CAST(\"MGODGE\" AS INTEGER) DESC) AS \"tail_bucket\"\n FROM \"n15\"\n WHERE \"MGODGE\" IS NOT NULL\n)\nSELECT \"MGODGE\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY \"MGODGE\" DESC;","notes":"Applied the Quantile Tail Slice template with measure_col bound to \"MGODGE\" and num_tiles=10. Cast \"MGODGE\" to INTEGER because the schema stores values as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8cd4f9a1a1e2b848/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bb9fa399284145f973669baa97a31910a71587c6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:56.772856+00:00", + "ended_at": "2026-05-19T16:10:01.054423+00:00", + "elapsed_ms": 4281.54, + "returncode": 1, + "prompt_metrics": { + "chars": 33016, + "bytes_utf8": 33016, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bfd7e066145b2b0926b5179b51b1171d0f8c2e32 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:02.057742+00:00", + "ended_at": "2026-05-19T16:10:05.358153+00:00", + "elapsed_ms": 3300.37, + "returncode": 1, + "prompt_metrics": { + "chars": 33016, + "bytes_utf8": 33016, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..23648c0bcb6c8ed34c4ff1ac0dd6e8f3423202d0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODOV.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODOV", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..23648c0bcb6c8ed34c4ff1ac0dd6e8f3423202d0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODOV.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODOV", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..50dbdc13e3e5449ad241ba46386c6c71e57d425f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-4449-7381-b6d3-048710c06346"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8383efc3cb172330a4721f5d8c1ff13e92b8fb3e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-4449-7381-b6d3-048710c06346"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..aa7f674ba049604cb3b89a1563add53ca3426a02 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-58c0-7a61-8cb3-071db89e375d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..d20743f7e787825c43018b960ae5f219990ae809 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-58c0-7a61-8cb3-071db89e375d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8e59f761052e0c26/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..12578f9bfb30429a53855b10cffcde66b4a11e58 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33477, "bytes_utf8": 33477, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 695, "bytes_utf8": 695, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23123, "cached_input_tokens": 12032, "output_tokens": 721, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..6aafaa8be27795397f68333750840da88e40f3c1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_8f8fbd90b232ee22", + "api_calls": 0, + "input_tokens": 23123, + "cached_input_tokens": 12032, + "output_tokens": 721, + "total_tokens": 23844, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 14463.93, + "sql_execution_elapsed_ms_total": 13.77, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..08c228434ca4829f9e565a23347612fb60c4c567 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:34:30.872349+00:00", + "ended_at": "2026-05-19T15:34:45.336318+00:00", + "elapsed_ms": 14463.93, + "prompt_metrics": { + "chars": 33477, + "bytes_utf8": 33477, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1086, + "bytes_utf8": 1086, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 695, + "bytes_utf8": 695, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23123, + "cached_input_tokens": 12032, + "output_tokens": 721, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..4a9325996adb6de561ebc34680e0a6303a8fa837 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MSKA, measure_col=MSKA.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKA", + "measure_col": "MSKA", + "item_col": "MOSTYPE", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8524c3102d217520572243e2cd7e71d958fdb54d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40df-d3e9-7693-aca5-b89c49471398"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"MSKA\\\", \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKA\\\" AS REAL)) AS total_measure,\\n CASE\\n WHEN SUM(SUM(CAST(\\\"MSKA\\\" AS REAL))) OVER (PARTITION BY \\\"MSKA\\\") = 0 THEN NULL\\n ELSE SUM(CAST(\\\"MSKA\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MSKA\\\" AS REAL))) OVER (PARTITION BY \\\"MSKA\\\")\\n END AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MSKA\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the provided Within-Group Share of Total template with group_col=\\\"MSKA\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKA\\\". CAST to REAL was added because the schema stores these fields as TEXT in SQLite.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23123,"cached_input_tokens":12032,"output_tokens":721,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..017d0353371109176668b4e38c74731067be00d1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"MSKA\", \"MOSTYPE\",\n SUM(CAST(\"MSKA\" AS REAL)) AS total_measure,\n CASE\n WHEN SUM(SUM(CAST(\"MSKA\" AS REAL))) OVER (PARTITION BY \"MSKA\") = 0 THEN NULL\n ELSE SUM(CAST(\"MSKA\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MSKA\" AS REAL))) OVER (PARTITION BY \"MSKA\")\n END AS share_within_group\nFROM \"n15\"\nGROUP BY \"MSKA\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Applied the provided Within-Group Share of Total template with group_col=\"MSKA\", item_col=\"MOSTYPE\", and measure_col=\"MSKA\". CAST to REAL was added because the schema stores these fields as TEXT in SQLite."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8f8fbd90b232ee22/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..de5373422be65abba1ca84349b281f4159ed967f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33383, "bytes_utf8": 33383, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 397, "bytes_utf8": 397, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23097, "cached_input_tokens": 21888, "output_tokens": 349, "reasoning_output_tokens": 238}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..01fc73f4e02496b80aed8876077d6b2ddedb4b6e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_8fdb4982ebba62ae", + "api_calls": 0, + "input_tokens": 23097, + "cached_input_tokens": 21888, + "output_tokens": 349, + "total_tokens": 23446, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11506.93, + "sql_execution_elapsed_ms_total": 2.58, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1af4094e1995e9a753171c48ffabe1437d58bbfa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:45:29.238515+00:00", + "ended_at": "2026-05-19T15:45:40.745470+00:00", + "elapsed_ms": 11506.93, + "prompt_metrics": { + "chars": 33383, + "bytes_utf8": 33383, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 756, + "bytes_utf8": 756, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 397, + "bytes_utf8": 397, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23097, + "cached_input_tokens": 21888, + "output_tokens": 349, + "reasoning_output_tokens": 238 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1ab8aee17d89c6004c610224b6a946dfba891872 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PBROM.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PBROM", + "predicate_col": "PWERKT", + "predicate_op": "=", + "predicate_value": "3", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ae1396d10b8b1ee1d61aac187c37dda3e81ea24d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e9-dfb8-78e2-b0b4-9caea1a3e206"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"MOSTYPE\\\", \\\"PBROM\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nWHERE \\\"PWERKT\\\" = '3'\\nGROUP BY \\\"MOSTYPE\\\", \\\"PBROM\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Used the provided two-dimensional filtered group-count template with fixed bindings. Compared \\\"PWERKT\\\" to text literal '3' because the SQLite schema shows these columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23097,"cached_input_tokens":21888,"output_tokens":349,"reasoning_output_tokens":238}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..bc7527f5821c9e1518d89bcc69265ce0cbac43ad --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"MOSTYPE\", \"PBROM\", COUNT(*) AS row_count\nFROM \"n15\"\nWHERE \"PWERKT\" = '3'\nGROUP BY \"MOSTYPE\", \"PBROM\"\nORDER BY row_count DESC;","notes":"Used the provided two-dimensional filtered group-count template with fixed bindings. Compared \"PWERKT\" to text literal '3' because the SQLite schema shows these columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_8fdb4982ebba62ae/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d3e1f62a2e60a78c933d91ffb7edfc41f748b2f2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33638, "bytes_utf8": 33638, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 682, "bytes_utf8": 682, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23146, "cached_input_tokens": 21888, "output_tokens": 602, "reasoning_output_tokens": 392}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..5ef7aa3652dac5b10f60df0ce212572c0fbf4c77 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_920dcb7cde23230c", + "api_calls": 0, + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 602, + "total_tokens": 23748, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11827.22, + "sql_execution_elapsed_ms_total": 6.75, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..485cf6cae09d3152fb10dcf765a2cf4deacbbad8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:49:17.099022+00:00", + "ended_at": "2026-05-19T15:49:28.926270+00:00", + "elapsed_ms": 11827.22, + "prompt_metrics": { + "chars": 33638, + "bytes_utf8": 33638, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1102, + "bytes_utf8": 1102, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 682, + "bytes_utf8": 682, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 602, + "reasoning_output_tokens": 392 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ffbc0deaad0466b6c51cbff9adf51b648dfd9ec --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=ATRACTOR, measure_col=MBERHOOG.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ATRACTOR", + "measure_col": "MBERHOOG", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..503c575664e6470327e02958b7126f7b9a5df184 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ed-59aa-7b42-ba98-8acd573d0d34"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"ATRACTOR\\\",\\n SUM(CAST(\\\"MBERHOOG\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ATRACTOR\\\"\\n),\\n\\\"total\\\" AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM \\\"grouped\\\"\\n)\\nSELECT\\n g.\\\"ATRACTOR\\\",\\n g.\\\"group_value\\\"\\nFROM \\\"grouped\\\" AS g\\nCROSS JOIN \\\"total\\\" AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Uses the required Relative-to-Total Extreme Threshold template with group_col=\\\"ATRACTOR\\\" and measure_col=\\\"MBERHOOG\\\". CAST to REAL is applied because the schema stores columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23146,"cached_input_tokens":21888,"output_tokens":602,"reasoning_output_tokens":392}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7b6c8e5415c06e6acd9286c3f68553c2ee6166ec --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH \"grouped\" AS (\n SELECT\n \"ATRACTOR\",\n SUM(CAST(\"MBERHOOG\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n GROUP BY \"ATRACTOR\"\n),\n\"total\" AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM \"grouped\"\n)\nSELECT\n g.\"ATRACTOR\",\n g.\"group_value\"\nFROM \"grouped\" AS g\nCROSS JOIN \"total\" AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;","notes":"Uses the required Relative-to-Total Extreme Threshold template with group_col=\"ATRACTOR\" and measure_col=\"MBERHOOG\". CAST to REAL is applied because the schema stores columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_920dcb7cde23230c/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..4814ed3e0f808a39b9bd495b6af5867e4645ac44 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/final_answer.txt @@ -0,0 +1 @@ +{"row_count": null, "preview_rows": [{"MOSTYPE": "33", "support": 1401, "avg_response": 2.9950035688793717}, {"MOSTYPE": "38", "support": 569, "avg_response": 2.743409490333919}, {"MOSTYPE": "8", "support": 546, "avg_response": 2.9358974358974357}, {"MOSTYPE": "39", "support": 542, "avg_response": 2.904059040590406}, {"MOSTYPE": "9", "support": 460, "avg_response": 2.758695652173913}]} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..eaf8c737e17911e45109bf02822a621f120444cc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/generated_sql.sql @@ -0,0 +1,21 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: cardinality_structure +-- canonical_subitem_id: high_cardinality_response_stability +-- intended_facet_id: target_cardinality_cross_section +-- variant_semantic_role: focused_target_view +-- template_id: tpl_cardinality_high_card_response_stability +-- query_record_id: v2q_n15_9506d927be519f72 +-- problem_id: v2p_n15_394dafc0eb2edfbe +-- realization_mode: deterministic +-- source_kind: deterministic +SELECT + "MOSTYPE", + COUNT(*) AS support, + AVG("MGEMLEEF") AS avg_response +FROM "n15" +GROUP BY "MOSTYPE" +HAVING COUNT(*) >= 5.0 +ORDER BY support DESC, avg_response DESC; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6e759d65a434592dc8858a72522e17885a473e3e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/query_results.jsonl @@ -0,0 +1 @@ +{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v2\n-- sql_source_label: v2_current\n-- sql_source_run_id: v2_cli_20260502_081223_b\n-- sql_source_dataset_id: n15\n-- family_id: cardinality_structure\n-- canonical_subitem_id: high_cardinality_response_stability\n-- intended_facet_id: target_cardinality_cross_section\n-- variant_semantic_role: focused_target_view\n-- template_id: tpl_cardinality_high_card_response_stability\n-- query_record_id: v2q_n15_9506d927be519f72\n-- problem_id: v2p_n15_394dafc0eb2edfbe\n-- realization_mode: deterministic\n-- source_kind: deterministic\nSELECT\n \"MOSTYPE\",\n COUNT(*) AS support,\n AVG(\"MGEMLEEF\") AS avg_response\nFROM \"n15\"\nGROUP BY \"MOSTYPE\"\nHAVING COUNT(*) >= 5.0\nORDER BY support DESC, avg_response DESC;", "result": "{\"query\": \"-- sql_source_version: v2\\n-- sql_source_label: v2_current\\n-- sql_source_run_id: v2_cli_20260502_081223_b\\n-- sql_source_dataset_id: n15\\n-- family_id: cardinality_structure\\n-- canonical_subitem_id: high_cardinality_response_stability\\n-- intended_facet_id: target_cardinality_cross_section\\n-- variant_semantic_role: focused_target_view\\n-- template_id: tpl_cardinality_high_card_response_stability\\n-- query_record_id: v2q_n15_9506d927be519f72\\n-- problem_id: v2p_n15_394dafc0eb2edfbe\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nSELECT\\n \\\"MOSTYPE\\\",\\n COUNT(*) AS support,\\n AVG(\\\"MGEMLEEF\\\") AS avg_response\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOSTYPE\\\"\\nHAVING COUNT(*) >= 5.0\\nORDER BY support DESC, avg_response DESC;\", \"columns\": [\"MOSTYPE\", \"support\", \"avg_response\"], \"rows\": [{\"MOSTYPE\": \"33\", \"support\": 1401, \"avg_response\": 2.9950035688793717}, {\"MOSTYPE\": \"38\", \"support\": 569, \"avg_response\": 2.743409490333919}, {\"MOSTYPE\": \"8\", \"support\": 546, \"avg_response\": 2.9358974358974357}, {\"MOSTYPE\": \"39\", \"support\": 542, \"avg_response\": 2.904059040590406}, {\"MOSTYPE\": \"9\", \"support\": 460, \"avg_response\": 2.758695652173913}, {\"MOSTYPE\": \"3\", \"support\": 433, \"avg_response\": 3.5288683602771362}, {\"MOSTYPE\": \"23\", \"support\": 376, \"avg_response\": 2.1941489361702127}, {\"MOSTYPE\": \"36\", \"support\": 373, \"avg_response\": 3.415549597855228}, {\"MOSTYPE\": \"35\", \"support\": 362, \"avg_response\": 3.25414364640884}, {\"MOSTYPE\": \"41\", \"support\": 355, \"avg_response\": 2.907042253521127}, {\"MOSTYPE\": \"34\", \"support\": 325, \"avg_response\": 2.56}, {\"MOSTYPE\": \"24\", \"support\": 324, \"avg_response\": 2.611111111111111}, {\"MOSTYPE\": \"31\", \"support\": 318, \"avg_response\": 3.1132075471698113}, {\"MOSTYPE\": \"13\", \"support\": 302, \"avg_response\": 2.5}, {\"MOSTYPE\": \"11\", \"support\": 286, \"avg_response\": 2.9895104895104896}, {\"MOSTYPE\": \"10\", \"support\": 271, \"avg_response\": 2.6715867158671585}, {\"MOSTYPE\": \"32\", \"support\": 234, \"avg_response\": 3.3803418803418803}, {\"MOSTYPE\": \"37\", \"support\": 233, \"avg_response\": 3.111587982832618}, {\"MOSTYPE\": \"1\", \"support\": 218, \"avg_response\": 3.426605504587156}, {\"MOSTYPE\": \"6\", \"support\": 209, \"avg_response\": 2.660287081339713}, {\"MOSTYPE\": \"12\", \"support\": 194, \"avg_response\": 2.1597938144329896}, {\"MOSTYPE\": \"30\", \"support\": 190, \"avg_response\": 3.8789473684210525}, {\"MOSTYPE\": \"22\", \"support\": 169, \"avg_response\": 2.485207100591716}, {\"MOSTYPE\": \"2\", \"support\": 148, \"avg_response\": 3.1824324324324325}, {\"MOSTYPE\": \"29\", \"support\": 139, \"avg_response\": 3.273381294964029}, {\"MOSTYPE\": \"40\", \"support\": 137, \"avg_response\": 3.1605839416058394}, {\"MOSTYPE\": \"25\", \"support\": 129, \"avg_response\": 3.8294573643410854}, {\"MOSTYPE\": \"4\", \"support\": 90, \"avg_response\": 3.977777777777778}, {\"MOSTYPE\": \"26\", \"support\": 79, \"avg_response\": 4.7974683544303796}, {\"MOSTYPE\": \"27\", \"support\": 77, \"avg_response\": 4.48051948051948}, {\"MOSTYPE\": \"7\", \"support\": 72, \"avg_response\": 2.486111111111111}, {\"MOSTYPE\": \"5\", \"support\": 70, \"avg_response\": 3.6}, {\"MOSTYPE\": \"20\", \"support\": 42, \"avg_response\": 2.9285714285714284}, {\"MOSTYPE\": \"28\", \"support\": 41, \"avg_response\": 4.926829268292683}, {\"MOSTYPE\": \"21\", \"support\": 29, \"avg_response\": 3.0344827586206895}, {\"MOSTYPE\": \"18\", \"support\": 27, \"avg_response\": 2.2962962962962963}, {\"MOSTYPE\": \"16\", \"support\": 25, \"avg_response\": 2.04}, {\"MOSTYPE\": \"17\", \"support\": 13, \"avg_response\": 3.6923076923076925}, {\"MOSTYPE\": \"15\", \"support\": 7, \"avg_response\": 4.0}, {\"MOSTYPE\": \"19\", \"support\": 7, \"avg_response\": 3.7142857142857144}], \"row_count_returned\": 40, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 5.76}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..c82c31c1ca8da5051133fcafd040c35b6901d9c8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/run_manifest.json @@ -0,0 +1,60 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T16:14:24.970251+00:00", + "ended_at": "2026-05-19T16:14:24.976873+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_9506d927be519f72", + "problem_id": "v2p_n15_394dafc0eb2edfbe", + "dataset_id": "n15", + "template_id": "tpl_cardinality_high_card_response_stability", + "template_name": "High-Cardinality Response Stability", + "family_id": "cardinality_structure", + "canonical_subitem_id": "high_cardinality_response_stability", + "intended_facet_id": "target_cardinality_cross_section", + "variant_semantic_role": "focused_target_view", + "subitem_assignment_source": "template_fixed", + "source_kind": "deterministic", + "realization_mode": "deterministic", + "gate_priority": "deterministic", + "extended_family": true, + "question": "Use template High-Cardinality Response Stability to probe high_cardinality_response_stability with semantic role focused_target_view. Focus on measure_col=MGEMLEEF, key_col=MOSTYPE.", + "bindings": { + "key_col": "MOSTYPE", + "measure_col": "MGEMLEEF", + "min_support": 5 + }, + "binding_roles": [ + "key_col", + "target_col" + ], + "coverage_target_min": "enumerate_all_applicable", + "runtime_sql_skeleton": "SELECT\n {key_col},\n COUNT(*) AS support,\n AVG({measure_col}) AS avg_response\nFROM {table}\nGROUP BY {key_col}\nHAVING COUNT(*) >= {min_support}\nORDER BY support DESC, avg_response DESC;", + "notes": [ + "default_facets=target_cardinality_cross_section", + "template_selection_mode=deterministic", + "problem_index_within_template=3", + "sql_variant_index=1/1" + ], + "template_selection_mode": "deterministic", + "selected_template_rank": 0, + "problem_index_within_template": 3, + "sql_variant_index": 1, + "sql_variant_total": 1 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_9506d927be519f72.sql", + "usage_summary": { + "engine": "template", + "input_tokens": 0, + "cached_input_tokens": 0, + "output_tokens": 0, + "total_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "none" + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..96c9ff4feec395919fc26411d18d078b8af6e1c7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9506d927be519f72/usage_summary.json @@ -0,0 +1,9 @@ +{ + "engine": "template", + "input_tokens": 0, + "cached_input_tokens": 0, + "output_tokens": 0, + "total_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "none" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f4e8139976701cb708a84236bda27c25b925ed1e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:07.549983+00:00", + "ended_at": "2026-05-19T16:09:10.581355+00:00", + "elapsed_ms": 3031.33, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e3bd586452198a42d15e58024f7b7e4d926e6b5d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:11.584758+00:00", + "ended_at": "2026-05-19T16:09:14.507222+00:00", + "elapsed_ms": 2922.42, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..688c12b53bc11cbc9ae78d16cdbab26fd59113bf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MOSTYPE.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MOSTYPE", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 20.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..688c12b53bc11cbc9ae78d16cdbab26fd59113bf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MOSTYPE.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MOSTYPE", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 20.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d6babf3e6e5656bf67ef2f030834151c7b5075d6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-83e5-7c43-9a37-b86bbc21f167"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..645265fa37e6c1eeb408119d4727cd837ab9329f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-83e5-7c43-9a37-b86bbc21f167"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e68f3ab6ca88bca048346bece2b894f23781366c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-939f-7c51-834e-ab8be02849ec"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..c4de13e6adce6ed586d8d94b00583459d274bfff --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-939f-7c51-834e-ab8be02849ec"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_97a3b045ba48d6a3/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0f92774d31b04c84dd0093a220768e386c6a4106 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33255, "bytes_utf8": 33255, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 530, "bytes_utf8": 530, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23059, "cached_input_tokens": 12032, "output_tokens": 656, "reasoning_output_tokens": 498}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..74b84c48d4724820a53320e5d83eb08383890f89 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_9ad46ccf0b7f25db", + "api_calls": 0, + "input_tokens": 23059, + "cached_input_tokens": 12032, + "output_tokens": 656, + "total_tokens": 23715, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 15511.74, + "sql_execution_elapsed_ms_total": 16.93, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ff623d1dbb719642c1b38837a2a4998b867b7ba1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:48:23.135203+00:00", + "ended_at": "2026-05-19T15:48:38.646977+00:00", + "elapsed_ms": 15511.74, + "prompt_metrics": { + "chars": 33255, + "bytes_utf8": 33255, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 906, + "bytes_utf8": 906, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 530, + "bytes_utf8": 530, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23059, + "cached_input_tokens": 12032, + "output_tokens": 656, + "reasoning_output_tokens": 498 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..349cc3b7895c022b13b7144dde6279015d476961 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_quantile_tail_slice", + "template_name": "Quantile Tail Slice", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MFALLEEN.", + "planned_template_id": "tpl_m4_quantile_tail_slice", + "bindings": { + "measure_col": "MFALLEEN", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..5a1773c808cfae3525dfeeacfd271b6b730a4ba0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ec-86f6-79f2-8478-34b5eb88f00e"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n CAST(\\\"MFALLEEN\\\" AS INTEGER) AS \\\"MFALLEEN\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"MFALLEEN\\\" AS INTEGER) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"n15\\\"\\n)\\nSELECT \\\"MFALLEEN\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY \\\"MFALLEEN\\\" DESC;\",\"notes\":\"Uses the planned Quantile Tail Slice template with measure_col bound to MFALLEEN and num_tiles=10. MFALLEEN is cast to INTEGER because the SQLite schema stores it as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23059,"cached_input_tokens":12032,"output_tokens":656,"reasoning_output_tokens":498}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..209bafea7dc877c0bdf62ad3b7f0e7b960b94312 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n CAST(\"MFALLEEN\" AS INTEGER) AS \"MFALLEEN\",\n NTILE(10) OVER (ORDER BY CAST(\"MFALLEEN\" AS INTEGER) DESC) AS \"tail_bucket\"\n FROM \"n15\"\n)\nSELECT \"MFALLEEN\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY \"MFALLEEN\" DESC;","notes":"Uses the planned Quantile Tail Slice template with measure_col bound to MFALLEEN and num_tiles=10. MFALLEEN is cast to INTEGER because the SQLite schema stores it as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ad46ccf0b7f25db/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..fd5c80f067ec639fe67fc8a7a9cd2dd96e8da964 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33389, "bytes_utf8": 33389, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 448, "bytes_utf8": 448, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23101, "cached_input_tokens": 21888, "output_tokens": 519, "reasoning_output_tokens": 387}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..00e3182f7f0ab41acc2b295a01789a150f99f1c4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_9ba69bb7381ae131", + "api_calls": 0, + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 519, + "total_tokens": 23620, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19010.92, + "sql_execution_elapsed_ms_total": 5.16, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6d983f93119c51159e0ed71e4ddf428ca11b4211 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:44:46.165295+00:00", + "ended_at": "2026-05-19T15:45:05.176251+00:00", + "elapsed_ms": 19010.92, + "prompt_metrics": { + "chars": 33389, + "bytes_utf8": 33389, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1156, + "bytes_utf8": 1156, + "lines": 5, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 448, + "bytes_utf8": 448, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 519, + "reasoning_output_tokens": 387 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..667d9310b80534e507db836d7a47633071628aa8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PAANHANG.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PAANHANG", + "predicate_col": "PVRAAUT", + "predicate_op": "=", + "predicate_value": "9", + "top_k": 14, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ac4256abe38cfcce85c439152458005d72c861ca --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,5 @@ +{"type":"thread.started","thread_id":"019e40e9-375a-7492-b0f3-02b06f04afce"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1990329, Requested 23736. Please try again in 421ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"MOSTYPE\\\", \\\"PAANHANG\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nWHERE \\\"PVRAAUT\\\" = '9'\\nGROUP BY \\\"MOSTYPE\\\", \\\"PAANHANG\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Used the filtered two-dimensional group count template with \\\"MOSTYPE\\\" and \\\"PAANHANG\\\", filtering on \\\"PVRAAUT\\\" = '9'. The predicate value is quoted as text because the SQLite schema stores these columns as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23101,"cached_input_tokens":21888,"output_tokens":519,"reasoning_output_tokens":387}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5cff8d617df5e07e73c6a3a437dddf0c88faea79 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"MOSTYPE\", \"PAANHANG\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nWHERE \"PVRAAUT\" = '9'\nGROUP BY \"MOSTYPE\", \"PAANHANG\"\nORDER BY \"row_count\" DESC;","notes":"Used the filtered two-dimensional group count template with \"MOSTYPE\" and \"PAANHANG\", filtering on \"PVRAAUT\" = '9'. The predicate value is quoted as text because the SQLite schema stores these columns as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9ba69bb7381ae131/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9688a57bf7932ee90135ec087da089ce65ba032f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33320, "bytes_utf8": 33320, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 415, "bytes_utf8": 415, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23073, "cached_input_tokens": 12032, "output_tokens": 305, "reasoning_output_tokens": 181}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..86af030ea6672c51507b7592e5964f8200dd870a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_9bf8e3b63bbb0e7d", + "api_calls": 0, + "input_tokens": 23073, + "cached_input_tokens": 12032, + "output_tokens": 305, + "total_tokens": 23378, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 8814.35, + "sql_execution_elapsed_ms_total": 5.64, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4e1bb989d7a8e0ea007b4de4ec814ea6a32c9a14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:12.926779+00:00", + "ended_at": "2026-05-19T16:07:21.741151+00:00", + "elapsed_ms": 8814.35, + "prompt_metrics": { + "chars": 33320, + "bytes_utf8": 33320, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 771, + "bytes_utf8": 771, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 415, + "bytes_utf8": 415, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23073, + "cached_input_tokens": 12032, + "output_tokens": 305, + "reasoning_output_tokens": 181 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3f825bd0e1416628b3f8976bcd2c831783735fe1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role focused_target_view. Focus on group_col=MFGEKIND, condition_col=MGEMLEEF.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MFGEKIND", + "condition_col": "MGEMLEEF", + "condition_value": "3", + "positive_value": "3", + "negative_value": "2", + "top_k": 14, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 7.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..cffa37462e69af91c9447b8f1d127a0217f3e26d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fd-c435-7bb2-9e68-1457d8e7979b"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_condition_rate\\nSELECT\\n \\\"MFGEKIND\\\",\\n AVG(CASE WHEN \\\"MGEMLEEF\\\" = '3' THEN 1 ELSE 0 END) AS condition_rate\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFGEKIND\\\"\\nORDER BY condition_rate DESC;\",\"notes\":\"Uses the planned Grouped Condition Rate template with group_col=\\\"MFGEKIND\\\" and condition_col=\\\"MGEMLEEF\\\", treating the bound condition_value as text ('3') to match the SQLite schema.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23073,"cached_input_tokens":12032,"output_tokens":305,"reasoning_output_tokens":181}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..83a6f3186a11b3af6d71956b2bc25e97c43fe384 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_condition_rate\nSELECT\n \"MFGEKIND\",\n AVG(CASE WHEN \"MGEMLEEF\" = '3' THEN 1 ELSE 0 END) AS condition_rate\nFROM \"n15\"\nGROUP BY \"MFGEKIND\"\nORDER BY condition_rate DESC;","notes":"Uses the planned Grouped Condition Rate template with group_col=\"MFGEKIND\" and condition_col=\"MGEMLEEF\", treating the bound condition_value as text ('3') to match the SQLite schema."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9bf8e3b63bbb0e7d/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..70f45e9a45e88d53f90e2e1cc7c32f1b4038b6ea --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33485, "bytes_utf8": 33485, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 593, "bytes_utf8": 593, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23127, "cached_input_tokens": 21888, "output_tokens": 694, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..891639286bc46b53074e254441bcb24e635282d6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_9cca528eb12b38f3", + "api_calls": 0, + "input_tokens": 23127, + "cached_input_tokens": 21888, + "output_tokens": 694, + "total_tokens": 23821, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13658.21, + "sql_execution_elapsed_ms_total": 21.86, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..75c553287d68ef943f3ea9cecf4bed76d51fccba --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:38:24.736460+00:00", + "ended_at": "2026-05-19T15:38:38.394703+00:00", + "elapsed_ms": 13658.21, + "prompt_metrics": { + "chars": 33485, + "bytes_utf8": 33485, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 975, + "bytes_utf8": 975, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 593, + "bytes_utf8": 593, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23127, + "cached_input_tokens": 21888, + "output_tokens": 694, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..4cf5b330a9525a33ea0949376f044ce99c7f12e1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MHKOOP, measure_col=MHKOOP.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MHKOOP", + "measure_col": "MHKOOP", + "item_col": "MOSTYPE", + "top_k": 10, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..10158c81d795f8fa780691ec89533c272c7a03c7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e3-6567-7b80-8e8f-8d3a5182d621"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MHKOOP\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MHKOOP\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MHKOOP\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MHKOOP\\\" AS REAL))) OVER (PARTITION BY \\\"MHKOOP\\\") AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MHKOOP\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Applied the requested template with group_col=\\\"MHKOOP\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MHKOOP\\\". CAST to REAL is used because the schema stores these fields as TEXT while the template requires numeric aggregation.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23127,"cached_input_tokens":21888,"output_tokens":694,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7d341deca3c54d039a5fc350b7791722c89ae577 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MHKOOP\",\n \"MOSTYPE\",\n SUM(CAST(\"MHKOOP\" AS REAL)) AS total_measure,\n SUM(CAST(\"MHKOOP\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MHKOOP\" AS REAL))) OVER (PARTITION BY \"MHKOOP\") AS share_within_group\nFROM \"n15\"\nGROUP BY \"MHKOOP\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Applied the requested template with group_col=\"MHKOOP\", item_col=\"MOSTYPE\", and measure_col=\"MHKOOP\". CAST to REAL is used because the schema stores these fields as TEXT while the template requires numeric aggregation."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9cca528eb12b38f3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..be5a6ef8d7da5e9789d7cf4c053ec59a0861b960 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33391, "bytes_utf8": 33391, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 453, "bytes_utf8": 453, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23101, "cached_input_tokens": 21888, "output_tokens": 484, "reasoning_output_tokens": 353}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..ec091623807d619f7678adddfdfa98395ff08a59 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_9e14e8e59987b8c0", + "api_calls": 0, + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 484, + "total_tokens": 23585, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16540.74, + "sql_execution_elapsed_ms_total": 4.84, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..260275568f883c1d2e825e80717e14b15a523c44 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:45:57.479570+00:00", + "ended_at": "2026-05-19T15:46:14.020346+00:00", + "elapsed_ms": 16540.74, + "prompt_metrics": { + "chars": 33391, + "bytes_utf8": 33391, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1157, + "bytes_utf8": 1157, + "lines": 5, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 453, + "bytes_utf8": 453, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23101, + "cached_input_tokens": 21888, + "output_tokens": 484, + "reasoning_output_tokens": 353 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..f6a647cde17963df58ccb634ff1fd7ca776adc73 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PPERSONG.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PPERSONG", + "predicate_col": "PLEVEN", + "predicate_op": ">=", + "predicate_value": 4.0, + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 20.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..6066448a5f368387f915cd2d48350877705e43a7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,5 @@ +{"type":"thread.started","thread_id":"019e40ea-4dec-7bc0-b9e4-387e02b49727"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23736. Please try again in 712ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"MOSTYPE\\\", \\\"PPERSONG\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nWHERE CAST(\\\"PLEVEN\\\" AS REAL) >= 4.0\\nGROUP BY \\\"MOSTYPE\\\", \\\"PPERSONG\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Used the planned filtered two-dimensional group count template with group_col=\\\"MOSTYPE\\\", group_col_2=\\\"PPERSONG\\\", and predicate on \\\"PLEVEN\\\". Cast \\\"PLEVEN\\\" to REAL because the SQLite schema stores it as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23101,"cached_input_tokens":21888,"output_tokens":484,"reasoning_output_tokens":353}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7e5b312a58e56a5059942c42e53259f1e242b740 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"MOSTYPE\", \"PPERSONG\", COUNT(*) AS row_count\nFROM \"n15\"\nWHERE CAST(\"PLEVEN\" AS REAL) >= 4.0\nGROUP BY \"MOSTYPE\", \"PPERSONG\"\nORDER BY row_count DESC;","notes":"Used the planned filtered two-dimensional group count template with group_col=\"MOSTYPE\", group_col_2=\"PPERSONG\", and predicate on \"PLEVEN\". Cast \"PLEVEN\" to REAL because the SQLite schema stores it as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9e14e8e59987b8c0/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..159ad4544bcd917bffaec23c0a44fc8ea8f336b0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:20.856809+00:00", + "ended_at": "2026-05-19T16:11:23.814607+00:00", + "elapsed_ms": 2957.77, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5568a0ac499d6f6c27f2d97c7ad5c471a75578bb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:24.816921+00:00", + "ended_at": "2026-05-19T16:11:27.862248+00:00", + "elapsed_ms": 3045.3, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b53ec483f0f7ec09acf2cc3fd1bcaf1da53e47ae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role count_distribution. Focus on group_col=MINK4575.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK4575", + "top_k": 19, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b53ec483f0f7ec09acf2cc3fd1bcaf1da53e47ae --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role count_distribution. Focus on group_col=MINK4575.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK4575", + "top_k": 19, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..a6cc836bec8c38f705d63664900800a092c00584 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-8cb3-72e1-96d4-37653ef0f629"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..02a9258332c77329a061e47e0da7bd479a8b3398 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-8cb3-72e1-96d4-37653ef0f629"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..508b99759c1847e9af6f007b28610958daa32adf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-9c04-7492-af98-056f00a06c55"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1e5b4870b4a9895f28c612072542b61dcd3ca52e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-9c04-7492-af98-056f00a06c55"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_9f1a4c32fc01957c/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..888ebda5ad78d00ff7b5229b4c8615d24cf4389a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33260, "bytes_utf8": 33260, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 1929, "bytes_utf8": 1929, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23046, "cached_input_tokens": 12032, "output_tokens": 2728, "reasoning_output_tokens": 2070}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2337b6f117a9a873567322b97360c38c7bc57f25 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_a26821e47dd32c9e", + "api_calls": 0, + "input_tokens": 23046, + "cached_input_tokens": 12032, + "output_tokens": 2728, + "total_tokens": 25774, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 39701.02, + "sql_execution_elapsed_ms_total": 39.91, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a04bb27b0639b058cba61ae807b22efbae4444e2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:55:12.010469+00:00", + "ended_at": "2026-05-19T15:55:51.711527+00:00", + "elapsed_ms": 39701.02, + "prompt_metrics": { + "chars": 33260, + "bytes_utf8": 33260, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2555, + "bytes_utf8": 2555, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 1929, + "bytes_utf8": 1929, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23046, + "cached_input_tokens": 12032, + "output_tokens": 2728, + "reasoning_output_tokens": 2070 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..92967b7370ac92e6e0510cfe0015f48fbf6e7fde --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=ABYSTAND, measure_col=MHKOOP.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "ABYSTAND", + "measure_col": "MHKOOP", + "top_k": 19, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..a1d3332dd5aff22ad9f83c23a7dc03e9eafc8c9c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f2-c42d-7332-aee3-77c067ddff21"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"ordered\\\" AS (\\n SELECT\\n \\\"ABYSTAND\\\",\\n CAST(\\\"MHKOOP\\\" AS REAL) AS \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"ABYSTAND\\\"\\n ORDER BY CAST(\\\"MHKOOP\\\" AS REAL)\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (\\n PARTITION BY \\\"ABYSTAND\\\"\\n ) AS \\\"cnt\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"ABYSTAND\\\" IS NOT NULL\\n AND \\\"MHKOOP\\\" IS NOT NULL\\n),\\n\\\"params\\\" AS (\\n SELECT\\n \\\"ABYSTAND\\\",\\n MAX(\\\"cnt\\\") AS \\\"cnt\\\",\\n (1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) AS \\\"target_rank\\\",\\n CAST((1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) AS INTEGER) AS \\\"lower_rn\\\",\\n CASE\\n WHEN (1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) = CAST((1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) AS INTEGER)\\n THEN CAST((1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) AS INTEGER)\\n ELSE CAST((1.0 + 0.9 * (MAX(\\\"cnt\\\") - 1)) AS INTEGER) + 1\\n END AS \\\"upper_rn\\\"\\n FROM \\\"ordered\\\"\\n GROUP BY \\\"ABYSTAND\\\"\\n),\\n\\\"bounds\\\" AS (\\n SELECT\\n p.\\\"ABYSTAND\\\",\\n p.\\\"target_rank\\\",\\n p.\\\"lower_rn\\\",\\n p.\\\"upper_rn\\\",\\n MAX(CASE WHEN o.\\\"rn\\\" = p.\\\"lower_rn\\\" THEN o.\\\"measure_value\\\" END) AS \\\"lower_value\\\",\\n MAX(CASE WHEN o.\\\"rn\\\" = p.\\\"upper_rn\\\" THEN o.\\\"measure_value\\\" END) AS \\\"upper_value\\\"\\n FROM \\\"params\\\" AS p\\n JOIN \\\"ordered\\\" AS o\\n ON o.\\\"ABYSTAND\\\" = p.\\\"ABYSTAND\\\"\\n GROUP BY p.\\\"ABYSTAND\\\", p.\\\"target_rank\\\", p.\\\"lower_rn\\\", p.\\\"upper_rn\\\"\\n)\\nSELECT\\n \\\"ABYSTAND\\\",\\n CASE\\n WHEN \\\"lower_rn\\\" = \\\"upper_rn\\\" THEN \\\"lower_value\\\"\\n ELSE \\\"lower_value\\\" + (\\\"target_rank\\\" - \\\"lower_rn\\\") * (\\\"upper_value\\\" - \\\"lower_value\\\")\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"bounds\\\"\\nORDER BY \\\"percentile_measure\\\" DESC;\",\"notes\":\"SQLite-compatible replacement for PERCENTILE_CONT(0.9): computes a continuous 90th percentile per \\\"ABYSTAND\\\" group by ordering CAST(\\\"MHKOOP\\\" AS REAL) values and linearly interpolating between the bounding ranks.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23046,"cached_input_tokens":12032,"output_tokens":2728,"reasoning_output_tokens":2070}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..90c38102105289d1d2f6a67d6f2c2ea8ab153ff6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"ordered\" AS (\n SELECT\n \"ABYSTAND\",\n CAST(\"MHKOOP\" AS REAL) AS \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"ABYSTAND\"\n ORDER BY CAST(\"MHKOOP\" AS REAL)\n ) AS \"rn\",\n COUNT(*) OVER (\n PARTITION BY \"ABYSTAND\"\n ) AS \"cnt\"\n FROM \"n15\"\n WHERE \"ABYSTAND\" IS NOT NULL\n AND \"MHKOOP\" IS NOT NULL\n),\n\"params\" AS (\n SELECT\n \"ABYSTAND\",\n MAX(\"cnt\") AS \"cnt\",\n (1.0 + 0.9 * (MAX(\"cnt\") - 1)) AS \"target_rank\",\n CAST((1.0 + 0.9 * (MAX(\"cnt\") - 1)) AS INTEGER) AS \"lower_rn\",\n CASE\n WHEN (1.0 + 0.9 * (MAX(\"cnt\") - 1)) = CAST((1.0 + 0.9 * (MAX(\"cnt\") - 1)) AS INTEGER)\n THEN CAST((1.0 + 0.9 * (MAX(\"cnt\") - 1)) AS INTEGER)\n ELSE CAST((1.0 + 0.9 * (MAX(\"cnt\") - 1)) AS INTEGER) + 1\n END AS \"upper_rn\"\n FROM \"ordered\"\n GROUP BY \"ABYSTAND\"\n),\n\"bounds\" AS (\n SELECT\n p.\"ABYSTAND\",\n p.\"target_rank\",\n p.\"lower_rn\",\n p.\"upper_rn\",\n MAX(CASE WHEN o.\"rn\" = p.\"lower_rn\" THEN o.\"measure_value\" END) AS \"lower_value\",\n MAX(CASE WHEN o.\"rn\" = p.\"upper_rn\" THEN o.\"measure_value\" END) AS \"upper_value\"\n FROM \"params\" AS p\n JOIN \"ordered\" AS o\n ON o.\"ABYSTAND\" = p.\"ABYSTAND\"\n GROUP BY p.\"ABYSTAND\", p.\"target_rank\", p.\"lower_rn\", p.\"upper_rn\"\n)\nSELECT\n \"ABYSTAND\",\n CASE\n WHEN \"lower_rn\" = \"upper_rn\" THEN \"lower_value\"\n ELSE \"lower_value\" + (\"target_rank\" - \"lower_rn\") * (\"upper_value\" - \"lower_value\")\n END AS \"percentile_measure\"\nFROM \"bounds\"\nORDER BY \"percentile_measure\" DESC;","notes":"SQLite-compatible replacement for PERCENTILE_CONT(0.9): computes a continuous 90th percentile per \"ABYSTAND\" group by ordering CAST(\"MHKOOP\" AS REAL) values and linearly interpolating between the bounding ranks."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a26821e47dd32c9e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..abe8951a3745a242707446034352d3fc7fdd8cac --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:29.221046+00:00", + "ended_at": "2026-05-19T16:07:32.416078+00:00", + "elapsed_ms": 3195.01, + "returncode": 1, + "prompt_metrics": { + "chars": 33330, + "bytes_utf8": 33330, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6289751277ee253a9d2afabfa5e1c84a94469275 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:33.419420+00:00", + "ended_at": "2026-05-19T16:07:38.238674+00:00", + "elapsed_ms": 4819.22, + "returncode": 1, + "prompt_metrics": { + "chars": 33330, + "bytes_utf8": 33330, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c5c01f5149505409b7b74ce40281dd74f3a8aa7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MFWEKIND, condition_col=MGODOV.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MFWEKIND", + "condition_col": "MGODOV", + "condition_value": "1", + "positive_value": "1", + "negative_value": "0", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c5c01f5149505409b7b74ce40281dd74f3a8aa7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MFWEKIND, condition_col=MGODOV.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MFWEKIND", + "condition_col": "MGODOV", + "condition_value": "1", + "positive_value": "1", + "negative_value": "0", + "top_k": 10, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8895a89d20910f57efa993bd06b7a58abc54dbec --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-03ad-78b2-9f6e-85511ed8352b"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..cabcd40635cac35487abc5252e80b121901023fc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-03ad-78b2-9f6e-85511ed8352b"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..51b65e18024f4a4ae655e4bc173e9ffdfd51e0ad --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-144d-7540-91fc-8ee747fcd74c"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..b500de1d932240fb688a045daeb597e98719ad87 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-144d-7540-91fc-8ee747fcd74c"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a2f2dca45a5105a2/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7d8cb1aacdfca0b988d114e77e92282b6b6b0a4e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:14.511766+00:00", + "ended_at": "2026-05-19T16:09:17.183237+00:00", + "elapsed_ms": 2671.45, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7f5ce63831b8973fc50139e98b89ebca4a382bf9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:18.186057+00:00", + "ended_at": "2026-05-19T16:09:21.214043+00:00", + "elapsed_ms": 3027.96, + "returncode": 1, + "prompt_metrics": { + "chars": 33020, + "bytes_utf8": 33020, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..77937a4ea9e7b514afaec396d3b1a64f3b1dc5d2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MAANTHUI.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MAANTHUI", + "top_k": 14, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..77937a4ea9e7b514afaec396d3b1a64f3b1dc5d2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MAANTHUI.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MAANTHUI", + "top_k": 14, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..33aa81251be5803c905240533b83d64823679866 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-9f0d-7eb1-981f-0bc337e5a744"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..214b0287e76cd56d4dd08636aa12ddcf06b69fb9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-9f0d-7eb1-981f-0bc337e5a744"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..0afe0515a38c53ffcad5ba603ba2072c38f3c8b7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-ad66-7572-a62d-26c921d4de7e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..054c60a77d27d2d05aba3a6009d4d24c4c83ce73 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-ad66-7572-a62d-26c921d4de7e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a5a694e722d2bfd6/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..8141a2e72e4e9d7be87fbed7bd1167d9f054b7d2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33082, "bytes_utf8": 33082, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 391, "bytes_utf8": 391, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23004, "cached_input_tokens": 4480, "output_tokens": 374, "reasoning_output_tokens": 267}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f354dec4570d9074135d2dff2a43d62616427c37 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_a7a7b49fd10ccbb3", + "api_calls": 0, + "input_tokens": 23004, + "cached_input_tokens": 4480, + "output_tokens": 374, + "total_tokens": 23378, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 10176.52, + "sql_execution_elapsed_ms_total": 10.78, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..cd9f0cdad239c97faadc7bc0cc0dcaa8ed989009 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:28:29.588221+00:00", + "ended_at": "2026-05-19T15:28:39.764776+00:00", + "elapsed_ms": 10176.52, + "prompt_metrics": { + "chars": 33082, + "bytes_utf8": 33082, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 752, + "bytes_utf8": 752, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 391, + "bytes_utf8": 391, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23004, + "cached_input_tokens": 4480, + "output_tokens": 374, + "reasoning_output_tokens": 267 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..497edbcbf2bc0a7677bd02db51b2098b4673b5e2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MOSTYPE, measure_col=MOSTYPE.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MOSTYPE", + "top_k": 15, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 16.4, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..caee3f17134712cc99354063c4d88629b7a9bd34 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40da-5099-7342-a091-cd84ff2bf08f"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MOSTYPE\\\", SUM(CAST(\\\"MOSTYPE\\\" AS NUMERIC)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOSTYPE\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Applied the provided Grouped Numeric Sum template with group_col=\\\"MOSTYPE\\\" and measure_col=\\\"MOSTYPE\\\". CAST is used because the schema stores this numeric-discrete field as TEXT in SQLite.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23004,"cached_input_tokens":4480,"output_tokens":374,"reasoning_output_tokens":267}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..438c9ca060f69f4a4e5d57654039cf67d266945f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MOSTYPE\", SUM(CAST(\"MOSTYPE\" AS NUMERIC)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MOSTYPE\"\nORDER BY \"total_measure\" DESC;","notes":"Applied the provided Grouped Numeric Sum template with group_col=\"MOSTYPE\" and measure_col=\"MOSTYPE\". CAST is used because the schema stores this numeric-discrete field as TEXT in SQLite."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a7a7b49fd10ccbb3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..da141cdafa23ff610b644ec8fe808429def559f9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33888, "bytes_utf8": 33888, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 620, "bytes_utf8": 620, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23221, "cached_input_tokens": 21888, "output_tokens": 398, "reasoning_output_tokens": 206}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c602cb1ec44729939f9e32a77e571fe9952ca00e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_a82233987d4c4124", + "api_calls": 0, + "input_tokens": 23221, + "cached_input_tokens": 21888, + "output_tokens": 398, + "total_tokens": 23619, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 12208.79, + "sql_execution_elapsed_ms_total": 6.66, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..551f168280693ed6cc3fc4b3d4ef5fa5bc3de6de --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:44:19.920866+00:00", + "ended_at": "2026-05-19T15:44:32.129695+00:00", + "elapsed_ms": 12208.79, + "prompt_metrics": { + "chars": 33888, + "bytes_utf8": 33888, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 983, + "bytes_utf8": 983, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 620, + "bytes_utf8": 620, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23221, + "cached_input_tokens": 21888, + "output_tokens": 398, + "reasoning_output_tokens": 206 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2d2d792b75eaf37730bce6d2aff51fac4845b3d9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_ratio_two_conditions", + "template_name": "Grouped Ratio of Two Conditions", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Ratio of Two Conditions to probe direction_consistency with semantic role contrastive_conditional_view. Focus on group_col=PWABEDR, condition_col=APLEZIER.", + "planned_template_id": "tpl_m4_group_ratio_two_conditions", + "bindings": { + "group_col": "PWABEDR", + "condition_col": "APLEZIER", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..bf363e6cd115be1668b28980fa9993d483f4b205 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e8-d0df-7222-a533-fb0c97e0c23e"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_ratio_two_conditions\\nWITH grouped AS (\\n SELECT\\n \\\"PWABEDR\\\",\\n SUM(CASE WHEN \\\"APLEZIER\\\" = '0' THEN 1 ELSE 0 END) AS numerator_count,\\n SUM(CASE WHEN \\\"APLEZIER\\\" = '1' THEN 1 ELSE 0 END) AS denominator_count\\n FROM \\\"n15\\\"\\n GROUP BY \\\"PWABEDR\\\"\\n)\\nSELECT\\n \\\"PWABEDR\\\",\\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\\nFROM grouped\\nORDER BY condition_ratio DESC;\",\"notes\":\"Grouped ratio of APLEZIER='0' to APLEZIER='1' for each PWABEDR value, following the planned template and SQLite TEXT comparisons.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23221,"cached_input_tokens":21888,"output_tokens":398,"reasoning_output_tokens":206}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a0c313c86cc68b9589aba43f5ae423245bd98025 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_ratio_two_conditions\nWITH grouped AS (\n SELECT\n \"PWABEDR\",\n SUM(CASE WHEN \"APLEZIER\" = '0' THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN \"APLEZIER\" = '1' THEN 1 ELSE 0 END) AS denominator_count\n FROM \"n15\"\n GROUP BY \"PWABEDR\"\n)\nSELECT\n \"PWABEDR\",\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;","notes":"Grouped ratio of APLEZIER='0' to APLEZIER='1' for each PWABEDR value, following the planned template and SQLite TEXT comparisons."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a82233987d4c4124/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f56e29b04f47d0097ab06aac6edcc5b9ab5e64ff --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33484, "bytes_utf8": 33484, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 639, "bytes_utf8": 639, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23127, "cached_input_tokens": 21888, "output_tokens": 719, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f36ecc3d54839f2c4faf06d668866b1e05dfb5a3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_a9a297445315f0c6", + "api_calls": 0, + "input_tokens": 23127, + "cached_input_tokens": 21888, + "output_tokens": 719, + "total_tokens": 23846, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 14856.19, + "sql_execution_elapsed_ms_total": 13.3, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bee6e775b86026dd0b055d78a373931ef9cb2dd3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:39:15.337241+00:00", + "ended_at": "2026-05-19T15:39:30.193455+00:00", + "elapsed_ms": 14856.19, + "prompt_metrics": { + "chars": 33484, + "bytes_utf8": 33484, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1025, + "bytes_utf8": 1025, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 639, + "bytes_utf8": 639, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23127, + "cached_input_tokens": 21888, + "output_tokens": 719, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..38838374ddab01c3fec821fadb3784cc2fe374c6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MAUT1, measure_col=MAUT1.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MAUT1", + "measure_col": "MAUT1", + "item_col": "MOSTYPE", + "top_k": 16, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1e3c116c72d7657363b19886e04f1f4c7687e715 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e4-2b14-7430-8166-d6824bfbafed"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MAUT1\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT1\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MAUT1\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MAUT1\\\" AS REAL))) OVER (PARTITION BY \\\"MAUT1\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAUT1\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Uses the requested Within-Group Share of Total template with group_col=\\\"MAUT1\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT1\\\". CAST is added because the schema stores these fields as TEXT, and NULLIF avoids division-by-zero for groups where \\\"MAUT1\\\" sums to 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23127,"cached_input_tokens":21888,"output_tokens":719,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..49983ba5f97cbef49053877c7cf5dc621cea4ebb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MAUT1\",\n \"MOSTYPE\",\n SUM(CAST(\"MAUT1\" AS REAL)) AS total_measure,\n SUM(CAST(\"MAUT1\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MAUT1\" AS REAL))) OVER (PARTITION BY \"MAUT1\"), 0) AS share_within_group\nFROM \"n15\"\nGROUP BY \"MAUT1\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Uses the requested Within-Group Share of Total template with group_col=\"MAUT1\", item_col=\"MOSTYPE\", and measure_col=\"MAUT1\". CAST is added because the schema stores these fields as TEXT, and NULLIF avoids division-by-zero for groups where \"MAUT1\" sums to 0."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_a9a297445315f0c6/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..fd68e77b4ba630e1c63315d898f62a03eabe8208 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33488, "bytes_utf8": 33488, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 714, "bytes_utf8": 714, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23129, "cached_input_tokens": 12032, "output_tokens": 998, "reasoning_output_tokens": 789}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..fb6fddc0a66ee3a4ff308c1f02eb7fd17d95c8e6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_ae506aece4c92472", + "api_calls": 0, + "input_tokens": 23129, + "cached_input_tokens": 12032, + "output_tokens": 998, + "total_tokens": 24127, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 21394.39, + "sql_execution_elapsed_ms_total": 10.22, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..49996377abce1733bc08b1273faae4a690cb48f1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:38:03.324055+00:00", + "ended_at": "2026-05-19T15:38:24.718487+00:00", + "elapsed_ms": 21394.39, + "prompt_metrics": { + "chars": 33488, + "bytes_utf8": 33488, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1094, + "bytes_utf8": 1094, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 714, + "bytes_utf8": 714, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23129, + "cached_input_tokens": 12032, + "output_tokens": 998, + "reasoning_output_tokens": 789 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ba4bc6d2cac55e92bcc974deafc3fcc0eafd78fa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MHHUUR, measure_col=MHHUUR.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MHHUUR", + "measure_col": "MHHUUR", + "item_col": "MOSTYPE", + "top_k": 19, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1306c687adfead3f45ce8dcfd800d81d599d9665 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e3-11d3-77c0-8181-9341889e4dee"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT \\\"MHHUUR\\\", \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MHHUUR\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MHHUUR\\\" AS REAL)) * 100.0 / SUM(SUM(CAST(\\\"MHHUUR\\\" AS REAL))) OVER (PARTITION BY \\\"MHHUUR\\\") AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MHHUUR\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Used the provided template with group_col=\\\"MHHUUR\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MHHUUR\\\". CAST to REAL is needed because the SQLite schema stores these fields as TEXT. Since the measure and grouping column are the same, the within-group share is effectively driven by each MOSTYPE's relative frequency inside each MHHUUR group.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23129,"cached_input_tokens":12032,"output_tokens":998,"reasoning_output_tokens":789}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..30206b53739eb2a1e4c311c270e4b6d71012a6dd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT \"MHHUUR\", \"MOSTYPE\",\n SUM(CAST(\"MHHUUR\" AS REAL)) AS total_measure,\n SUM(CAST(\"MHHUUR\" AS REAL)) * 100.0 / SUM(SUM(CAST(\"MHHUUR\" AS REAL))) OVER (PARTITION BY \"MHHUUR\") AS share_within_group\nFROM \"n15\"\nGROUP BY \"MHHUUR\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Used the provided template with group_col=\"MHHUUR\", item_col=\"MOSTYPE\", and measure_col=\"MHHUUR\". CAST to REAL is needed because the SQLite schema stores these fields as TEXT. Since the measure and grouping column are the same, the within-group share is effectively driven by each MOSTYPE's relative frequency inside each MHHUUR group."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ae506aece4c92472/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c0eb3b94525684ff8b89dfdc035d5c631ef2eec3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33484, "bytes_utf8": 33484, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 633, "bytes_utf8": 633, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23127, "cached_input_tokens": 12032, "output_tokens": 1342, "reasoning_output_tokens": 1137}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..8458fc480e650dd9d934946bc28e01e2ef929efc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_b1c78db1141ae8cc", + "api_calls": 0, + "input_tokens": 23127, + "cached_input_tokens": 12032, + "output_tokens": 1342, + "total_tokens": 24469, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 25075.69, + "sql_execution_elapsed_ms_total": 10.21, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..fa623b710a71272c55882b69bcba8801ad5e5ed5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:40:46.497024+00:00", + "ended_at": "2026-05-19T15:41:11.572756+00:00", + "elapsed_ms": 25075.69, + "prompt_metrics": { + "chars": 33484, + "bytes_utf8": 33484, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1029, + "bytes_utf8": 1029, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 633, + "bytes_utf8": 633, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23127, + "cached_input_tokens": 12032, + "output_tokens": 1342, + "reasoning_output_tokens": 1137 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6f489ac7b593b7aaef7ad1af4560b6a7f22c9432 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MAUT0, measure_col=MAUT0.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MAUT0", + "measure_col": "MAUT0", + "item_col": "MOSTYPE", + "top_k": 18, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..97cc0cf16f322a3705c4efe981b3f79222d22209 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e5-8f30-7163-89c2-3d709619e90e"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share\\nSELECT\\n \\\"MAUT0\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MAUT0\\\" AS REAL)) AS \\\"total_measure\\\",\\n SUM(CAST(\\\"MAUT0\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MAUT0\\\" AS REAL))) OVER (PARTITION BY \\\"MAUT0\\\"), 0) AS \\\"share_within_group\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAUT0\\\", \\\"MOSTYPE\\\"\\nORDER BY \\\"share_within_group\\\" DESC;\",\"notes\":\"Applied the planned Within-Group Share of Total template with group_col=\\\"MAUT0\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MAUT0\\\". Casted the TEXT-coded numeric measure to REAL and used NULLIF to avoid divide-by-zero when a MAUT0 group sums to 0.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23127,"cached_input_tokens":12032,"output_tokens":1342,"reasoning_output_tokens":1137}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..3294877bff4beddf77e3f0b5ac76ef1f7a99f2c5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share\nSELECT\n \"MAUT0\",\n \"MOSTYPE\",\n SUM(CAST(\"MAUT0\" AS REAL)) AS \"total_measure\",\n SUM(CAST(\"MAUT0\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MAUT0\" AS REAL))) OVER (PARTITION BY \"MAUT0\"), 0) AS \"share_within_group\"\nFROM \"n15\"\nGROUP BY \"MAUT0\", \"MOSTYPE\"\nORDER BY \"share_within_group\" DESC;","notes":"Applied the planned Within-Group Share of Total template with group_col=\"MAUT0\", item_col=\"MOSTYPE\", and measure_col=\"MAUT0\". Casted the TEXT-coded numeric measure to REAL and used NULLIF to avoid divide-by-zero when a MAUT0 group sums to 0."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1c78db1141ae8cc/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..651deb8f6fc39ee5b306d6376557ccad4edb2a4d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33885, "bytes_utf8": 33885, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 797, "bytes_utf8": 797, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23218, "cached_input_tokens": 12032, "output_tokens": 754, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..9da70e0fe64c8a180335ab06aed6552c721e101e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_b1f6895e5edfc54c", + "api_calls": 0, + "input_tokens": 23218, + "cached_input_tokens": 12032, + "output_tokens": 754, + "total_tokens": 23972, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20538.0, + "sql_execution_elapsed_ms_total": 6.46, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e39bcd679b0a1f897c691df32c4f379edcd2eee5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:43:12.938953+00:00", + "ended_at": "2026-05-19T15:43:33.477019+00:00", + "elapsed_ms": 20538.0, + "prompt_metrics": { + "chars": 33885, + "bytes_utf8": 33885, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1533, + "bytes_utf8": 1533, + "lines": 5, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 797, + "bytes_utf8": 797, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23218, + "cached_input_tokens": 12032, + "output_tokens": 754, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..26c35bd28fc89be616856c03bba36d19c79d08f5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_ratio_two_conditions", + "template_name": "Grouped Ratio of Two Conditions", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Ratio of Two Conditions to probe direction_consistency with semantic role contrastive_conditional_view. Focus on group_col=MINKGEM, condition_col=AWAOREG.", + "planned_template_id": "tpl_m4_group_ratio_two_conditions", + "bindings": { + "group_col": "MINKGEM", + "condition_col": "AWAOREG", + "condition_value": "0", + "positive_value": "0", + "negative_value": "1", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col},\n SUM(CASE WHEN {condition_col} = {positive_value} THEN 1 ELSE 0 END) AS numerator_count,\n SUM(CASE WHEN {condition_col} = {negative_value} THEN 1 ELSE 0 END) AS denominator_count\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT {group_col},\n CAST(numerator_count AS FLOAT) / NULLIF(denominator_count, 0) AS condition_ratio\nFROM grouped\nORDER BY condition_ratio DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..f6ab09312c8a9b639bacd3d3930a184937bb07da --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,5 @@ +{"type":"thread.started","thread_id":"019e40e7-cb36-7201-a5bf-f9ba12df860b"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23853. Please try again in 715ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_ratio_two_conditions\\nWITH \\\"grouped\\\" AS (\\n SELECT\\n \\\"MINKGEM\\\",\\n SUM(CASE WHEN \\\"AWAOREG\\\" = '0' THEN 1 ELSE 0 END) AS \\\"numerator_count\\\",\\n SUM(CASE WHEN \\\"AWAOREG\\\" = '1' THEN 1 ELSE 0 END) AS \\\"denominator_count\\\"\\n FROM \\\"n15\\\"\\n GROUP BY \\\"MINKGEM\\\"\\n)\\nSELECT\\n \\\"MINKGEM\\\",\\n CAST(\\\"numerator_count\\\" AS FLOAT) / NULLIF(\\\"denominator_count\\\", 0) AS \\\"condition_ratio\\\"\\nFROM \\\"grouped\\\"\\nORDER BY \\\"condition_ratio\\\" DESC;\",\"notes\":\"Uses the planned grouped ratio template with group_col=\\\"MINKGEM\\\" and condition_col=\\\"AWAOREG\\\", computing count(AWAOREG='0') divided by count(AWAOREG='1') for each income group. TEXT-typed columns are compared to string literals, and NULLIF prevents division-by-zero errors.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23218,"cached_input_tokens":12032,"output_tokens":754,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6fb5668437a73bced5068a002d35846ef59017a1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_ratio_two_conditions\nWITH \"grouped\" AS (\n SELECT\n \"MINKGEM\",\n SUM(CASE WHEN \"AWAOREG\" = '0' THEN 1 ELSE 0 END) AS \"numerator_count\",\n SUM(CASE WHEN \"AWAOREG\" = '1' THEN 1 ELSE 0 END) AS \"denominator_count\"\n FROM \"n15\"\n GROUP BY \"MINKGEM\"\n)\nSELECT\n \"MINKGEM\",\n CAST(\"numerator_count\" AS FLOAT) / NULLIF(\"denominator_count\", 0) AS \"condition_ratio\"\nFROM \"grouped\"\nORDER BY \"condition_ratio\" DESC;","notes":"Uses the planned grouped ratio template with group_col=\"MINKGEM\" and condition_col=\"AWAOREG\", computing count(AWAOREG='0') divided by count(AWAOREG='1') for each income group. TEXT-typed columns are compared to string literals, and NULLIF prevents division-by-zero errors."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b1f6895e5edfc54c/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..5df4e94941b2411867d8b195980ae559eef3ae60 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32994, "bytes_utf8": 32994, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 294, "bytes_utf8": 294, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22980, "cached_input_tokens": 12032, "output_tokens": 404, "reasoning_output_tokens": 315}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..821e9fedbb243e64f95793b2b05abd65ca2dd78c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_b6aa44b5cb9de7fe", + "api_calls": 0, + "input_tokens": 22980, + "cached_input_tokens": 12032, + "output_tokens": 404, + "total_tokens": 23384, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13138.56, + "sql_execution_elapsed_ms_total": 8.19, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..1442f5ab498092b9989b931740190225f60d64d1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:33:41.010299+00:00", + "ended_at": "2026-05-19T15:33:54.148896+00:00", + "elapsed_ms": 13138.56, + "prompt_metrics": { + "chars": 32994, + "bytes_utf8": 32994, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 652, + "bytes_utf8": 652, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 294, + "bytes_utf8": 294, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22980, + "cached_input_tokens": 12032, + "output_tokens": 404, + "reasoning_output_tokens": 315 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..dd3536ee89753826026dce3d02fef86c0bc90218 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MOPLMIDD.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MOPLMIDD", + "top_k": 11, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..558e21c11ae49402228db023d83b299a020ddc0d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40df-1126-74e3-ad73-4dfe0c066d38"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MOPLMIDD\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOPLMIDD\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Applies the grouped-count template to return the row count distribution by \\\"MOPLMIDD\\\" in the single table \\\"n15\\\".\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22980,"cached_input_tokens":12032,"output_tokens":404,"reasoning_output_tokens":315}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ae6511e8acbb2026fbb78d66cff1a86b8a3ef476 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MOPLMIDD\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nGROUP BY \"MOPLMIDD\"\nORDER BY \"row_count\" DESC;","notes":"Applies the grouped-count template to return the row count distribution by \"MOPLMIDD\" in the single table \"n15\"."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6aa44b5cb9de7fe/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..540fea6168a46bdb3cee5a9e4566ae811fafe6e0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33261, "bytes_utf8": 33261, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 1904, "bytes_utf8": 1904, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23048, "cached_input_tokens": 12032, "output_tokens": 4335, "reasoning_output_tokens": 3675}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..0e40250781bd462d799aab2a57cdc7848eac8e87 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_b6c2f87c610f4668", + "api_calls": 0, + "input_tokens": 23048, + "cached_input_tokens": 12032, + "output_tokens": 4335, + "total_tokens": 27383, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 60467.53, + "sql_execution_elapsed_ms_total": 4.29, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bd230c9378c5b1455ca837de86874c605aa37b71 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:01:31.270324+00:00", + "ended_at": "2026-05-19T16:02:31.737902+00:00", + "elapsed_ms": 60467.53, + "prompt_metrics": { + "chars": 33261, + "bytes_utf8": 33261, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2540, + "bytes_utf8": 2540, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 1904, + "bytes_utf8": 1904, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23048, + "cached_input_tokens": 12032, + "output_tokens": 4335, + "reasoning_output_tokens": 3675 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..fa2398a951c4e3d9ee514169acb306ad6417f067 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MOSHOOFD, measure_col=MINKM30.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MOSHOOFD", + "measure_col": "MINKM30", + "top_k": 10, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..a8feb2e964bf26fb7fde4f8a88301c1852eb6722 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f8-8d9a-7b61-bf97-a2fc8c495ab5"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"filtered\\\" AS (\\n SELECT\\n \\\"MOSHOOFD\\\",\\n CAST(\\\"MINKM30\\\" AS REAL) AS \\\"measure_value\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"ABYSTAND\\\" = '1'\\n AND \\\"MOSHOOFD\\\" IS NOT NULL\\n AND \\\"MINKM30\\\" IS NOT NULL\\n),\\n\\\"ordered\\\" AS (\\n SELECT\\n \\\"MOSHOOFD\\\",\\n \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"MOSHOOFD\\\"\\n ORDER BY \\\"measure_value\\\"\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (\\n PARTITION BY \\\"MOSHOOFD\\\"\\n ) AS \\\"cnt\\\"\\n FROM \\\"filtered\\\"\\n),\\n\\\"eligible\\\" AS (\\n SELECT\\n \\\"MOSHOOFD\\\",\\n \\\"measure_value\\\",\\n \\\"rn\\\",\\n \\\"cnt\\\",\\n (1.0 + 0.95 * (\\\"cnt\\\" - 1)) AS \\\"pos\\\",\\n CAST(1.0 + 0.95 * (\\\"cnt\\\" - 1) AS INTEGER) AS \\\"lower_rn\\\",\\n CASE\\n WHEN (1.0 + 0.95 * (\\\"cnt\\\" - 1)) = CAST(1.0 + 0.95 * (\\\"cnt\\\" - 1) AS INTEGER)\\n THEN CAST(1.0 + 0.95 * (\\\"cnt\\\" - 1) AS INTEGER)\\n ELSE CAST(1.0 + 0.95 * (\\\"cnt\\\" - 1) AS INTEGER) + 1\\n END AS \\\"upper_rn\\\"\\n FROM \\\"ordered\\\"\\n WHERE \\\"cnt\\\" >= 5\\n),\\n\\\"percentiles\\\" AS (\\n SELECT\\n \\\"MOSHOOFD\\\",\\n MAX(CASE WHEN \\\"rn\\\" = \\\"lower_rn\\\" THEN \\\"measure_value\\\" END) AS \\\"lower_value\\\",\\n MAX(CASE WHEN \\\"rn\\\" = \\\"upper_rn\\\" THEN \\\"measure_value\\\" END) AS \\\"upper_value\\\",\\n MAX(\\\"pos\\\" - \\\"lower_rn\\\") AS \\\"fraction\\\"\\n FROM \\\"eligible\\\"\\n GROUP BY \\\"MOSHOOFD\\\"\\n)\\nSELECT\\n \\\"MOSHOOFD\\\",\\n CASE\\n WHEN \\\"upper_value\\\" IS NULL OR \\\"fraction\\\" = 0 THEN \\\"lower_value\\\"\\n ELSE \\\"lower_value\\\" + \\\"fraction\\\" * (\\\"upper_value\\\" - \\\"lower_value\\\")\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"percentiles\\\"\\nORDER BY \\\"percentile_measure\\\" DESC,\\n \\\"MOSHOOFD\\\" ASC;\",\"notes\":\"SQLite-compatible 95th percentile emulation for CAST(\\\"MINKM30\\\" AS REAL) grouped by \\\"MOSHOOFD\\\", scoped to the focused target view with \\\"ABYSTAND\\\" = '1', excluding nulls and groups with fewer than 5 rows.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23048,"cached_input_tokens":12032,"output_tokens":4335,"reasoning_output_tokens":3675}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6017b31e6fa38a165e820d3b6c1182bd8e84428c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"filtered\" AS (\n SELECT\n \"MOSHOOFD\",\n CAST(\"MINKM30\" AS REAL) AS \"measure_value\"\n FROM \"n15\"\n WHERE \"ABYSTAND\" = '1'\n AND \"MOSHOOFD\" IS NOT NULL\n AND \"MINKM30\" IS NOT NULL\n),\n\"ordered\" AS (\n SELECT\n \"MOSHOOFD\",\n \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"MOSHOOFD\"\n ORDER BY \"measure_value\"\n ) AS \"rn\",\n COUNT(*) OVER (\n PARTITION BY \"MOSHOOFD\"\n ) AS \"cnt\"\n FROM \"filtered\"\n),\n\"eligible\" AS (\n SELECT\n \"MOSHOOFD\",\n \"measure_value\",\n \"rn\",\n \"cnt\",\n (1.0 + 0.95 * (\"cnt\" - 1)) AS \"pos\",\n CAST(1.0 + 0.95 * (\"cnt\" - 1) AS INTEGER) AS \"lower_rn\",\n CASE\n WHEN (1.0 + 0.95 * (\"cnt\" - 1)) = CAST(1.0 + 0.95 * (\"cnt\" - 1) AS INTEGER)\n THEN CAST(1.0 + 0.95 * (\"cnt\" - 1) AS INTEGER)\n ELSE CAST(1.0 + 0.95 * (\"cnt\" - 1) AS INTEGER) + 1\n END AS \"upper_rn\"\n FROM \"ordered\"\n WHERE \"cnt\" >= 5\n),\n\"percentiles\" AS (\n SELECT\n \"MOSHOOFD\",\n MAX(CASE WHEN \"rn\" = \"lower_rn\" THEN \"measure_value\" END) AS \"lower_value\",\n MAX(CASE WHEN \"rn\" = \"upper_rn\" THEN \"measure_value\" END) AS \"upper_value\",\n MAX(\"pos\" - \"lower_rn\") AS \"fraction\"\n FROM \"eligible\"\n GROUP BY \"MOSHOOFD\"\n)\nSELECT\n \"MOSHOOFD\",\n CASE\n WHEN \"upper_value\" IS NULL OR \"fraction\" = 0 THEN \"lower_value\"\n ELSE \"lower_value\" + \"fraction\" * (\"upper_value\" - \"lower_value\")\n END AS \"percentile_measure\"\nFROM \"percentiles\"\nORDER BY \"percentile_measure\" DESC,\n \"MOSHOOFD\" ASC;","notes":"SQLite-compatible 95th percentile emulation for CAST(\"MINKM30\" AS REAL) grouped by \"MOSHOOFD\", scoped to the focused target view with \"ABYSTAND\" = '1', excluding nulls and groups with fewer than 5 rows."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6c2f87c610f4668/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bc83cf89c998892b58cf003f01e7c080cdb22408 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33388, "bytes_utf8": 33388, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 391, "bytes_utf8": 391, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23100, "cached_input_tokens": 12032, "output_tokens": 535, "reasoning_output_tokens": 418}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..feea3942c5705ad436dbac78815f49f50ee1d9e4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_b6daa7f3107186cd", + "api_calls": 0, + "input_tokens": 23100, + "cached_input_tokens": 12032, + "output_tokens": 535, + "total_tokens": 23635, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20625.9, + "sql_execution_elapsed_ms_total": 10.31, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8b5db90e135264da57e3704fe8033379a4b61563 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:46:14.034170+00:00", + "ended_at": "2026-05-19T15:46:34.660105+00:00", + "elapsed_ms": 20625.9, + "prompt_metrics": { + "chars": 33388, + "bytes_utf8": 33388, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 754, + "bytes_utf8": 754, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 391, + "bytes_utf8": 391, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23100, + "cached_input_tokens": 12032, + "output_tokens": 535, + "reasoning_output_tokens": 418 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..dbe71983f24629fbe2ab484d2e46759e0ce87396 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PGEZONG.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PGEZONG", + "predicate_col": "PPERSONG", + "predicate_op": "=", + "predicate_value": "0", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4728eabaa3ef215ca2b0085421f5840f7ef980d6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ea-8eb5-7941-acae-a9f90111db97"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT \\\"MOSTYPE\\\", \\\"PGEZONG\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nWHERE \\\"PPERSONG\\\" = '0'\\nGROUP BY \\\"MOSTYPE\\\", \\\"PGEZONG\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Applied the provided filtered two-dimensional group count template with group columns MOSTYPE and PGEZONG, filtering rows where PPERSONG equals text value '0'.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23100,"cached_input_tokens":12032,"output_tokens":535,"reasoning_output_tokens":418}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..54d00265f27f86ca15827d38474800607e2ced53 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT \"MOSTYPE\", \"PGEZONG\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nWHERE \"PPERSONG\" = '0'\nGROUP BY \"MOSTYPE\", \"PGEZONG\"\nORDER BY \"row_count\" DESC;","notes":"Applied the provided filtered two-dimensional group count template with group columns MOSTYPE and PGEZONG, filtering rows where PPERSONG equals text value '0'."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_b6daa7f3107186cd/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e6e6dc6ab9a5c5d1df6d0cdd42d8fb735dae2a14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:34.917805+00:00", + "ended_at": "2026-05-19T16:12:38.014179+00:00", + "elapsed_ms": 3096.35, + "returncode": 1, + "prompt_metrics": { + "chars": 33163, + "bytes_utf8": 33163, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3bd3dfe3bed9f843c0c2c8394fc4b948d5e622da --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:39.016369+00:00", + "ended_at": "2026-05-19T16:12:41.935158+00:00", + "elapsed_ms": 2918.76, + "returncode": 1, + "prompt_metrics": { + "chars": 33163, + "bytes_utf8": 33163, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..051d304d36c3e45bf1779c0431621d1e48eaa8f4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PBESAUT, measure_col=MSKB1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBESAUT", + "measure_col": "MSKB1", + "top_k": 18, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..051d304d36c3e45bf1779c0431621d1e48eaa8f4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PBESAUT, measure_col=MSKB1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBESAUT", + "measure_col": "MSKB1", + "top_k": 18, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7480c602225685d49a7696218f7804715eaf0895 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-ade9-77d0-946a-99e25768c047"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..b614caa41f1ff8eb1188498aa2f4d6aba4eee81a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-ade9-77d0-946a-99e25768c047"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..a1a2bf7f7eac4c699aee70e4c1bbad084b3bd16c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-bde9-7512-9aac-a362e23eae2e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ca0fffe5dbad62acad93f6a1f109f043078cbf6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-bde9-7512-9aac-a362e23eae2e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_bd27380594a92be4/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a0e9a737b89b24aaa0a16eec0c1289f5ca60d6ab --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:35.777307+00:00", + "ended_at": "2026-05-19T16:09:38.848249+00:00", + "elapsed_ms": 3070.91, + "returncode": 1, + "prompt_metrics": { + "chars": 33021, + "bytes_utf8": 33021, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3ac1477af40dcdae98d489903570f3eccabba1fa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:39.852205+00:00", + "ended_at": "2026-05-19T16:09:42.667842+00:00", + "elapsed_ms": 2815.59, + "returncode": 1, + "prompt_metrics": { + "chars": 33021, + "bytes_utf8": 33021, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ff37e93478ef97604532565dcb9272c1d47a992 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MOSHOOFD.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MOSHOOFD", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ff37e93478ef97604532565dcb9272c1d47a992 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MOSHOOFD.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MOSHOOFD", + "top_k": 12, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..10d3580102415adec69e14a467d0cbf1a2a1c1f9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-f23e-7720-8451-37e784e27aeb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..bb10662442d79f752632f167a699303f83ad92f2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-f23e-7720-8451-37e784e27aeb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8373945cfdd038c92d584c869099c3ee27ae8e87 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-0218-78b3-9fce-1a13eb011060"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..80bf7244ebc3830bb394434f0ebcce0b0a17884b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-0218-78b3-9fce-1a13eb011060"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c15494bc1daa1cd3/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4f6f5067286c8215e474c12050c7f8901dd4a97e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33076, "bytes_utf8": 33076, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 375, "bytes_utf8": 375, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23008, "cached_input_tokens": 21888, "output_tokens": 332, "reasoning_output_tokens": 225}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b7f933960b17cef5be04774107268ca8c3b9d0dc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_c76e8cff99cd284b", + "api_calls": 0, + "input_tokens": 23008, + "cached_input_tokens": 21888, + "output_tokens": 332, + "total_tokens": 23340, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 9205.02, + "sql_execution_elapsed_ms_total": 6.82, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5fd84b8d6000ec9dc33172b30ed7de43dadc0502 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:30:51.235450+00:00", + "ended_at": "2026-05-19T15:31:00.440496+00:00", + "elapsed_ms": 9205.02, + "prompt_metrics": { + "chars": 33076, + "bytes_utf8": 33076, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 729, + "bytes_utf8": 729, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 375, + "bytes_utf8": 375, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23008, + "cached_input_tokens": 21888, + "output_tokens": 332, + "reasoning_output_tokens": 225 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..61bd29f69f13b1233817a28d0f09c997b11bc86f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGODPR, measure_col=MGODPR.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGODPR", + "measure_col": "MGODPR", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..c3de61fffa8bfe4061dec1639697cd855ed5983e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40dc-7a03-7ba1-9a7e-2248bff01b82"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGODPR\\\", SUM(CAST(\\\"MGODPR\\\" AS NUMERIC)) AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGODPR\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Applied the required Grouped Numeric Sum template with group_col=\\\"MGODPR\\\" and measure_col=\\\"MGODPR\\\". CAST is used because the SQLite schema stores this numeric-discrete field as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23008,"cached_input_tokens":21888,"output_tokens":332,"reasoning_output_tokens":225}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d863f63227c2632d14a1a3a2d26e76aeda01a867 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGODPR\", SUM(CAST(\"MGODPR\" AS NUMERIC)) AS total_measure\nFROM \"n15\"\nGROUP BY \"MGODPR\"\nORDER BY total_measure DESC;","notes":"Applied the required Grouped Numeric Sum template with group_col=\"MGODPR\" and measure_col=\"MGODPR\". CAST is used because the SQLite schema stores this numeric-discrete field as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c76e8cff99cd284b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..61e52c9fac83aeb77061492b55c05fbb7ea28ae8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33083, "bytes_utf8": 33083, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 403, "bytes_utf8": 403, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23012, "cached_input_tokens": 12032, "output_tokens": 401, "reasoning_output_tokens": 290}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..e5b19beb51373852890a25f454c8fd1c3bc03300 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_c7a1c3969f2aff3d", + "api_calls": 0, + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 401, + "total_tokens": 23413, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13866.21, + "sql_execution_elapsed_ms_total": 8.17, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7fae3556b11a4e1a6e5baee0622917132b69787b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:28:39.788420+00:00", + "ended_at": "2026-05-19T15:28:53.654674+00:00", + "elapsed_ms": 13866.21, + "prompt_metrics": { + "chars": 33083, + "bytes_utf8": 33083, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 753, + "bytes_utf8": 753, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 403, + "bytes_utf8": 403, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23012, + "cached_input_tokens": 12032, + "output_tokens": 401, + "reasoning_output_tokens": 290 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..7b6111edde05d2fd8c9ee1e0aa166b7f60573bb2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MAANTHUI, measure_col=MAANTHUI.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MAANTHUI", + "measure_col": "MAANTHUI", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7530861d32e45467229fba935ff615d29be3d22a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40da-788d-7cc2-aaa3-0b114f644497"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MAANTHUI\\\", SUM(CAST(\\\"MAANTHUI\\\" AS INTEGER)) AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MAANTHUI\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Used the required grouped numeric sum template with \\\"MAANTHUI\\\" as both group and measure column. CAST is applied because the schema stores the field as TEXT, while the task describes it as numeric_discrete.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23012,"cached_input_tokens":12032,"output_tokens":401,"reasoning_output_tokens":290}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..51355310d53ee6a1d533e22b1cdb6a85c945a324 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MAANTHUI\", SUM(CAST(\"MAANTHUI\" AS INTEGER)) AS total_measure\nFROM \"n15\"\nGROUP BY \"MAANTHUI\"\nORDER BY total_measure DESC;","notes":"Used the required grouped numeric sum template with \"MAANTHUI\" as both group and measure column. CAST is applied because the schema stores the field as TEXT, while the task describes it as numeric_discrete."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c7a1c3969f2aff3d/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0599e9d0e73db755ce140807114c54451d04b74b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33079, "bytes_utf8": 33079, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 403, "bytes_utf8": 403, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23008, "cached_input_tokens": 12032, "output_tokens": 276, "reasoning_output_tokens": 167}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..0f2108013a95bff628637eab892e221c823e4144 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_c8aea652c30077b6", + "api_calls": 0, + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 276, + "total_tokens": 23284, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20982.56, + "sql_execution_elapsed_ms_total": 10.36, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..86abcb6d1ddc5e352cc3227a3732a8f75efb12eb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:31:33.878903+00:00", + "ended_at": "2026-05-19T15:31:54.861507+00:00", + "elapsed_ms": 20982.56, + "prompt_metrics": { + "chars": 33079, + "bytes_utf8": 33079, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2085, + "bytes_utf8": 2085, + "lines": 8, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 403, + "bytes_utf8": 403, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 276, + "reasoning_output_tokens": 167 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..bdc9ef906d8b23e879755aaae434d6d856b5ab37 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGODOV, measure_col=MGODOV.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGODOV", + "measure_col": "MGODOV", + "top_k": 17, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a33cc5356e07efa25468c71057123d7a4f1edb0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,8 @@ +{"type":"thread.started","thread_id":"019e40dd-208b-7633-90bf-59ed2d92d74c"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23643. Please try again in 709ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1981531, Requested 23643. Please try again in 155ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23643. Please try again in 709ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 5/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1983816, Requested 23643. Please try again in 223ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGODOV\\\", SUM(CAST(\\\"MGODOV\\\" AS NUMERIC)) AS total_measure\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGODOV\\\"\\nORDER BY total_measure DESC;\",\"notes\":\"Used the provided Grouped Numeric Sum template with group_col and measure_col both bound to \\\"MGODOV\\\". CAST is applied because the schema snapshot stores columns as TEXT, while the measure is semantically numeric.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23008,"cached_input_tokens":12032,"output_tokens":276,"reasoning_output_tokens":167}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..db7bb7cff618a3dd90028831b9f97265dfba1997 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGODOV\", SUM(CAST(\"MGODOV\" AS NUMERIC)) AS total_measure\nFROM \"n15\"\nGROUP BY \"MGODOV\"\nORDER BY total_measure DESC;","notes":"Used the provided Grouped Numeric Sum template with group_col and measure_col both bound to \"MGODOV\". CAST is applied because the schema snapshot stores columns as TEXT, while the measure is semantically numeric."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_c8aea652c30077b6/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6d81582d6504dab16e5f97fdcdba49a2fffe7a30 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33259, "bytes_utf8": 33259, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33259, "bytes_utf8": 33259, "lines": 1128, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 1150, "bytes_utf8": 1150, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23047, "cached_input_tokens": 21888, "output_tokens": 4794, "reasoning_output_tokens": 4438}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c6ae39403989ff4d608a26de7fefd44f02e23359 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_ca0f4508dd4e7be9", + "api_calls": 0, + "input_tokens": 23047, + "cached_input_tokens": 21888, + "output_tokens": 4794, + "total_tokens": 27841, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 79557.93, + "sql_execution_elapsed_ms_total": 3.95, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5da25ca83b3e232ace5eca9762ba8d315ff600ed --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:59:35.821181+00:00", + "ended_at": "2026-05-19T15:59:38.738750+00:00", + "elapsed_ms": 2917.54, + "returncode": 1, + "prompt_metrics": { + "chars": 33259, + "bytes_utf8": 33259, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..b059d554b29ecfc9ae7fe24326f31c2e4df08925 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:59:39.742216+00:00", + "ended_at": "2026-05-19T16:00:56.382649+00:00", + "elapsed_ms": 76640.39, + "prompt_metrics": { + "chars": 33259, + "bytes_utf8": 33259, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1628, + "bytes_utf8": 1628, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 1150, + "bytes_utf8": 1150, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23047, + "cached_input_tokens": 21888, + "output_tokens": 4794, + "reasoning_output_tokens": 4438 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..025dcbfd377aee6f2a98fe0cc58a131c826a7a14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGEMOMV, measure_col=MZFONDS.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMOMV", + "measure_col": "MZFONDS", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 7.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..025dcbfd377aee6f2a98fe0cc58a131c826a7a14 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MGEMOMV, measure_col=MZFONDS.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGEMOMV", + "measure_col": "MZFONDS", + "top_k": 13, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 7.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..28f21285eeba9e93f3aa7287e07bc1d6fb14b8b7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f6-caa3-7263-bb42-2815e643186f"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..eadf641e35f00ec36a1caceeca60b7a1148eee71 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f6-caa3-7263-bb42-2815e643186f"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..290654333426452542ac6856b16e6e70ac12f813 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f6-d9de-7641-ac8f-65e7620d9206"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"ranked\\\" AS (\\n SELECT\\n \\\"MGEMOMV\\\" AS \\\"group_col\\\",\\n CAST(\\\"MZFONDS\\\" AS REAL) AS \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"MGEMOMV\\\"\\n ORDER BY CAST(\\\"MZFONDS\\\" AS REAL)\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (\\n PARTITION BY \\\"MGEMOMV\\\"\\n ) AS \\\"cnt\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"ABYSTAND\\\" = '1'\\n AND \\\"MGEMOMV\\\" IS NOT NULL\\n AND \\\"MZFONDS\\\" IS NOT NULL\\n),\\n\\\"percentiles\\\" AS (\\n SELECT\\n \\\"group_col\\\",\\n \\\"measure_value\\\" AS \\\"percentile_measure\\\"\\n FROM \\\"ranked\\\"\\n WHERE \\\"rn\\\" = CAST(((\\\"cnt\\\" * 95) + 99) / 100 AS INTEGER)\\n AND \\\"cnt\\\" >= 5\\n)\\nSELECT\\n \\\"group_col\\\" AS \\\"MGEMOMV\\\",\\n \\\"percentile_measure\\\"\\nFROM \\\"percentiles\\\"\\nORDER BY \\\"percentile_measure\\\" DESC,\\n CAST(\\\"group_col\\\" AS REAL) ASC;\",\"notes\":\"SQLite does not support PERCENTILE_CONT, so this uses a nearest-rank 95th percentile with window functions. \\\"MZFONDS\\\" is cast from TEXT to REAL for numeric ordering, and focused_target_view is interpreted as restricting the analysis to positive-target rows where \\\"ABYSTAND\\\" = '1'.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23047,"cached_input_tokens":21888,"output_tokens":4794,"reasoning_output_tokens":4438}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e77545d3a09d6138f1a46db09b494484c49f9d40 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"ranked\" AS (\n SELECT\n \"MGEMOMV\" AS \"group_col\",\n CAST(\"MZFONDS\" AS REAL) AS \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"MGEMOMV\"\n ORDER BY CAST(\"MZFONDS\" AS REAL)\n ) AS \"rn\",\n COUNT(*) OVER (\n PARTITION BY \"MGEMOMV\"\n ) AS \"cnt\"\n FROM \"n15\"\n WHERE \"ABYSTAND\" = '1'\n AND \"MGEMOMV\" IS NOT NULL\n AND \"MZFONDS\" IS NOT NULL\n),\n\"percentiles\" AS (\n SELECT\n \"group_col\",\n \"measure_value\" AS \"percentile_measure\"\n FROM \"ranked\"\n WHERE \"rn\" = CAST(((\"cnt\" * 95) + 99) / 100 AS INTEGER)\n AND \"cnt\" >= 5\n)\nSELECT\n \"group_col\" AS \"MGEMOMV\",\n \"percentile_measure\"\nFROM \"percentiles\"\nORDER BY \"percentile_measure\" DESC,\n CAST(\"group_col\" AS REAL) ASC;","notes":"SQLite does not support PERCENTILE_CONT, so this uses a nearest-rank 95th percentile with window functions. \"MZFONDS\" is cast from TEXT to REAL for numeric ordering, and focused_target_view is interpreted as restricting the analysis to positive-target rows where \"ABYSTAND\" = '1'."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ca0f4508dd4e7be9/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0f9e93c95e09bbc05205524d2716a4b1e6839502 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:21.220686+00:00", + "ended_at": "2026-05-19T16:09:24.682450+00:00", + "elapsed_ms": 3461.73, + "returncode": 1, + "prompt_metrics": { + "chars": 33019, + "bytes_utf8": 33019, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8435c1df3bc7ace55f2aa24d9719909c80a8f631 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:25.686164+00:00", + "ended_at": "2026-05-19T16:09:28.497948+00:00", + "elapsed_ms": 2811.76, + "returncode": 1, + "prompt_metrics": { + "chars": 33019, + "bytes_utf8": 33019, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..720954d36fa3c2961657688c4e66b6e8838321d2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGEMOMV.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGEMOMV", + "top_k": 10, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..720954d36fa3c2961657688c4e66b6e8838321d2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGEMOMV.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGEMOMV", + "top_k": 10, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..04537baff821bb971824132e0d13b94cd2562b33 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-b944-7f21-b636-3f887fb1dfc7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..edfd7de71e3dab4f68cc5c797787cb2c31c86c00 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-b944-7f21-b636-3f887fb1dfc7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8a893195435c7811998c3b771558bf67a630dc55 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-cace-7403-8b8d-a464ae90e843"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..96d6ceb705dc3697d8cacf1c54be500abff88727 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ff-cace-7403-8b8d-a464ae90e843"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_cf8867994df671c4/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..019cd08a928c743761e61136cc96fca7feb614e9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32993, "bytes_utf8": 32993, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 296, "bytes_utf8": 296, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22982, "cached_input_tokens": 21888, "output_tokens": 195, "reasoning_output_tokens": 110}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b39f3710b0df490b3bdcdfe8f368fa74c7fcf806 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_d37ad2bdfd591475", + "api_calls": 0, + "input_tokens": 22982, + "cached_input_tokens": 21888, + "output_tokens": 195, + "total_tokens": 23177, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19112.78, + "sql_execution_elapsed_ms_total": 6.69, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..6d62b28829ba5f9310c02261dcf33f7cff0add87 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:33:54.168491+00:00", + "ended_at": "2026-05-19T15:34:13.281308+00:00", + "elapsed_ms": 19112.78, + "prompt_metrics": { + "chars": 32993, + "bytes_utf8": 32993, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1637, + "bytes_utf8": 1637, + "lines": 7, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 296, + "bytes_utf8": 296, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22982, + "cached_input_tokens": 21888, + "output_tokens": 195, + "reasoning_output_tokens": 110 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..92fd3c3ed6783c2a2f7e23cba2ed6164ea497ae8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MOPLLAAG.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MOPLLAAG", + "top_k": 12, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..f38f6870731649bc53d5f035c47b177ba35f4665 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,7 @@ +{"type":"thread.started","thread_id":"019e40df-4484-76a0-aff3-658b77c1d026"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1986179, Requested 23617. Please try again in 293ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23617. Please try again in 708ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 4/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1982944, Requested 23617. Please try again in 196ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MOPLLAAG\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOPLLAAG\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Uses the required Grouped Count by Category template with group_col fixed to MOPLLAAG to show the subgroup count distribution.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22982,"cached_input_tokens":21888,"output_tokens":195,"reasoning_output_tokens":110}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..67fd3e1f0935e52092a82d148eca43b18762eb41 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MOPLLAAG\", COUNT(*) AS row_count\nFROM \"n15\"\nGROUP BY \"MOPLLAAG\"\nORDER BY row_count DESC;","notes":"Uses the required Grouped Count by Category template with group_col fixed to MOPLLAAG to show the subgroup count distribution."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d37ad2bdfd591475/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..eaad752f6ba6da394b4ef4efbfa1f8a771e9dcdc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33635, "bytes_utf8": 33635, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 860, "bytes_utf8": 860, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23144, "cached_input_tokens": 21888, "output_tokens": 755, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..84ba3330ea26b56ecac09999dae92d1027b10bcf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_d765376a68bdfe07", + "api_calls": 0, + "input_tokens": 23144, + "cached_input_tokens": 21888, + "output_tokens": 755, + "total_tokens": 23899, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 13463.23, + "sql_execution_elapsed_ms_total": 8.56, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2ba7aa10bde39d7ca21e1f7123dc41ae657f765f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:51:03.493586+00:00", + "ended_at": "2026-05-19T15:51:16.956861+00:00", + "elapsed_ms": 13463.23, + "prompt_metrics": { + "chars": 33635, + "bytes_utf8": 33635, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1277, + "bytes_utf8": 1277, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 860, + "bytes_utf8": 860, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23144, + "cached_input_tokens": 21888, + "output_tokens": 755, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..bffd3e951cf5b3edf494450be5b753af34a36cf1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=ALEVEN, measure_col=MBERMIDD.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ALEVEN", + "measure_col": "MBERMIDD", + "top_k": 10, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..e88e6a707d7b2a9454e154eb1b3964cde9d0915a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ee-f955-7862-a179-a256968dc626"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT\\n \\\"ALEVEN\\\",\\n SUM(CAST(\\\"MBERMIDD\\\" AS REAL)) AS \\\"group_value\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"ALEVEN\\\" IS NOT NULL\\n AND \\\"ALEVEN\\\" <> ''\\n AND \\\"MBERMIDD\\\" IS NOT NULL\\n AND \\\"MBERMIDD\\\" <> ''\\n GROUP BY \\\"ALEVEN\\\"\\n), total AS (\\n SELECT SUM(\\\"group_value\\\") AS \\\"total_value\\\"\\n FROM grouped\\n)\\nSELECT g.\\\"ALEVEN\\\", g.\\\"group_value\\\"\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.\\\"group_value\\\" > t.\\\"total_value\\\" * 0.1\\nORDER BY g.\\\"group_value\\\" DESC;\",\"notes\":\"Applied the planned Relative-to-Total Extreme Threshold template with group_col=\\\"ALEVEN\\\" and measure_col=\\\"MBERMIDD\\\". Added null/empty filtering for a stable grouped view and CAST on the measure because the schema stores numeric-like fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23144,"cached_input_tokens":21888,"output_tokens":755,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..23334a19bcf896573d2f0a56bfab0e5f4d1eaae1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT\n \"ALEVEN\",\n SUM(CAST(\"MBERMIDD\" AS REAL)) AS \"group_value\"\n FROM \"n15\"\n WHERE \"ALEVEN\" IS NOT NULL\n AND \"ALEVEN\" <> ''\n AND \"MBERMIDD\" IS NOT NULL\n AND \"MBERMIDD\" <> ''\n GROUP BY \"ALEVEN\"\n), total AS (\n SELECT SUM(\"group_value\") AS \"total_value\"\n FROM grouped\n)\nSELECT g.\"ALEVEN\", g.\"group_value\"\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.\"group_value\" > t.\"total_value\" * 0.1\nORDER BY g.\"group_value\" DESC;","notes":"Applied the planned Relative-to-Total Extreme Threshold template with group_col=\"ALEVEN\" and measure_col=\"MBERMIDD\". Added null/empty filtering for a stable grouped view and CAST on the measure because the schema stores numeric-like fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d765376a68bdfe07/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7b5e774b934bee1fae36180fcb5a30ff94bdcc81 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33254, "bytes_utf8": 33254, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 603, "bytes_utf8": 603, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23061, "cached_input_tokens": 21888, "output_tokens": 1343, "reasoning_output_tokens": 1160}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..95f81cad66a8e8aa39fb60273df431c12c30ae3c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_d76f15ebbb80a077", + "api_calls": 0, + "input_tokens": 23061, + "cached_input_tokens": 21888, + "output_tokens": 1343, + "total_tokens": 24404, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 22280.82, + "sql_execution_elapsed_ms_total": 16.82, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..461f03f0b93aed4f0e34b04fc16a082d3f2138d4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:48:38.672452+00:00", + "ended_at": "2026-05-19T15:49:00.953305+00:00", + "elapsed_ms": 22280.82, + "prompt_metrics": { + "chars": 33254, + "bytes_utf8": 33254, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 991, + "bytes_utf8": 991, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 603, + "bytes_utf8": 603, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23061, + "cached_input_tokens": 21888, + "output_tokens": 1343, + "reasoning_output_tokens": 1160 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8e200824f4c018057cb20c87c05600608511872f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_quantile_tail_slice", + "template_name": "Quantile Tail Slice", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MFGEKIND.", + "planned_template_id": "tpl_m4_quantile_tail_slice", + "bindings": { + "measure_col": "MFGEKIND", + "top_k": 12, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH buckets AS (\n SELECT {measure_col},\n NTILE({num_tiles}) OVER (ORDER BY {measure_col} DESC) AS tail_bucket\n FROM {table}\n)\nSELECT {measure_col}\nFROM buckets\nWHERE tail_bucket = 1\nORDER BY {measure_col} DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..bc3ce6c1a8d911584526e472a61c64e59e2adbc6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40ec-c3ad-76d3-b66e-47f60d4e85da"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_quantile_tail_slice\\nWITH \\\"buckets\\\" AS (\\n SELECT\\n \\\"MFGEKIND\\\",\\n CAST(\\\"MFGEKIND\\\" AS REAL) AS \\\"measure_value\\\",\\n NTILE(10) OVER (ORDER BY CAST(\\\"MFGEKIND\\\" AS REAL) DESC) AS \\\"tail_bucket\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MFGEKIND\\\" IS NOT NULL\\n)\\nSELECT \\\"MFGEKIND\\\"\\nFROM \\\"buckets\\\"\\nWHERE \\\"tail_bucket\\\" = 1\\nORDER BY \\\"measure_value\\\" DESC;\",\"notes\":\"Used the Quantile Tail Slice template with measure_col bound to MFGEKIND and num_tiles=10. MFGEKIND is cast to REAL for numeric ordering because the SQLite schema stores it as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23061,"cached_input_tokens":21888,"output_tokens":1343,"reasoning_output_tokens":1160}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5a3ec520e4cd212a8d97d5c0d3ed5263fdd7d28a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_quantile_tail_slice\nWITH \"buckets\" AS (\n SELECT\n \"MFGEKIND\",\n CAST(\"MFGEKIND\" AS REAL) AS \"measure_value\",\n NTILE(10) OVER (ORDER BY CAST(\"MFGEKIND\" AS REAL) DESC) AS \"tail_bucket\"\n FROM \"n15\"\n WHERE \"MFGEKIND\" IS NOT NULL\n)\nSELECT \"MFGEKIND\"\nFROM \"buckets\"\nWHERE \"tail_bucket\" = 1\nORDER BY \"measure_value\" DESC;","notes":"Used the Quantile Tail Slice template with measure_col bound to MFGEKIND and num_tiles=10. MFGEKIND is cast to REAL for numeric ordering because the SQLite schema stores it as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d76f15ebbb80a077/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..881d21c71dc8abf493c4af838144fabfe843f7df --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33075, "bytes_utf8": 33075, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 375, "bytes_utf8": 375, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23008, "cached_input_tokens": 12288, "output_tokens": 321, "reasoning_output_tokens": 212}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..523b37a2483d967b9240430c3cdf0b818504414b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_d78e79a5aa5a35f1", + "api_calls": 0, + "input_tokens": 23008, + "cached_input_tokens": 12288, + "output_tokens": 321, + "total_tokens": 23329, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 16932.1, + "sql_execution_elapsed_ms_total": 4.48, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3ad11aac7899bd741c81110cb2f3de0f1bc120bd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:30:16.344709+00:00", + "ended_at": "2026-05-19T15:30:33.276844+00:00", + "elapsed_ms": 16932.1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1401, + "bytes_utf8": 1401, + "lines": 6, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 375, + "bytes_utf8": 375, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23008, + "cached_input_tokens": 12288, + "output_tokens": 321, + "reasoning_output_tokens": 212 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..71483545b4c298372e81c4914b5f9bd28d799d74 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGODRK, measure_col=MGODRK.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGODRK", + "measure_col": "MGODRK", + "top_k": 10, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7c5bfbb56d067149a592aef148e6856f390dbc6c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,6 @@ +{"type":"thread.started","thread_id":"019e40db-f1a1-7440-b9b1-ccb2e3d72deb"} +{"type":"turn.started"} +{"type":"error","message":"Reconnecting... 2/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 1981662, Requested 23643. Please try again in 159ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"error","message":"Reconnecting... 3/5 (stream disconnected before completion: Rate limit reached for gpt-5.4 in organization org-yXK0mBGOR7eXhtGEx8v7e3bf on tokens per min (TPM): Limit 2000000, Used 2000000, Requested 23643. Please try again in 709ms. Visit https://platform.openai.com/account/rate-limits to learn more.)"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT\\n \\\"MGODRK\\\",\\n SUM(CAST(\\\"MGODRK\\\" AS NUMERIC)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGODRK\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Used the provided grouped numeric sum template with group_col and measure_col both bound to \\\"MGODRK\\\". CAST was added because the SQLite schema stores this column as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23008,"cached_input_tokens":12288,"output_tokens":321,"reasoning_output_tokens":212}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8eb9eb22806c1c9f2609820543b26d42d2f6ec6b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT\n \"MGODRK\",\n SUM(CAST(\"MGODRK\" AS NUMERIC)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MGODRK\"\nORDER BY \"total_measure\" DESC;","notes":"Used the provided grouped numeric sum template with group_col and measure_col both bound to \"MGODRK\". CAST was added because the SQLite schema stores this column as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_d78e79a5aa5a35f1/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..244856e26e44c84a6b18ea91f573c2833728870d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:27.560259+00:00", + "ended_at": "2026-05-19T16:12:30.569075+00:00", + "elapsed_ms": 3008.79, + "returncode": 1, + "prompt_metrics": { + "chars": 33157, + "bytes_utf8": 33157, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..de534bfc12d0410ac3b5135a369072d041b168eb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:12:31.572242+00:00", + "ended_at": "2026-05-19T16:12:34.912775+00:00", + "elapsed_ms": 3340.49, + "returncode": 1, + "prompt_metrics": { + "chars": 33157, + "bytes_utf8": 33157, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..bd4b3f039eec79fdd4ca1c836672e3d19f3bdc47 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role ranked_signal_view. Focus on group_col=PBESAUT, measure_col=MSKB1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBESAUT", + "measure_col": "MSKB1", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..bd4b3f039eec79fdd4ca1c836672e3d19f3bdc47 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role ranked_signal_view. Focus on group_col=PBESAUT, measure_col=MSKB1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBESAUT", + "measure_col": "MSKB1", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d59b9c0376817e3c4b23002f48a75d5964c9858e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-913d-7321-92c2-7e80268540a1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..a7360292cbc95b8c0c5ab0508aeed84b0ce8c90a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-913d-7321-92c2-7e80268540a1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..c35f638064d923675bd66588b78f41af512e911e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-a0e0-7432-b949-b0a9fe254991"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..fb2c285a81d11471f2a2a60cb814efa6400dd9fe --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4102-a0e0-7432-b949-b0a9fe254991"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_db136dee04982bac/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..95eafc4c77c8bd075b9b19ad6b2baea77b3d0640 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32994, "bytes_utf8": 32994, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 253, "bytes_utf8": 253, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22981, "cached_input_tokens": 12032, "output_tokens": 239, "reasoning_output_tokens": 167}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..f89a223c87092ce807fbefd8dec3712041cf524c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_dc76fc6554dbdb3e", + "api_calls": 0, + "input_tokens": 22981, + "cached_input_tokens": 12032, + "output_tokens": 239, + "total_tokens": 23220, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 11318.18, + "sql_execution_elapsed_ms_total": 10.11, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f19a6ef351d9ec49354c6be912d432be9cbd63a4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:33:09.058272+00:00", + "ended_at": "2026-05-19T15:33:20.376507+00:00", + "elapsed_ms": 11318.18, + "prompt_metrics": { + "chars": 32994, + "bytes_utf8": 32994, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 595, + "bytes_utf8": 595, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 253, + "bytes_utf8": 253, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22981, + "cached_input_tokens": 12032, + "output_tokens": 239, + "reasoning_output_tokens": 167 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8c25938ecc15e87d4f23ac082d6328c121fa4940 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MFWEKIND.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MFWEKIND", + "top_k": 14, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..4b65fa96bafd9beb6127413e840948fa156e29a9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40de-9459-7da1-96d1-aee93ff37dee"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MFWEKIND\\\", COUNT(*) AS row_count\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFWEKIND\\\"\\nORDER BY row_count DESC;\",\"notes\":\"Grouped count distribution for subgroup column MFWEKIND using the planned template.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22981,"cached_input_tokens":12032,"output_tokens":239,"reasoning_output_tokens":167}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..4eec50da6942e1fd577a86fae3c4e97ba0bf5859 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MFWEKIND\", COUNT(*) AS row_count\nFROM \"n15\"\nGROUP BY \"MFWEKIND\"\nORDER BY row_count DESC;","notes":"Grouped count distribution for subgroup column MFWEKIND using the planned template."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_dc76fc6554dbdb3e/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5390d0bb4b0f9cad8525458da6254a953bef72f1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:42.673151+00:00", + "ended_at": "2026-05-19T16:09:45.529108+00:00", + "elapsed_ms": 2855.93, + "returncode": 1, + "prompt_metrics": { + "chars": 33016, + "bytes_utf8": 33016, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..fe4952e2b5da2e9f3631b82b35213590ed1bdc45 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:09:46.531293+00:00", + "ended_at": "2026-05-19T16:09:49.547208+00:00", + "elapsed_ms": 3015.88, + "returncode": 1, + "prompt_metrics": { + "chars": 33016, + "bytes_utf8": 33016, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..96cc1e062a9e32bc678304d258a5714215e797f7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODRK.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODRK", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..96cc1e062a9e32bc678304d258a5714215e797f7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_threshold_rarity_cdf", + "template_name": "Threshold Rarity CDF", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};", + "required_roles": [ + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Threshold Rarity CDF to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=MGODRK.", + "planned_template_id": "tpl_threshold_rarity_cdf", + "bindings": { + "measure_col": "MGODRK", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT AVG(CASE WHEN {measure_col} <= {measure_threshold} THEN 1 ELSE 0 END) AS empirical_cdf_at_threshold\nFROM {table};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..a2feaeb7a5b3bed45eecf40dc9354614297317fc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-0d19-7843-816e-a4ad1927b5e7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..fc67be973ff8f75a8256403abb73efe8ce15bdb9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-0d19-7843-816e-a4ad1927b5e7"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..58eeb5790d1717207f5a955c939254b27e2168eb --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-1c37-7a92-ab38-92fb4b047d83"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..09bd495872481f4efbf823dbe54b1e6196138915 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4100-1c37-7a92-ab38-92fb4b047d83"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_df296674a85a043b/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3ba88fa404ff5c233e1ff720dcfc6e05c408ace8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33631, "bytes_utf8": 33631, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33631, "bytes_utf8": 33631, "lines": 1128, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 715, "bytes_utf8": 715, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23146, "cached_input_tokens": 21888, "output_tokens": 476, "reasoning_output_tokens": 273}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..384433f69dde1c003a6d545d384d7824c2500b25 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_e100007c92975588", + "api_calls": 0, + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 476, + "total_tokens": 23622, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 18831.32, + "sql_execution_elapsed_ms_total": 7.67, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..32e441e24b3a938d835c1053c07f4a0f5d80c1a7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:54:09.072221+00:00", + "ended_at": "2026-05-19T15:54:12.326019+00:00", + "elapsed_ms": 3253.72, + "returncode": 1, + "prompt_metrics": { + "chars": 33631, + "bytes_utf8": 33631, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..cef36d39e7a08d6f94ef07f60248c067c397076f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:54:13.329545+00:00", + "ended_at": "2026-05-19T15:54:28.907198+00:00", + "elapsed_ms": 15577.6, + "prompt_metrics": { + "chars": 33631, + "bytes_utf8": 33631, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1092, + "bytes_utf8": 1092, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 715, + "bytes_utf8": 715, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23146, + "cached_input_tokens": 21888, + "output_tokens": 476, + "reasoning_output_tokens": 273 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..1b2c4d45038224cee64e597228d9097d7a0208f2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=APLEZIER, measure_col=MSKC.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "APLEZIER", + "measure_col": "MSKC", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1b2c4d45038224cee64e597228d9097d7a0208f2 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role filtered_stable_view. Focus on group_col=APLEZIER, measure_col=MSKC.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "APLEZIER", + "measure_col": "MSKC", + "top_k": 11, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..6c25820cfea37abc0481f1eb24e772326049fa9c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-ce62-77a1-af76-9f8ae9801fbc"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..c6f098bf9507dd5f3edc209a2d0561948587afd7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-ce62-77a1-af76-9f8ae9801fbc"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..14eadc573e0cafc7f855e0403971f09854a35224 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-defb-7541-a5b0-7d3c9cfd2e4a"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"APLEZIER\\\", SUM(CAST(\\\"MSKC\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n WHERE \\\"APLEZIER\\\" IS NOT NULL\\n AND \\\"MSKC\\\" IS NOT NULL\\n GROUP BY \\\"APLEZIER\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"APLEZIER\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.1\\nORDER BY g.group_value DESC;\",\"notes\":\"Used the required template with group_col=\\\"APLEZIER\\\" and measure_col=\\\"MSKC\\\". CAST to REAL is added because the schema stores these fields as TEXT in SQLite; nulls are filtered for a stable grouped aggregate.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23146,"cached_input_tokens":21888,"output_tokens":476,"reasoning_output_tokens":273}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..ca821313d12567aa2d24f8ce177e0d563c0b4977 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"APLEZIER\", SUM(CAST(\"MSKC\" AS REAL)) AS group_value\n FROM \"n15\"\n WHERE \"APLEZIER\" IS NOT NULL\n AND \"MSKC\" IS NOT NULL\n GROUP BY \"APLEZIER\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"APLEZIER\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.1\nORDER BY g.group_value DESC;","notes":"Used the required template with group_col=\"APLEZIER\" and measure_col=\"MSKC\". CAST to REAL is added because the schema stores these fields as TEXT in SQLite; nulls are filtered for a stable grouped aggregate."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e100007c92975588/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a89ccbe3a42c059701332ebf863979fe52f59278 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:57.264870+00:00", + "ended_at": "2026-05-19T16:11:00.632334+00:00", + "elapsed_ms": 3367.43, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..095c4d000d2479cb88f8fed79f31825f78fb03e4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:01.636408+00:00", + "ended_at": "2026-05-19T16:11:05.235514+00:00", + "elapsed_ms": 3599.06, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..0428b01c3a1d10653ef04534da01cef56116b322 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MINK3045.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK3045", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..0428b01c3a1d10653ef04534da01cef56116b322 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=MINK3045.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK3045", + "top_k": 13, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..7a8254d20e152194c4ac8a983a597cd103069ffa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-306e-7551-aca2-9d9c7242ab44"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ba442caddea3bd62230bfc772f1c7fe3fcac767c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-306e-7551-aca2-9d9c7242ab44"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..3888c6028c8fe7bc2c8337f5c688ebd718f5253a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-4187-7452-8c78-0319b13da846"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..c0adc64237d2fdfc948f3be5926d34eb90df4093 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-4187-7452-8c78-0319b13da846"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e5b54cc11ebb0adb/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..0c069896365fd8d93ee1f355d12ddcdf52393c60 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:49.973445+00:00", + "ended_at": "2026-05-19T16:10:53.119764+00:00", + "elapsed_ms": 3146.29, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a3614cf024d5306a73d12d5b8393ace10e29bba4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:10:54.122914+00:00", + "ended_at": "2026-05-19T16:10:57.260298+00:00", + "elapsed_ms": 3137.35, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..09163c0bc1a808821b588d42fa553319717ef05c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role count_distribution. Focus on group_col=MINKM30.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINKM30", + "top_k": 17, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..09163c0bc1a808821b588d42fa553319717ef05c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role count_distribution. Focus on group_col=MINKM30.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINKM30", + "top_k": 17, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2f7b532a72d62a113ac566cddfca2a5c7bee3183 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-1408-7b12-8c49-391cc97414c8"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..dd4b7b129539d27801b7b3ceab8e99e0945988b6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-2427-7a20-89c7-b116b3a92e83"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..c3d96c1cb364ed48a9e70981277f8cbeebf2a475 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-2427-7a20-89c7-b116b3a92e83"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e75a78bed400f2c2/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c4d789384e08063d77915fed59cb1b5831de5f30 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33257, "bytes_utf8": 33257, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 1783, "bytes_utf8": 1783, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23047, "cached_input_tokens": 12032, "output_tokens": 1148, "reasoning_output_tokens": 516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..fc992ffcf543f5094ac1577fb091f8b57e928ed8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_e7dff5bb80c0a176", + "api_calls": 0, + "input_tokens": 23047, + "cached_input_tokens": 12032, + "output_tokens": 1148, + "total_tokens": 24195, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 20605.81, + "sql_execution_elapsed_ms_total": 37.48, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..5257b99dc021a5949daef2901d52241ffa5e6d76 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:02:54.542507+00:00", + "ended_at": "2026-05-19T16:03:15.148349+00:00", + "elapsed_ms": 20605.81, + "prompt_metrics": { + "chars": 33257, + "bytes_utf8": 33257, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2398, + "bytes_utf8": 2398, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 1783, + "bytes_utf8": 1783, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23047, + "cached_input_tokens": 12032, + "output_tokens": 1148, + "reasoning_output_tokens": 516 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..17641bc77da63601d16f4afdf4eec013416f46c3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=MGODRK, measure_col=MINK3045.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MGODRK", + "measure_col": "MINK3045", + "top_k": 11, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..44ffc25d25512ac147e5b9899b1d511cb42fb530 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f9-d2d2-7023-bbab-32f7c0deebb2"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point\\nWITH \\\"ordered\\\" AS (\\n SELECT\\n \\\"MGODRK\\\",\\n CAST(\\\"MINK3045\\\" AS REAL) AS \\\"measure_value\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"MGODRK\\\"\\n ORDER BY CAST(\\\"MINK3045\\\" AS REAL)\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (\\n PARTITION BY \\\"MGODRK\\\"\\n ) AS \\\"cnt\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"MINK3045\\\" IS NOT NULL\\n),\\n\\\"positions\\\" AS (\\n SELECT DISTINCT\\n \\\"MGODRK\\\",\\n \\\"cnt\\\",\\n (1.0 + 0.9 * (\\\"cnt\\\" - 1)) AS \\\"pos\\\",\\n CAST(1.0 + 0.9 * (\\\"cnt\\\" - 1) AS INTEGER) AS \\\"lower_rn\\\",\\n CASE\\n WHEN CAST(1.0 + 0.9 * (\\\"cnt\\\" - 1) AS INTEGER) = (1.0 + 0.9 * (\\\"cnt\\\" - 1))\\n THEN CAST(1.0 + 0.9 * (\\\"cnt\\\" - 1) AS INTEGER)\\n ELSE CAST(1.0 + 0.9 * (\\\"cnt\\\" - 1) AS INTEGER) + 1\\n END AS \\\"upper_rn\\\"\\n FROM \\\"ordered\\\"\\n),\\n\\\"bounds\\\" AS (\\n SELECT\\n p.\\\"MGODRK\\\",\\n p.\\\"pos\\\",\\n p.\\\"lower_rn\\\",\\n p.\\\"upper_rn\\\",\\n MAX(CASE WHEN o.\\\"rn\\\" = p.\\\"lower_rn\\\" THEN o.\\\"measure_value\\\" END) AS \\\"lower_value\\\",\\n MAX(CASE WHEN o.\\\"rn\\\" = p.\\\"upper_rn\\\" THEN o.\\\"measure_value\\\" END) AS \\\"upper_value\\\"\\n FROM \\\"positions\\\" AS p\\n JOIN \\\"ordered\\\" AS o\\n ON o.\\\"MGODRK\\\" = p.\\\"MGODRK\\\"\\n GROUP BY\\n p.\\\"MGODRK\\\",\\n p.\\\"pos\\\",\\n p.\\\"lower_rn\\\",\\n p.\\\"upper_rn\\\"\\n)\\nSELECT\\n \\\"MGODRK\\\",\\n CASE\\n WHEN \\\"lower_rn\\\" = \\\"upper_rn\\\" THEN \\\"lower_value\\\"\\n ELSE \\\"lower_value\\\" + ((\\\"pos\\\" - \\\"lower_rn\\\") * (\\\"upper_value\\\" - \\\"lower_value\\\"))\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"bounds\\\"\\nORDER BY \\\"percentile_measure\\\" DESC;\",\"notes\":\"SQLite does not support PERCENTILE_CONT, so this query emulates the 0.9 continuous percentile per \\\"MGODRK\\\" using window functions and linear interpolation over CAST(\\\"MINK3045\\\" AS REAL).\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23047,"cached_input_tokens":12032,"output_tokens":1148,"reasoning_output_tokens":516}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..f5fd0d82cfd272a9bf656d512d1378115e05b9a8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point\nWITH \"ordered\" AS (\n SELECT\n \"MGODRK\",\n CAST(\"MINK3045\" AS REAL) AS \"measure_value\",\n ROW_NUMBER() OVER (\n PARTITION BY \"MGODRK\"\n ORDER BY CAST(\"MINK3045\" AS REAL)\n ) AS \"rn\",\n COUNT(*) OVER (\n PARTITION BY \"MGODRK\"\n ) AS \"cnt\"\n FROM \"n15\"\n WHERE \"MINK3045\" IS NOT NULL\n),\n\"positions\" AS (\n SELECT DISTINCT\n \"MGODRK\",\n \"cnt\",\n (1.0 + 0.9 * (\"cnt\" - 1)) AS \"pos\",\n CAST(1.0 + 0.9 * (\"cnt\" - 1) AS INTEGER) AS \"lower_rn\",\n CASE\n WHEN CAST(1.0 + 0.9 * (\"cnt\" - 1) AS INTEGER) = (1.0 + 0.9 * (\"cnt\" - 1))\n THEN CAST(1.0 + 0.9 * (\"cnt\" - 1) AS INTEGER)\n ELSE CAST(1.0 + 0.9 * (\"cnt\" - 1) AS INTEGER) + 1\n END AS \"upper_rn\"\n FROM \"ordered\"\n),\n\"bounds\" AS (\n SELECT\n p.\"MGODRK\",\n p.\"pos\",\n p.\"lower_rn\",\n p.\"upper_rn\",\n MAX(CASE WHEN o.\"rn\" = p.\"lower_rn\" THEN o.\"measure_value\" END) AS \"lower_value\",\n MAX(CASE WHEN o.\"rn\" = p.\"upper_rn\" THEN o.\"measure_value\" END) AS \"upper_value\"\n FROM \"positions\" AS p\n JOIN \"ordered\" AS o\n ON o.\"MGODRK\" = p.\"MGODRK\"\n GROUP BY\n p.\"MGODRK\",\n p.\"pos\",\n p.\"lower_rn\",\n p.\"upper_rn\"\n)\nSELECT\n \"MGODRK\",\n CASE\n WHEN \"lower_rn\" = \"upper_rn\" THEN \"lower_value\"\n ELSE \"lower_value\" + ((\"pos\" - \"lower_rn\") * (\"upper_value\" - \"lower_value\"))\n END AS \"percentile_measure\"\nFROM \"bounds\"\nORDER BY \"percentile_measure\" DESC;","notes":"SQLite does not support PERCENTILE_CONT, so this query emulates the 0.9 continuous percentile per \"MGODRK\" using window functions and linear interpolation over CAST(\"MINK3045\" AS REAL)."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e7dff5bb80c0a176/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4cca8491e76d20cdf08cf264f649effd102291c0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33255, "bytes_utf8": 33255, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33255, "bytes_utf8": 33255, "lines": 1128, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 2059, "bytes_utf8": 2059, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23044, "cached_input_tokens": 21888, "output_tokens": 4146, "reasoning_output_tokens": 3445}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b9e61f654a889115f496752d5d28b1655faf71b4 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_e8da0e694c83170f", + "api_calls": 0, + "input_tokens": 23044, + "cached_input_tokens": 21888, + "output_tokens": 4146, + "total_tokens": 27190, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 66294.52, + "sql_execution_elapsed_ms_total": 9.29, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..13b8dcc7b3209eb28e168e29d6871977db0a5218 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:56:55.213547+00:00", + "ended_at": "2026-05-19T15:56:58.210208+00:00", + "elapsed_ms": 2996.64, + "returncode": 1, + "prompt_metrics": { + "chars": 33255, + "bytes_utf8": 33255, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bdcca512f2462e557ddc3df96c1b191691d9db0b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:56:59.213018+00:00", + "ended_at": "2026-05-19T15:58:02.510949+00:00", + "elapsed_ms": 63297.88, + "prompt_metrics": { + "chars": 33255, + "bytes_utf8": 33255, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 2754, + "bytes_utf8": 2754, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 2059, + "bytes_utf8": 2059, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23044, + "cached_input_tokens": 21888, + "output_tokens": 4146, + "reasoning_output_tokens": 3445 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd4d42b2a5d5e967e958f441741b58b03d9823c1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MOSTYPE, measure_col=MAUT2.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MAUT2", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..fd4d42b2a5d5e967e958f441741b58b03d9823c1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_grouped_percentile_point", + "template_name": "Grouped Percentile Point", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role focused_target_view. Focus on group_col=MOSTYPE, measure_col=MAUT2.", + "planned_template_id": "tpl_grouped_percentile_point", + "bindings": { + "group_col": "MOSTYPE", + "measure_col": "MAUT2", + "top_k": 11, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 3.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n PERCENTILE_CONT({percentile_value}) WITHIN GROUP (ORDER BY {measure_col}) AS percentile_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY percentile_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d271c4446dfe077d36233d14681a86495d39efaf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f4-573b-7a53-ac08-cc1c3011c61e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..12d7980a9aa6c8732a148609873d2a180666984b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f4-573b-7a53-ac08-cc1c3011c61e"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..98c9914b72b6e9c19e9c3d5eb26c6e4cc39ac684 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f4-66e1-76a3-ac7a-37921592575a"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_grouped_percentile_point.\\nWITH \\\"base\\\" AS (\\n SELECT\\n \\\"MOSTYPE\\\" AS \\\"group_col\\\",\\n CAST(\\\"MAUT2\\\" AS REAL) AS \\\"measure_col\\\"\\n FROM \\\"n15\\\"\\n WHERE \\\"ABYSTAND\\\" = '1'\\n AND \\\"MOSTYPE\\\" IS NOT NULL\\n AND TRIM(\\\"MOSTYPE\\\") <> ''\\n AND \\\"MAUT2\\\" IS NOT NULL\\n AND TRIM(\\\"MAUT2\\\") <> ''\\n),\\n\\\"ranked\\\" AS (\\n SELECT\\n \\\"group_col\\\",\\n \\\"measure_col\\\",\\n ROW_NUMBER() OVER (\\n PARTITION BY \\\"group_col\\\"\\n ORDER BY \\\"measure_col\\\"\\n ) AS \\\"rn\\\",\\n COUNT(*) OVER (\\n PARTITION BY \\\"group_col\\\"\\n ) AS \\\"cnt\\\"\\n FROM \\\"base\\\"\\n),\\n\\\"params\\\" AS (\\n SELECT DISTINCT\\n \\\"group_col\\\",\\n \\\"cnt\\\",\\n CAST((100 + 95 * (\\\"cnt\\\" - 1)) / 100.0 AS INT) AS \\\"lower_rn\\\",\\n CAST((100 + 95 * (\\\"cnt\\\" - 1)) / 100.0 AS INT)\\n + CASE WHEN (100 + 95 * (\\\"cnt\\\" - 1)) % 100 = 0 THEN 0 ELSE 1 END AS \\\"upper_rn\\\",\\n ((100 + 95 * (\\\"cnt\\\" - 1)) / 100.0)\\n - CAST((100 + 95 * (\\\"cnt\\\" - 1)) / 100.0 AS INT) AS \\\"frac\\\"\\n FROM \\\"ranked\\\"\\n WHERE \\\"cnt\\\" >= 5\\n),\\n\\\"picked\\\" AS (\\n SELECT\\n \\\"r\\\".\\\"group_col\\\",\\n MAX(CASE WHEN \\\"r\\\".\\\"rn\\\" = \\\"p\\\".\\\"lower_rn\\\" THEN \\\"r\\\".\\\"measure_col\\\" END) AS \\\"lower_val\\\",\\n MAX(CASE WHEN \\\"r\\\".\\\"rn\\\" = \\\"p\\\".\\\"upper_rn\\\" THEN \\\"r\\\".\\\"measure_col\\\" END) AS \\\"upper_val\\\",\\n MAX(\\\"p\\\".\\\"frac\\\") AS \\\"frac\\\"\\n FROM \\\"ranked\\\" AS \\\"r\\\"\\n INNER JOIN \\\"params\\\" AS \\\"p\\\"\\n ON \\\"r\\\".\\\"group_col\\\" = \\\"p\\\".\\\"group_col\\\"\\n GROUP BY \\\"r\\\".\\\"group_col\\\"\\n)\\nSELECT\\n \\\"group_col\\\" AS \\\"MOSTYPE\\\",\\n CASE\\n WHEN \\\"upper_val\\\" IS NULL THEN \\\"lower_val\\\"\\n ELSE \\\"lower_val\\\" + (\\\"upper_val\\\" - \\\"lower_val\\\") * \\\"frac\\\"\\n END AS \\\"percentile_measure\\\"\\nFROM \\\"picked\\\"\\nORDER BY \\\"percentile_measure\\\" DESC, \\\"MOSTYPE\\\";\",\"notes\":\"SQLite does not support PERCENTILE_CONT, so this emulates the 95th percentile with ordered-row interpolation on CAST(\\\"MAUT2\\\" AS REAL), grouped by \\\"MOSTYPE\\\", filtered to the focused target view where \\\"ABYSTAND\\\" = '1', and excluding groups with fewer than 5 qualifying rows.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23044,"cached_input_tokens":21888,"output_tokens":4146,"reasoning_output_tokens":3445}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..8fc93cfc64350f4b09a2b232319a3ad1c66126a0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_grouped_percentile_point.\nWITH \"base\" AS (\n SELECT\n \"MOSTYPE\" AS \"group_col\",\n CAST(\"MAUT2\" AS REAL) AS \"measure_col\"\n FROM \"n15\"\n WHERE \"ABYSTAND\" = '1'\n AND \"MOSTYPE\" IS NOT NULL\n AND TRIM(\"MOSTYPE\") <> ''\n AND \"MAUT2\" IS NOT NULL\n AND TRIM(\"MAUT2\") <> ''\n),\n\"ranked\" AS (\n SELECT\n \"group_col\",\n \"measure_col\",\n ROW_NUMBER() OVER (\n PARTITION BY \"group_col\"\n ORDER BY \"measure_col\"\n ) AS \"rn\",\n COUNT(*) OVER (\n PARTITION BY \"group_col\"\n ) AS \"cnt\"\n FROM \"base\"\n),\n\"params\" AS (\n SELECT DISTINCT\n \"group_col\",\n \"cnt\",\n CAST((100 + 95 * (\"cnt\" - 1)) / 100.0 AS INT) AS \"lower_rn\",\n CAST((100 + 95 * (\"cnt\" - 1)) / 100.0 AS INT)\n + CASE WHEN (100 + 95 * (\"cnt\" - 1)) % 100 = 0 THEN 0 ELSE 1 END AS \"upper_rn\",\n ((100 + 95 * (\"cnt\" - 1)) / 100.0)\n - CAST((100 + 95 * (\"cnt\" - 1)) / 100.0 AS INT) AS \"frac\"\n FROM \"ranked\"\n WHERE \"cnt\" >= 5\n),\n\"picked\" AS (\n SELECT\n \"r\".\"group_col\",\n MAX(CASE WHEN \"r\".\"rn\" = \"p\".\"lower_rn\" THEN \"r\".\"measure_col\" END) AS \"lower_val\",\n MAX(CASE WHEN \"r\".\"rn\" = \"p\".\"upper_rn\" THEN \"r\".\"measure_col\" END) AS \"upper_val\",\n MAX(\"p\".\"frac\") AS \"frac\"\n FROM \"ranked\" AS \"r\"\n INNER JOIN \"params\" AS \"p\"\n ON \"r\".\"group_col\" = \"p\".\"group_col\"\n GROUP BY \"r\".\"group_col\"\n)\nSELECT\n \"group_col\" AS \"MOSTYPE\",\n CASE\n WHEN \"upper_val\" IS NULL THEN \"lower_val\"\n ELSE \"lower_val\" + (\"upper_val\" - \"lower_val\") * \"frac\"\n END AS \"percentile_measure\"\nFROM \"picked\"\nORDER BY \"percentile_measure\" DESC, \"MOSTYPE\";","notes":"SQLite does not support PERCENTILE_CONT, so this emulates the 95th percentile with ordered-row interpolation on CAST(\"MAUT2\" AS REAL), grouped by \"MOSTYPE\", filtered to the focused target view where \"ABYSTAND\" = '1', and excluding groups with fewer than 5 qualifying rows."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e8da0e694c83170f/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..eb5b0513884339bdc5fab97e81d5adfb3f1c9199 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:36.010204+00:00", + "ended_at": "2026-05-19T16:11:39.272161+00:00", + "elapsed_ms": 3261.93, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7b5cc2ceb7fc19024fe87597ea2734ba0cc6bd15 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:40.274585+00:00", + "ended_at": "2026-05-19T16:11:43.143548+00:00", + "elapsed_ms": 2868.93, + "returncode": 1, + "prompt_metrics": { + "chars": 33075, + "bytes_utf8": 33075, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..edb19bfe296848e12e414813e0238c039d434a41 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MINK7512.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK7512", + "top_k": 15, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..edb19bfe296848e12e414813e0238c039d434a41 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=MINK7512.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK7512", + "top_k": 15, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 6.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..04b15458da7b497f3adb2c2d4e743b9267ccfd62 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-c7dc-7e42-a472-6b8fd856ddd5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..16e58db0744252fd860309ec79835ed184cc73a1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-c7dc-7e42-a472-6b8fd856ddd5"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..af56ea84a15fa3ce2304bced6bcb838da6e7adf0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-d875-7e13-88c1-7c1435a9b458"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..d5d178a6a20b457779cc28c6b08cea6718b6b1c3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-d875-7e13-88c1-7c1435a9b458"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_e905a2269d3669b6/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..edf1d256dc961b0e19d49c90ed5cb8cb876ef823 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/final_answer.txt @@ -0,0 +1,2 @@ +SQL executed successfully for: Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MFGEKIND. +Result preview: [{"MFGEKIND": "3", "row_count": 2517}, {"MFGEKIND": "4", "row_count": 2493}, {"MFGEKIND": "2", "row_count": 1798}, {"MFGEKIND": "5", "row_count": 1043}, {"MFGEKIND": "0", "row_count": 613}] \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..c187a775af10a7033333f79d9d8ff89835f16f1a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/generated_sql.sql @@ -0,0 +1,17 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: subgroup_structure +-- canonical_subitem_id: subgroup_size_stability +-- intended_facet_id: subgroup_distribution_shift +-- variant_semantic_role: count_distribution +-- template_id: tpl_clickbench_group_count +-- query_record_id: v2q_n15_ea3851ef51514a16 +-- problem_id: v2p_n15_de9d9505c9a7330f +-- realization_mode: agent +-- source_kind: agent +SELECT "MFGEKIND", COUNT(*) AS "row_count" +FROM "n15" +GROUP BY "MFGEKIND" +ORDER BY "row_count" DESC; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d757b8aeb4618188999cea4c86cffb27d1e1da04 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/query_results.jsonl @@ -0,0 +1 @@ +{"step_index": 1, "message_index": 0, "node_name": "v2-cli:codex", "tool_name": "sqlite_query", "query": "-- template_id: tpl_clickbench_group_count\nSELECT \"MFGEKIND\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nGROUP BY \"MFGEKIND\"\nORDER BY \"row_count\" DESC;", "result": "{\"query\": \"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MFGEKIND\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFGEKIND\\\"\\nORDER BY \\\"row_count\\\" DESC;\", \"columns\": [\"MFGEKIND\", \"row_count\"], \"rows\": [{\"MFGEKIND\": \"3\", \"row_count\": 2517}, {\"MFGEKIND\": \"4\", \"row_count\": 2493}, {\"MFGEKIND\": \"2\", \"row_count\": 1798}, {\"MFGEKIND\": \"5\", \"row_count\": 1043}, {\"MFGEKIND\": \"0\", \"row_count\": 613}, {\"MFGEKIND\": \"1\", \"row_count\": 608}, {\"MFGEKIND\": \"6\", \"row_count\": 516}, {\"MFGEKIND\": \"7\", \"row_count\": 160}, {\"MFGEKIND\": \"9\", \"row_count\": 47}, {\"MFGEKIND\": \"8\", \"row_count\": 27}], \"row_count_returned\": 10, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 10.17}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..d493146c1037f45fe70cb27a9de769fb7a5a9c2e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/run_manifest.json @@ -0,0 +1,87 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T15:32:49.320250+00:00", + "ended_at": "2026-05-19T15:33:09.049061+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_ea3851ef51514a16", + "problem_id": "v2p_n15_de9d9505c9a7330f", + "dataset_id": "n15", + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "family_id": "subgroup_structure", + "canonical_subitem_id": "subgroup_size_stability", + "intended_facet_id": "subgroup_distribution_shift", + "variant_semantic_role": "count_distribution", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MFGEKIND.", + "bindings": { + "group_col": "MFGEKIND", + "top_k": 13, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "notes": [ + "default_facets=subgroup_distribution_shift", + "template_selection_mode=rule", + "problem_index_within_template=2", + "sql_variant_index=1/1", + "binding_index=13" + ], + "template_selection_mode": "rule", + "selected_template_rank": 2, + "problem_index_within_template": 2, + "sql_variant_index": 1, + "sql_variant_total": 1 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_ea3851ef51514a16.sql", + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_ea3851ef51514a16", + "api_calls": 0, + "input_tokens": 22981, + "cached_input_tokens": 12032, + "output_tokens": 306, + "total_tokens": 23287, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19709.74, + "sql_execution_elapsed_ms_total": 10.17, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..eb5fd0d4ff6a04504f107d5c1c6ccf2bc93e36d6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/trace.jsonl @@ -0,0 +1 @@ +{"timestamp": "2026-05-19T15:33:09.035530+00:00", "event_type": "ai_cli_sql_generation", "engine": "v2-cli:codex", "attempt": 1, "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", "returncode": 0, "elapsed_ms": 19709.74, "started_at": "2026-05-19T15:32:49.323891+00:00", "ended_at": "2026-05-19T15:33:09.033672+00:00", "prompt_metrics": {"chars": 32993, "bytes_utf8": 32993, "lines": 1126, "estimated_tokens": null}, "response_metrics": {"chars": 285, "bytes_utf8": 285, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22981, "cached_input_tokens": 12032, "output_tokens": 306, "reasoning_output_tokens": 224}, "stderr_preview": "", "stdout_preview": "{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MFGEKIND\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MFGEKIND\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Grouped count by category on \\\"MFGEKIND\\\" using the planned template to inspect subgroup size distribution.\"}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..a90966774a21d2aec02b1937e5e68618fb36fae8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/usage_summary.json @@ -0,0 +1,20 @@ +{ + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_ea3851ef51514a16", + "api_calls": 0, + "input_tokens": 22981, + "cached_input_tokens": 12032, + "output_tokens": 306, + "total_tokens": 23287, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 19709.74, + "sql_execution_elapsed_ms_total": 10.17, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ea3851ef51514a16/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..29f6efed4f0f3f64368430eafce48f053c8f1c9e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 32993, "bytes_utf8": 32993, "lines": 1126, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 299, "bytes_utf8": 299, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 22983, "cached_input_tokens": 21888, "output_tokens": 425, "reasoning_output_tokens": 332}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..b67fa03dcfdfe132c9227ae802aec40e45cd0d0f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_eadcdb23baf38a82", + "api_calls": 0, + "input_tokens": 22983, + "cached_input_tokens": 21888, + "output_tokens": 425, + "total_tokens": 23408, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 10445.58, + "sql_execution_elapsed_ms_total": 8.54, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..7bce2a53cf80da07d15a89ff2013546da5b05843 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:34:20.404147+00:00", + "ended_at": "2026-05-19T15:34:30.849766+00:00", + "elapsed_ms": 10445.58, + "prompt_metrics": { + "chars": 32993, + "bytes_utf8": 32993, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 657, + "bytes_utf8": 657, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 299, + "bytes_utf8": 299, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 22983, + "cached_input_tokens": 21888, + "output_tokens": 425, + "reasoning_output_tokens": 332 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..44bad71b6819e7aade1035cd0a2991dbb34cd91e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_clickbench_group_count", + "template_name": "Grouped Count by Category", + "primary_family": "subgroup_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=MBERZELF.", + "planned_template_id": "tpl_clickbench_group_count", + "bindings": { + "group_col": "MBERZELF", + "top_k": 14, + "top_n": 6, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..32a1cefd0f30b7aa0ebaee4856a0257d72d9e311 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40df-aae9-7db1-ac35-3db104e7822d"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_clickbench_group_count\\nSELECT \\\"MBERZELF\\\", COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MBERZELF\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Uses the planned Grouped Count by Category template with \\\"MBERZELF\\\" as the grouping column on the single table \\\"n15\\\".\"}"}} +{"type":"turn.completed","usage":{"input_tokens":22983,"cached_input_tokens":21888,"output_tokens":425,"reasoning_output_tokens":332}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..d79fd6677668d868005a1b57fc5d4b9fd0c8d848 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_clickbench_group_count\nSELECT \"MBERZELF\", COUNT(*) AS \"row_count\"\nFROM \"n15\"\nGROUP BY \"MBERZELF\"\nORDER BY \"row_count\" DESC;","notes":"Uses the planned Grouped Count by Category template with \"MBERZELF\" as the grouping column on the single table \"n15\"."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eadcdb23baf38a82/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..fe0a9b54bebb89d323511bd20a3bfbe87d90d1e1 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/run_manifest.json @@ -0,0 +1,69 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T16:13:04.382543+00:00", + "ended_at": "2026-05-19T16:13:12.097124+00:00", + "status": "failed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_eae92782fa6daa20", + "problem_id": "v2p_n15_63934cb706e32ea6", + "dataset_id": "n15", + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "family_id": "conditional_dependency_structure", + "canonical_subitem_id": "direction_consistency", + "intended_facet_id": "conditional_rate_shift", + "variant_semantic_role": "filtered_stable_view", + "subitem_assignment_source": "planner_selected", + "source_kind": "agent", + "realization_mode": "agent", + "gate_priority": "primary", + "extended_family": false, + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PVRAAUT, measure_col=MSKC.", + "bindings": { + "group_col": "PVRAAUT", + "measure_col": "MSKC", + "top_k": 15, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.28, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "binding_roles": [ + "group_col", + "measure_col" + ], + "coverage_target_min": "5", + "runtime_sql_skeleton": "SELECT DISTINCT {group_col},\n AVG({measure_col}) OVER (PARTITION BY {group_col}) AS avg_measure\nFROM {table}\nORDER BY avg_measure DESC;", + "notes": [ + "default_facets=conditional_rate_shift", + "template_selection_mode=rule", + "problem_index_within_template=4", + "sql_variant_index=2/2", + "binding_index=135" + ], + "template_selection_mode": "rule", + "selected_template_rank": 12, + "problem_index_within_template": 4, + "sql_variant_index": 2, + "sql_variant_total": 2 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "error": "AI CLI command failed with exit code 1: " +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/trace.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/trace.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..775155db642183b80208161e5c1afcda32576b3b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_eae92782fa6daa20/trace.jsonl @@ -0,0 +1,2 @@ +{"timestamp": "2026-05-19T16:13:07.758170+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": 3371.24, "started_at": "2026-05-19T16:13:04.386114+00:00", "ended_at": "2026-05-19T16:13:07.757383+00:00", "prompt_metrics": {"chars": 33161, "bytes_utf8": 33161, "lines": 1128, "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\":\"019e4103-2113-7530-97ed-384e4acfaee4\"}\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: "} +{"timestamp": "2026-05-19T16:13:12.097031+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": 3336.61, "started_at": "2026-05-19T16:13:08.759595+00:00", "ended_at": "2026-05-19T16:13:12.096238+00:00", "prompt_metrics": {"chars": 33161, "bytes_utf8": 33161, "lines": 1128, "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\":\"019e4103-3234-7731-b0f5-84dbc101a01c\"}\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: "} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a69078593454454f679248edf36a0c677e68e6af --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:13.481527+00:00", + "ended_at": "2026-05-19T16:11:16.536235+00:00", + "elapsed_ms": 3054.68, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..cebee0efca51fc8527e6600e53a92714b1ae7a2d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:11:17.538348+00:00", + "ended_at": "2026-05-19T16:11:20.852311+00:00", + "elapsed_ms": 3313.93, + "returncode": 1, + "prompt_metrics": { + "chars": 33073, + "bytes_utf8": 33073, + "lines": 1126, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..86dee076cd4da33d4d5d3cdfd7ac4aef5ff1b39f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINK4575.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK4575", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..86dee076cd4da33d4d5d3cdfd7ac4aef5ff1b39f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1126 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tail_low_support_group_count_v2", + "template_name": "Low-Support Group Count", + "primary_family": "tail_rarity_structure", + "portability": "yes", + "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};", + "required_roles": [ + "group_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Low-Support Group Count to probe tail_set_consistency with semantic role rare_extreme_view. Focus on group_col=MINK4575.", + "planned_template_id": "tpl_tail_low_support_group_count_v2", + "bindings": { + "group_col": "MINK4575", + "top_k": 14, + "top_n": 3, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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};" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ed44ea8dd4a91ad1b7f40d84667f5b290f17e2fa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-6fc8-78e1-86c5-44e4c35d5674"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..322ef60ccb5342e9fb2d8b6d712d8a2054239043 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-6fc8-78e1-86c5-44e4c35d5674"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..022503014a790f220cea44b64ea8fe3edbcba10b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-7fa1-7ec0-9cf3-5f0a7cc306e1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..8af36847807b80a0e09bd2c5d44d411faf2858e9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4101-7fa1-7ec0-9cf3-5f0a7cc306e1"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_ee148b415f57c915/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b41887613876204063a81be6c21f54ad593c106c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/conversation.jsonl @@ -0,0 +1,4 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33631, "bytes_utf8": 33631, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 280, "bytes_utf8": 280, "lines": 4, "estimated_tokens": null}, "usage": {}, "status": "failed", "error": "AI CLI command failed with exit code 1: "} +{"attempt": 2, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_2.txt", "metrics": {"chars": 33631, "bytes_utf8": 33631, "lines": 1128, "estimated_tokens": null}} +{"attempt": 2, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_2.txt", "raw_content_path": "cli/sql_response_attempt_2.raw.txt", "stderr_path": "cli/sql_stderr_attempt_2.txt", "metrics": {"chars": 619, "bytes_utf8": 619, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23142, "cached_input_tokens": 21888, "output_tokens": 516, "reasoning_output_tokens": 343}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..822251f8adf8d5a77d712e76e94cb8abd86d2ea7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 2, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_f047ca2e0f0c5788", + "api_calls": 0, + "input_tokens": 23142, + "cached_input_tokens": 21888, + "output_tokens": 516, + "total_tokens": 23658, + "cost_usd": 0.0, + "ai_cli_calls": 2, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 14832.93, + "sql_execution_elapsed_ms_total": 8.09, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..15d8585643dd0a33e9c72cb3e186951044f36711 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:53:24.538559+00:00", + "ended_at": "2026-05-19T15:53:28.054274+00:00", + "elapsed_ms": 3515.69, + "returncode": 1, + "prompt_metrics": { + "chars": 33631, + "bytes_utf8": 33631, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..3cba0700d00ad6cda9d2da9310e5a37e43ae7386 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_attempt_2.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:53:29.058189+00:00", + "ended_at": "2026-05-19T15:53:40.375473+00:00", + "elapsed_ms": 11317.24, + "prompt_metrics": { + "chars": 33631, + "bytes_utf8": 33631, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 990, + "bytes_utf8": 990, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 619, + "bytes_utf8": 619, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23142, + "cached_input_tokens": 21888, + "output_tokens": 516, + "reasoning_output_tokens": 343 + } + }, + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..8393567235328b479143eb35222aa2ed78940f0c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=ABRAND, measure_col=MSKB1.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ABRAND", + "measure_col": "MSKB1", + "top_k": 19, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..8393567235328b479143eb35222aa2ed78940f0c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpch_relative_total_threshold", + "template_name": "Relative-to-Total Extreme Threshold", + "primary_family": "tail_rarity_structure", + "portability": "partial", + "sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=ABRAND, measure_col=MSKB1.", + "planned_template_id": "tpl_tpch_relative_total_threshold", + "bindings": { + "group_col": "ABRAND", + "measure_col": "MSKB1", + "top_k": 19, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col}, SUM({measure_col}) AS group_value\n FROM {table}\n GROUP BY {group_col}\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.{group_col}, g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * {fraction_threshold}\nORDER BY g.group_value DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..849da49419d65b53f997e2196242cce67d153513 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-2044-7580-8a4b-71c782129822"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..f23e5e26bb51a4d6b5d2c39e5ea4d4f1b96c12c8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-2044-7580-8a4b-71c782129822"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..16f7f93f683c4ead234ae8e4f17943dc4dfc05b9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40f1-3221-7a42-b571-93079e93c5e2"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpch_relative_total_threshold\\nWITH grouped AS (\\n SELECT \\\"ABRAND\\\", SUM(CAST(\\\"MSKB1\\\" AS REAL)) AS group_value\\n FROM \\\"n15\\\"\\n GROUP BY \\\"ABRAND\\\"\\n), total AS (\\n SELECT SUM(group_value) AS total_value\\n FROM grouped\\n)\\nSELECT g.\\\"ABRAND\\\", g.group_value\\nFROM grouped AS g\\nCROSS JOIN total AS t\\nWHERE g.group_value > t.total_value * 0.05\\nORDER BY g.group_value DESC;\",\"notes\":\"Uses the requested Relative-to-Total Extreme Threshold template with group_col=\\\"ABRAND\\\" and measure_col=\\\"MSKB1\\\". \\\"MSKB1\\\" is cast to REAL because the SQLite schema stores it as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23142,"cached_input_tokens":21888,"output_tokens":516,"reasoning_output_tokens":343}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..1ff5e519dc4fb236121d661bff4b33b5efbc7427 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_response_attempt_2.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpch_relative_total_threshold\nWITH grouped AS (\n SELECT \"ABRAND\", SUM(CAST(\"MSKB1\" AS REAL)) AS group_value\n FROM \"n15\"\n GROUP BY \"ABRAND\"\n), total AS (\n SELECT SUM(group_value) AS total_value\n FROM grouped\n)\nSELECT g.\"ABRAND\", g.group_value\nFROM grouped AS g\nCROSS JOIN total AS t\nWHERE g.group_value > t.total_value * 0.05\nORDER BY g.group_value DESC;","notes":"Uses the requested Relative-to-Total Extreme Threshold template with group_col=\"ABRAND\" and measure_col=\"MSKB1\". \"MSKB1\" is cast to REAL because the SQLite schema stores it as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f047ca2e0f0c5788/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..4b9dfcbe46ca9c2ee82e4c5585369b3a52890afa --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:02.749117+00:00", + "ended_at": "2026-05-19T16:14:06.024170+00:00", + "elapsed_ms": 3275.01, + "returncode": 1, + "prompt_metrics": { + "chars": 33159, + "bytes_utf8": 33159, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d83160f52abf3115fc3250339077f775cf918020 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:14:07.027287+00:00", + "ended_at": "2026-05-19T16:14:10.207120+00:00", + "elapsed_ms": 3179.79, + "returncode": 1, + "prompt_metrics": { + "chars": 33159, + "bytes_utf8": 33159, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..58a4b4db70f1a68143238b04adc0765fcf728a9e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PBROM, measure_col=MAUT1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBROM", + "measure_col": "MAUT1", + "top_k": 19, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..58a4b4db70f1a68143238b04adc0765fcf728a9e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PBROM, measure_col=MAUT1.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PBROM", + "measure_col": "MAUT1", + "top_k": 19, + "top_n": 7, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 7.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..54ddbd32d4deffba66dc57bf991d7ef6c358835b --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-04ed-75e0-a540-826869716de6"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ca051a99054be220b6346e30124fbdabe5b4592c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-04ed-75e0-a540-826869716de6"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..39538bd850bace4f092f77cb86fdff834d0b9bfd --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-1595-7fc3-8bbd-545a53fc2fbb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..d084e6ec24e18b530270163fca99992cb1370637 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4104-1595-7fc3-8bbd-545a53fc2fbb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f16b01df2ce1eb0d/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d4ec3e16bdbc86aa6b927a644f76ff4bdcfacdce --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33078, "bytes_utf8": 33078, "lines": 1128, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 367, "bytes_utf8": 367, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23008, "cached_input_tokens": 12032, "output_tokens": 529, "reasoning_output_tokens": 424}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..2becb1e7c55e4a257c258e0c63a9a07331b55f68 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_f392c9b4d66a2bc2", + "api_calls": 0, + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 529, + "total_tokens": 23537, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 14511.43, + "sql_execution_elapsed_ms_total": 6.29, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..99277df570926ad49ea4f79112f42c366df15948 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:32:12.816168+00:00", + "ended_at": "2026-05-19T15:32:27.327622+00:00", + "elapsed_ms": 14511.43, + "prompt_metrics": { + "chars": 33078, + "bytes_utf8": 33078, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 721, + "bytes_utf8": 721, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 367, + "bytes_utf8": 367, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23008, + "cached_input_tokens": 12032, + "output_tokens": 529, + "reasoning_output_tokens": 424 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..2f07c147b6c63a260556e3a61dbf628496dfc365 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_h2o_group_sum", + "template_name": "Grouped Numeric Sum", + "primary_family": "subgroup_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Numeric Sum to probe internal_profile_stability with semantic role collapsed_target_view. Focus on group_col=MGODGE, measure_col=MGODGE.", + "planned_template_id": "tpl_h2o_group_sum", + "bindings": { + "group_col": "MGODGE", + "measure_col": "MGODGE", + "top_k": 18, + "top_n": 4, + "num_tiles": 10, + "percentile_value": 0.9, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 3.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, SUM({measure_col}) AS total_measure\nFROM {table}\nGROUP BY {group_col}\nORDER BY total_measure DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..15346c5708b37b8f5c5175b20cbf896ec80945ac --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40dd-b88e-7041-bae4-673e65924fd1"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_h2o_group_sum\\nSELECT \\\"MGODGE\\\", SUM(CAST(\\\"MGODGE\\\" AS NUMERIC)) AS \\\"total_measure\\\"\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MGODGE\\\"\\nORDER BY \\\"total_measure\\\" DESC;\",\"notes\":\"Applied the grouped numeric sum template with both group_col and measure_col bound to MGODGE. CAST to NUMERIC is used because the SQLite schema stores this field as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23008,"cached_input_tokens":12032,"output_tokens":529,"reasoning_output_tokens":424}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ef061fc6675a84659a5b0475e4e5731cc17c592 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_h2o_group_sum\nSELECT \"MGODGE\", SUM(CAST(\"MGODGE\" AS NUMERIC)) AS \"total_measure\"\nFROM \"n15\"\nGROUP BY \"MGODGE\"\nORDER BY \"total_measure\" DESC;","notes":"Applied the grouped numeric sum template with both group_col and measure_col bound to MGODGE. CAST to NUMERIC is used because the SQLite schema stores this field as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f392c9b4d66a2bc2/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/final_answer.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/final_answer.txt new file mode 100644 index 0000000000000000000000000000000000000000..4b7c25ebc32b1ba83e204939339b9425f89538e5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/final_answer.txt @@ -0,0 +1 @@ +{"row_count": null, "preview_rows": [{"value_label": "2", "support": 2508, "support_share": 0.25534514355528404, "support_rank": 1}, {"value_label": "3", "support": 2348, "support_share": 0.23905518224394218, "support_rank": 2}, {"value_label": "4", "support": 1573, "support_share": 0.1601506821421299, "support_rank": 3}, {"value_label": "0", "support": 1164, "support_share": 0.11850946854001222, "support_rank": 4}, {"value_label": "5", "support": 726, "support_share": 0.07391569945021381, "support_rank": 5}]} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/generated_sql.sql b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/generated_sql.sql new file mode 100644 index 0000000000000000000000000000000000000000..22f2b171642e0842827afe6d68e2fa190b581922 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/generated_sql.sql @@ -0,0 +1,25 @@ +-- sql_source_version: v2 +-- sql_source_label: v2_current +-- sql_source_run_id: v2_cli_20260502_081223_b +-- sql_source_dataset_id: n15 +-- family_id: cardinality_structure +-- canonical_subitem_id: support_rank_profile_consistency +-- intended_facet_id: value_imbalance_profile +-- variant_semantic_role: count_distribution +-- template_id: tpl_cardinality_support_rank_profile +-- query_record_id: v2q_n15_f7168f6e29d8f7f8 +-- problem_id: v2p_n15_013e2c2f2eb35e5c +-- realization_mode: deterministic +-- source_kind: deterministic +WITH grouped AS ( + SELECT "MBERMIDD" AS value_label, COUNT(*) AS support + FROM "n15" + GROUP BY "MBERMIDD" +) +SELECT + value_label, + support, + CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share, + ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank +FROM grouped +ORDER BY support DESC, value_label; diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/query_results.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/query_results.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..64b8b0656d19ba6206312fc628cdf0f79a334057 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/query_results.jsonl @@ -0,0 +1 @@ +{"node_name": "v2_template", "tool_name": "sqlite_query", "query": "-- sql_source_version: v2\n-- sql_source_label: v2_current\n-- sql_source_run_id: v2_cli_20260502_081223_b\n-- sql_source_dataset_id: n15\n-- family_id: cardinality_structure\n-- canonical_subitem_id: support_rank_profile_consistency\n-- intended_facet_id: value_imbalance_profile\n-- variant_semantic_role: count_distribution\n-- template_id: tpl_cardinality_support_rank_profile\n-- query_record_id: v2q_n15_f7168f6e29d8f7f8\n-- problem_id: v2p_n15_013e2c2f2eb35e5c\n-- realization_mode: deterministic\n-- source_kind: deterministic\nWITH grouped AS (\n SELECT \"MBERMIDD\" AS value_label, COUNT(*) AS support\n FROM \"n15\"\n GROUP BY \"MBERMIDD\"\n)\nSELECT\n value_label,\n support,\n CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,\n ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank\nFROM grouped\nORDER BY support DESC, value_label;", "result": "{\"query\": \"-- sql_source_version: v2\\n-- sql_source_label: v2_current\\n-- sql_source_run_id: v2_cli_20260502_081223_b\\n-- sql_source_dataset_id: n15\\n-- family_id: cardinality_structure\\n-- canonical_subitem_id: support_rank_profile_consistency\\n-- intended_facet_id: value_imbalance_profile\\n-- variant_semantic_role: count_distribution\\n-- template_id: tpl_cardinality_support_rank_profile\\n-- query_record_id: v2q_n15_f7168f6e29d8f7f8\\n-- problem_id: v2p_n15_013e2c2f2eb35e5c\\n-- realization_mode: deterministic\\n-- source_kind: deterministic\\nWITH grouped AS (\\n SELECT \\\"MBERMIDD\\\" AS value_label, COUNT(*) AS support\\n FROM \\\"n15\\\"\\n GROUP BY \\\"MBERMIDD\\\"\\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\": 2508, \"support_share\": 0.25534514355528404, \"support_rank\": 1}, {\"value_label\": \"3\", \"support\": 2348, \"support_share\": 0.23905518224394218, \"support_rank\": 2}, {\"value_label\": \"4\", \"support\": 1573, \"support_share\": 0.1601506821421299, \"support_rank\": 3}, {\"value_label\": \"0\", \"support\": 1164, \"support_share\": 0.11850946854001222, \"support_rank\": 4}, {\"value_label\": \"5\", \"support\": 726, \"support_share\": 0.07391569945021381, \"support_rank\": 5}, {\"value_label\": \"1\", \"support\": 699, \"support_share\": 0.07116676847892486, \"support_rank\": 6}, {\"value_label\": \"6\", \"support\": 348, \"support_share\": 0.0354306658521686, \"support_rank\": 7}, {\"value_label\": \"7\", \"support\": 295, \"support_share\": 0.0300346161677866, \"support_rank\": 8}, {\"value_label\": \"9\", \"support\": 137, \"support_share\": 0.01394827937283649, \"support_rank\": 9}, {\"value_label\": \"8\", \"support\": 24, \"support_share\": 0.002443494196701283, \"support_rank\": 10}], \"row_count_returned\": 10, \"row_limit\": 50, \"truncated\": false, \"elapsed_ms\": 4.86}"} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/run_manifest.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/run_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..61494d71f85e226afae11cebff81740d53052b9c --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/run_manifest.json @@ -0,0 +1,57 @@ +{ + "run_id": "v2_cli_20260502_081223_b", + "dataset_id": "n15", + "started_at": "2026-05-19T16:14:24.902357+00:00", + "ended_at": "2026-05-19T16:14:24.908115+00:00", + "status": "completed", + "engine": "cli", + "question_record": { + "query_record_id": "v2q_n15_f7168f6e29d8f7f8", + "problem_id": "v2p_n15_013e2c2f2eb35e5c", + "dataset_id": "n15", + "template_id": "tpl_cardinality_support_rank_profile", + "template_name": "Cardinality Support Rank Profile", + "family_id": "cardinality_structure", + "canonical_subitem_id": "support_rank_profile_consistency", + "intended_facet_id": "value_imbalance_profile", + "variant_semantic_role": "count_distribution", + "subitem_assignment_source": "template_fixed", + "source_kind": "deterministic", + "realization_mode": "deterministic", + "gate_priority": "deterministic", + "extended_family": true, + "question": "Use template Cardinality Support Rank Profile to probe support_rank_profile_consistency with semantic role count_distribution. Focus on group_col=MBERMIDD.", + "bindings": { + "group_col": "MBERMIDD" + }, + "binding_roles": [ + "group_col" + ], + "coverage_target_min": "enumerate_all_applicable", + "runtime_sql_skeleton": "WITH grouped AS (\n SELECT {group_col} AS value_label, COUNT(*) AS support\n FROM {table}\n GROUP BY {group_col}\n)\nSELECT\n value_label,\n support,\n CAST(support AS FLOAT) / NULLIF(SUM(support) OVER (), 0) AS support_share,\n ROW_NUMBER() OVER (ORDER BY support DESC, value_label) AS support_rank\nFROM grouped\nORDER BY support DESC, value_label;", + "notes": [ + "default_facets=support_concentration,value_imbalance_profile", + "template_selection_mode=deterministic", + "problem_index_within_template=4", + "sql_variant_index=1/1" + ], + "template_selection_mode": "deterministic", + "selected_template_rank": 0, + "problem_index_within_template": 4, + "sql_variant_index": 1, + "sql_variant_total": 1 + }, + "mode": "subitem_workload_v2", + "sql_source_version": "v2", + "sql_source_label": "v2_current", + "generated_sql_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/sql/v2q_n15_f7168f6e29d8f7f8.sql", + "usage_summary": { + "engine": "template", + "input_tokens": 0, + "cached_input_tokens": 0, + "output_tokens": 0, + "total_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "none" + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/usage_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/usage_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..96c9ff4feec395919fc26411d18d078b8af6e1c7 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f7168f6e29d8f7f8/usage_summary.json @@ -0,0 +1,9 @@ +{ + "engine": "template", + "input_tokens": 0, + "cached_input_tokens": 0, + "output_tokens": 0, + "total_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "none" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..d02cacd91127676d39b61eb50e49990d5e4fb70f --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:41.269565+00:00", + "ended_at": "2026-05-19T16:13:44.265082+00:00", + "elapsed_ms": 2995.48, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..ebfc3e30c31c3ffcd13aafd81dac5c41cc3d48dc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:45.267191+00:00", + "ended_at": "2026-05-19T16:13:48.384622+00:00", + "elapsed_ms": 3117.4, + "returncode": 1, + "prompt_metrics": { + "chars": 33162, + "bytes_utf8": 33162, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e3e9b9e33ffa5cc65042ecf7c589f769f3a1a90e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PWERKT, measure_col=MHKOOP.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PWERKT", + "measure_col": "MHKOOP", + "top_k": 13, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e3e9b9e33ffa5cc65042ecf7c589f769f3a1a90e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe slice_level_consistency with semantic role filtered_stable_view. Focus on group_col=PWERKT, measure_col=MHKOOP.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PWERKT", + "measure_col": "MHKOOP", + "top_k": 13, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 8.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..3666a429cb3b1fd1e471e00edfa56bfe8e79588e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-b113-76f0-bb54-f0b3791924cf"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e30e00ffa7836f484bdc5a2e2bc3ade7b713f333 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-b113-76f0-bb54-f0b3791924cf"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..1be03d9cf21529938c008d95b8cace1440ccc473 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-c0b9-7652-a883-3ac4f5910854"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..af2556aca8543be20fa5d1813e8b1bbfaef74356 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-c0b9-7652-a883-3ac4f5910854"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_f783303c77eda4bc/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..51390976f8bc8634a8f563def39fb94413497cda --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_1.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:33.618066+00:00", + "ended_at": "2026-05-19T16:13:36.886187+00:00", + "elapsed_ms": 3268.09, + "returncode": 1, + "prompt_metrics": { + "chars": 33167, + "bytes_utf8": 33167, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_2.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_2.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..094f1ee349c308160bbfe628c585b6fc2aed03b3 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_attempt_2.metadata.json @@ -0,0 +1,43 @@ +{ + "attempt": 2, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:13:37.889614+00:00", + "ended_at": "2026-05-19T16:13:41.259787+00:00", + "elapsed_ms": 3370.13, + "returncode": 1, + "prompt_metrics": { + "chars": 33167, + "bytes_utf8": 33167, + "lines": 1128, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 281, + "bytes_utf8": 281, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 280, + "bytes_utf8": 280, + "lines": 4, + "estimated_tokens": null + }, + "usage": {} + }, + "status": "failed", + "error": "AI CLI command failed with exit code 1: ", + "prompt_path": "cli/sql_prompt_attempt_2.txt", + "response_path": "cli/sql_response_attempt_2.txt", + "raw_response_path": "cli/sql_response_attempt_2.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_2.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6b630a570800b23b671061d0d332a2cab324aaac --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PTRACTOR, measure_col=MHHUUR.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PTRACTOR", + "measure_col": "MHHUUR", + "top_k": 17, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..6b630a570800b23b671061d0d332a2cab324aaac --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_prompt_attempt_2.txt @@ -0,0 +1,1128 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_window_partition_avg", + "template_name": "Window Partition Average", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "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;", + "required_roles": [ + "group_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Window Partition Average to probe direction_consistency with semantic role filtered_stable_view. Focus on group_col=PTRACTOR, measure_col=MHHUUR.", + "planned_template_id": "tpl_m4_window_partition_avg", + "bindings": { + "group_col": "PTRACTOR", + "measure_col": "MHHUUR", + "top_k": 17, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d61c3b98bdd50bb7fbf9bc2d7ebbedb7e2f433f6 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-933f-7221-987e-63361ad0405d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..069ac1619d19c9b7cdb2a93a180b026317a2a43d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_1.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-933f-7221-987e-63361ad0405d"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..d8d070dfb0a02f4be9b3d65729a23bdbcfde4d94 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-a3ee-7370-b6c1-2bda3a70f6bb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..abea7d9f375f9028e641bb38249aafd4260f91f5 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_response_attempt_2.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e4103-a3ee-7370-b6c1-2bda3a70f6bb"} +{"type":"turn.started"} +{"type":"error","message":"Quota exceeded. Check your plan and billing details."} +{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_stderr_attempt_2.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_faeb4b25b5e01dd6/cli/sql_stderr_attempt_2.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..82c5cb74f9c1fdffc51287bd3294cb7d4174373d --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33323, "bytes_utf8": 33323, "lines": 1131, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 410, "bytes_utf8": 410, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23074, "cached_input_tokens": 12032, "output_tokens": 340, "reasoning_output_tokens": 208}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..07d27cbecd8902f7ae1accdab1bdba45d32a2357 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_fb43419e131325dc", + "api_calls": 0, + "input_tokens": 23074, + "cached_input_tokens": 12032, + "output_tokens": 340, + "total_tokens": 23414, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 8297.54, + "sql_execution_elapsed_ms_total": 5.6, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..02d2533dbce71a17a01cb722d260d6ad6552b2f0 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T16:07:58.337692+00:00", + "ended_at": "2026-05-19T16:08:06.635259+00:00", + "elapsed_ms": 8297.54, + "prompt_metrics": { + "chars": 33323, + "bytes_utf8": 33323, + "lines": 1131, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 769, + "bytes_utf8": 769, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 410, + "bytes_utf8": 410, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23074, + "cached_input_tokens": 12032, + "output_tokens": 340, + "reasoning_output_tokens": 208 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..c4a100a96b48ce1ce3b9d8aac718fcff14ca947a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1131 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_m4_group_condition_rate", + "template_name": "Grouped Condition Rate", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;", + "required_roles": [ + "group_col", + "condition_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Grouped Condition Rate to probe direction_consistency with semantic role within_group_proportion. Focus on group_col=MOPLHOOG, condition_col=MRELSA.", + "planned_template_id": "tpl_m4_group_condition_rate", + "bindings": { + "group_col": "MOPLHOOG", + "condition_col": "MRELSA", + "condition_value": "2", + "positive_value": "1", + "negative_value": "2", + "top_k": 16, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 5.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col},\n AVG(CASE WHEN {condition_col} = {condition_value} THEN 1 ELSE 0 END) AS condition_rate\nFROM {table}\nGROUP BY {group_col}\nORDER BY condition_rate DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..27cc2cceade81cf39ced427e106ce3a8c4dd77ee --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40fe-757e-7232-92c7-4ecae7dd542b"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_m4_group_condition_rate\\nSELECT \\\"MOPLHOOG\\\",\\n AVG(CASE WHEN \\\"MRELSA\\\" = '2' THEN 1.0 ELSE 0.0 END) AS condition_rate\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MOPLHOOG\\\"\\nORDER BY condition_rate DESC;\",\"notes\":\"Uses the planned Grouped Condition Rate template with group_col=\\\"MOPLHOOG\\\" and condition_col=\\\"MRELSA\\\", computing the within-group proportion of rows where \\\"MRELSA\\\" = '2'.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23074,"cached_input_tokens":12032,"output_tokens":340,"reasoning_output_tokens":208}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6df890788c126b682fe3861744c3c6ba2261de20 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_m4_group_condition_rate\nSELECT \"MOPLHOOG\",\n AVG(CASE WHEN \"MRELSA\" = '2' THEN 1.0 ELSE 0.0 END) AS condition_rate\nFROM \"n15\"\nGROUP BY \"MOPLHOOG\"\nORDER BY condition_rate DESC;","notes":"Uses the planned Grouped Condition Rate template with group_col=\"MOPLHOOG\" and condition_col=\"MRELSA\", computing the within-group proportion of rows where \"MRELSA\" = '2'."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fb43419e131325dc/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ad8f5f1eb76ad66f6ec16df6270ac9737f7793f9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33484, "bytes_utf8": 33484, "lines": 1130, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 636, "bytes_utf8": 636, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23127, "cached_input_tokens": 12032, "output_tokens": 1547, "reasoning_output_tokens": 1348}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..c8c8805121bcfa335d96b3d9eaef04093268ebb8 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_fbd989d3533dfbf3", + "api_calls": 0, + "input_tokens": 23127, + "cached_input_tokens": 12032, + "output_tokens": 1547, + "total_tokens": 24674, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 27759.24, + "sql_execution_elapsed_ms_total": 9.41, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9e10067fcc10c139a03c72d05e532d55559d4d35 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:35:11.247439+00:00", + "ended_at": "2026-05-19T15:35:39.006723+00:00", + "elapsed_ms": 27759.24, + "prompt_metrics": { + "chars": 33484, + "bytes_utf8": 33484, + "lines": 1130, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 1020, + "bytes_utf8": 1020, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 636, + "bytes_utf8": 636, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23127, + "cached_input_tokens": 12032, + "output_tokens": 1547, + "reasoning_output_tokens": 1348 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..74e812e3932528cc145ce714f46cd2030b8c1a7a --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1130 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_tpcds_within_group_share", + "template_name": "Within-Group Share of Total", + "primary_family": "conditional_dependency_structure", + "portability": "partial", + "sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;", + "required_roles": [ + "group_col", + "item_col", + "measure_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Within-Group Share of Total to probe dependency_strength_similarity with semantic role within_group_proportion. Focus on group_col=MSKB1, measure_col=MSKB1.", + "planned_template_id": "tpl_tpcds_within_group_share", + "bindings": { + "group_col": "MSKB1", + "measure_col": "MSKB1", + "item_col": "MOSTYPE", + "top_k": 15, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.05, + "baseline_multiplier": 1.75, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 4, + "measure_threshold": 2.64, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "runtime_sql_skeleton": "SELECT {group_col}, {item_col},\n SUM({measure_col}) AS total_measure,\n SUM({measure_col}) * 100.0 / SUM(SUM({measure_col})) OVER (PARTITION BY {group_col}) AS share_within_group\nFROM {table}\nGROUP BY {group_col}, {item_col}\nORDER BY share_within_group DESC;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..ae9ad05c45957310a1518f0fad2aa96eb1168930 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e0-7187-71d3-b396-1723430fe1b8"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_tpcds_within_group_share.\\nSELECT\\n \\\"MSKB1\\\",\\n \\\"MOSTYPE\\\",\\n SUM(CAST(\\\"MSKB1\\\" AS REAL)) AS total_measure,\\n SUM(CAST(\\\"MSKB1\\\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\\\"MSKB1\\\" AS REAL))) OVER (PARTITION BY \\\"MSKB1\\\"), 0) AS share_within_group\\nFROM \\\"n15\\\"\\nGROUP BY \\\"MSKB1\\\", \\\"MOSTYPE\\\"\\nORDER BY share_within_group DESC;\",\"notes\":\"Uses the requested Within-Group Share of Total template with group_col=\\\"MSKB1\\\", item_col=\\\"MOSTYPE\\\", and measure_col=\\\"MSKB1\\\". CAST to REAL is applied because the schema stores these fields as TEXT, and NULLIF avoids division-by-zero for zero-valued groups.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23127,"cached_input_tokens":12032,"output_tokens":1547,"reasoning_output_tokens":1348}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..988a64f87773bf5017256f4acc1f889823ba4974 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_tpcds_within_group_share.\nSELECT\n \"MSKB1\",\n \"MOSTYPE\",\n SUM(CAST(\"MSKB1\" AS REAL)) AS total_measure,\n SUM(CAST(\"MSKB1\" AS REAL)) * 100.0 / NULLIF(SUM(SUM(CAST(\"MSKB1\" AS REAL))) OVER (PARTITION BY \"MSKB1\"), 0) AS share_within_group\nFROM \"n15\"\nGROUP BY \"MSKB1\", \"MOSTYPE\"\nORDER BY share_within_group DESC;","notes":"Uses the requested Within-Group Share of Total template with group_col=\"MSKB1\", item_col=\"MOSTYPE\", and measure_col=\"MSKB1\". CAST to REAL is applied because the schema stores these fields as TEXT, and NULLIF avoids division-by-zero for zero-valued groups."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fbd989d3533dfbf3/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/conversation.jsonl b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/conversation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e9a6a93c882d2653b63b7891c1006a93d27fe658 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/conversation.jsonl @@ -0,0 +1,2 @@ +{"attempt": 1, "phase": "sql_generation", "role": "user", "content_path": "cli/sql_prompt_attempt_1.txt", "metrics": {"chars": 33391, "bytes_utf8": 33391, "lines": 1132, "estimated_tokens": null}} +{"attempt": 1, "phase": "sql_generation", "role": "assistant", "content_path": "cli/sql_response_attempt_1.txt", "raw_content_path": "cli/sql_response_attempt_1.raw.txt", "stderr_path": "cli/sql_stderr_attempt_1.txt", "metrics": {"chars": 469, "bytes_utf8": 469, "lines": 1, "estimated_tokens": null}, "usage": {"input_tokens": 23099, "cached_input_tokens": 21888, "output_tokens": 395, "reasoning_output_tokens": 260}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/session_summary.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/session_summary.json new file mode 100644 index 0000000000000000000000000000000000000000..08a0658eacb89e6dd6dfe4a6000bfc8fd66b869e --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/session_summary.json @@ -0,0 +1,25 @@ +{ + "engine": "v2-cli:codex", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "ai_cli_calls": 1, + "usage_summary": { + "dataset_id": "n15", + "model": "v2-cli:codex", + "run_id": "v2q_n15_fc11624c9a152161", + "api_calls": 0, + "input_tokens": 23099, + "cached_input_tokens": 21888, + "output_tokens": 395, + "total_tokens": 23494, + "cost_usd": 0.0, + "ai_cli_calls": 1, + "estimated_input_tokens": 0, + "estimated_output_tokens": 0, + "estimated_total_tokens": 0, + "usage_source": "ai_cli_json_usage", + "cli_elapsed_ms_total": 9483.54, + "sql_execution_elapsed_ms_total": 7.14, + "conversation_log_path": "/data/jialinzhang/TabQueryBench/sql_workloads/v2_current/runs_and_launches/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/conversation.jsonl", + "note": "Executed through a local AI CLI with structured usage metadata." + } +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_attempt_1.metadata.json b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_attempt_1.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..e801ec41e7d3cf56edf40f2d482da5e34aa4a6e9 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_attempt_1.metadata.json @@ -0,0 +1,45 @@ +{ + "attempt": 1, + "phase": "sql_generation", + "command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -", + "started_at": "2026-05-19T15:45:05.193808+00:00", + "ended_at": "2026-05-19T15:45:14.677392+00:00", + "elapsed_ms": 9483.54, + "prompt_metrics": { + "chars": 33391, + "bytes_utf8": 33391, + "lines": 1132, + "estimated_tokens": null + }, + "stdout_metrics": { + "chars": 835, + "bytes_utf8": 835, + "lines": 4, + "estimated_tokens": null + }, + "stderr_metrics": { + "chars": 0, + "bytes_utf8": 0, + "lines": 0, + "estimated_tokens": null + }, + "parsed_output": { + "format": "jsonl_events", + "text_metrics": { + "chars": 469, + "bytes_utf8": 469, + "lines": 1, + "estimated_tokens": null + }, + "usage": { + "input_tokens": 23099, + "cached_input_tokens": 21888, + "output_tokens": 395, + "reasoning_output_tokens": 260 + } + }, + "prompt_path": "cli/sql_prompt_attempt_1.txt", + "response_path": "cli/sql_response_attempt_1.txt", + "raw_response_path": "cli/sql_response_attempt_1.raw.txt", + "stderr_path": "cli/sql_stderr_attempt_1.txt" +} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_prompt_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_prompt_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..270d4fdc4f74e525ab59369428a46a83b39d4e22 --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_prompt_attempt_1.txt @@ -0,0 +1,1132 @@ +You are generating one SQLite SELECT query for a single-table SQL QA task. +Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}. +Rules: +- Use only the provided table and columns. +- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM. +- Prefer the planned template and bound roles when provided. +- Add a leading SQL comment exactly like: -- template_id: . +- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV. +- Quote identifiers with double quotes. +- Return no markdown and no extra prose. + +Dataset context: +Dataset context for SQL QA: +- dataset_id: n15 +- dataset_name: N15 +- table_name: n15 +- table_layout: single-table dataset (do not assume joins). +- row_semantics: One row is one tabular observation with 85 feature columns and target `ABYSTAND`. +- task_type: classification +- target_column: ABYSTAND +- main_row_count: 9822 +- important_fields: +- MOSTYPE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSTYPE. +- MAANTHUI: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAANTHUI. +- MGEMOMV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMOMV. +- MGEMLEEF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGEMLEEF. +- MOSHOOFD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOSHOOFD. +- MGODRK: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODRK. +- MGODPR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODPR. +- MGODOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODOV. +- MGODGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MGODGE. +- MRELGE: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELGE. +- MRELSA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELSA. +- MRELOV: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MRELOV. +- MFALLEEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFALLEEN. +- MFGEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFGEKIND. +- MFWEKIND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MFWEKIND. +- MOPLHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLHOOG. +- MOPLMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLMIDD. +- MOPLLAAG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MOPLLAAG. +- MBERHOOG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERHOOG. +- MBERZELF: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERZELF. +- MBERBOER: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERBOER. +- MBERMIDD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERMIDD. +- MBERARBG: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBG. +- MBERARBO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MBERARBO. +- MSKA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKA. +- MSKB1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB1. +- MSKB2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKB2. +- MSKC: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKC. +- MSKD: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MSKD. +- MHHUUR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHHUUR. +- MHKOOP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MHKOOP. +- MAUT1: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT1. +- MAUT2: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT2. +- MAUT0: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MAUT0. +- MZFONDS: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZFONDS. +- MZPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MZPART. +- MINKM30: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKM30. +- MINK3045: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK3045. +- MINK4575: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK4575. +- MINK7512: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK7512. +- MINK123M: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINK123M. +- MINKGEM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MINKGEM. +- MKOOPKLA: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for MKOOPKLA. +- PWAPART: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWAPART. +- PWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWABEDR. +- PWALAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PWALAND. +- PPERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PPERSAUT. +- PBESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBESAUT. +- PMOTSCO: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PMOTSCO. +- PVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PVRAAUT. +- PAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PAANHANG. +- PTRACTOR: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PTRACTOR. +- PWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWERKT. +- PBROM: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBROM. +- PLEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PLEVEN. +- PPERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPERSONG. +- PGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PGEZONG. +- PWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PWAOREG. +- PBRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for PBRAND. +- PZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PZEILPL. +- PPLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PPLEZIER. +- PFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PFIETS. +- PINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PINBOED. +- PBYSTAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for PBYSTAND. +- AWAPART: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAPART. +- AWABEDR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWABEDR. +- AWALAND: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWALAND. +- APERSAUT: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for APERSAUT. +- ABESAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABESAUT. +- AMOTSCO: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AMOTSCO. +- AVRAAUT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AVRAAUT. +- AAANHANG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AAANHANG. +- ATRACTOR: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ATRACTOR. +- AWERKT: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWERKT. +- ABROM: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for ABROM. +- ALEVEN: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ALEVEN. +- APERSONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APERSONG. +- AGEZONG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AGEZONG. +- AWAOREG: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AWAOREG. +- ABRAND: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for ABRAND. +- AZEILPL: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AZEILPL. +- APLEZIER: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for APLEZIER. +- AFIETS: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AFIETS. +- AINBOED: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for AINBOED. +- ABYSTAND: role=target, type=binary_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for ABYSTAND. +- CARAVAN: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for CARAVAN. +- useful_field_combinations: [['MOSTYPE', 'MAANTHUI', 'ABYSTAND'], ['MOSTYPE', 'MOSTYPE', 'ABYSTAND']] +- fields_requiring_caution: ['ABYSTAND'] +- source_url: https://www.openml.org/d/298 + +SQLite schema snapshot: +{ + "table_name": "n15", + "quoted_table_name": "\"n15\"", + "row_count": 9822, + "columns": [ + { + "name": "MOSTYPE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAANTHUI", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMOMV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGEMLEEF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOSHOOFD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODRK", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODPR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MGODGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELGE", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELSA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MRELOV", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFALLEEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFGEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MFWEKIND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MOPLLAAG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERHOOG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERZELF", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERBOER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERMIDD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MBERARBO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKB2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKC", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MSKD", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHHUUR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MHKOOP", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT1", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT2", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MAUT0", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZFONDS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MZPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKM30", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK3045", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK4575", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK7512", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINK123M", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MINKGEM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "MKOOPKLA", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PTRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PLEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PPLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "PBYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAPART", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWABEDR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWALAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABESAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AMOTSCO", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AVRAAUT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AAANHANG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ATRACTOR", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWERKT", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABROM", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ALEVEN", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APERSONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AGEZONG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AWAOREG", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABRAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AZEILPL", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "APLEZIER", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AFIETS", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "AINBOED", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "ABYSTAND", + "type": "TEXT", + "notnull": false, + "pk": false + }, + { + "name": "CARAVAN", + "type": "TEXT", + "notnull": false, + "pk": false + } + ], + "sample_rows": [ + { + "MOSTYPE": "33", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "5", + "MGODOV": "1", + "MGODGE": "3", + "MRELGE": "7", + "MRELSA": "0", + "MRELOV": "2", + "MFALLEEN": "1", + "MFGEKIND": "2", + "MFWEKIND": "6", + "MOPLHOOG": "1", + "MOPLMIDD": "2", + "MOPLLAAG": "7", + "MBERHOOG": "1", + "MBERZELF": "0", + "MBERBOER": "1", + "MBERMIDD": "2", + "MBERARBG": "5", + "MBERARBO": "2", + "MSKA": "1", + "MSKB1": "1", + "MSKB2": "2", + "MSKC": "6", + "MSKD": "1", + "MHHUUR": "1", + "MHKOOP": "8", + "MAUT1": "8", + "MAUT2": "0", + "MAUT0": "1", + "MZFONDS": "8", + "MZPART": "1", + "MINKM30": "0", + "MINK3045": "4", + "MINK4575": "5", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "5", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "6", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "0", + "MFGEKIND": "4", + "MFWEKIND": "5", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "5", + "MBERARBG": "0", + "MBERARBO": "4", + "MSKA": "0", + "MSKB1": "2", + "MSKB2": "3", + "MSKC": "5", + "MSKD": "0", + "MHHUUR": "2", + "MHKOOP": "7", + "MAUT1": "7", + "MAUT2": "1", + "MAUT0": "2", + "MZFONDS": "6", + "MZPART": "3", + "MINKM30": "2", + "MINK3045": "0", + "MINK4575": "5", + "MINK7512": "2", + "MINK123M": "0", + "MINKGEM": "5", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "2", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "37", + "MAANTHUI": "1", + "MGEMOMV": "2", + "MGEMLEEF": "2", + "MOSHOOFD": "8", + "MGODRK": "0", + "MGODPR": "4", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "3", + "MRELSA": "2", + "MRELOV": "4", + "MFALLEEN": "4", + "MFGEKIND": "4", + "MFWEKIND": "2", + "MOPLHOOG": "0", + "MOPLMIDD": "5", + "MOPLLAAG": "4", + "MBERHOOG": "0", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "7", + "MBERARBG": "0", + "MBERARBO": "2", + "MSKA": "0", + "MSKB1": "5", + "MSKB2": "0", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "7", + "MHKOOP": "2", + "MAUT1": "7", + "MAUT2": "0", + "MAUT0": "2", + "MZFONDS": "9", + "MZPART": "0", + "MINKM30": "4", + "MINK3045": "5", + "MINK4575": "0", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "3", + "MKOOPKLA": "4", + "PWAPART": "2", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "1", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "9", + "MAANTHUI": "1", + "MGEMOMV": "3", + "MGEMLEEF": "3", + "MOSHOOFD": "3", + "MGODRK": "2", + "MGODPR": "3", + "MGODOV": "2", + "MGODGE": "4", + "MRELGE": "5", + "MRELSA": "2", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "3", + "MFWEKIND": "4", + "MOPLHOOG": "3", + "MOPLMIDD": "4", + "MOPLLAAG": "2", + "MBERHOOG": "4", + "MBERZELF": "0", + "MBERBOER": "0", + "MBERMIDD": "3", + "MBERARBG": "1", + "MBERARBO": "2", + "MSKA": "3", + "MSKB1": "2", + "MSKB2": "1", + "MSKC": "4", + "MSKD": "0", + "MHHUUR": "5", + "MHKOOP": "4", + "MAUT1": "9", + "MAUT2": "0", + "MAUT0": "0", + "MZFONDS": "7", + "MZPART": "2", + "MINKM30": "1", + "MINK3045": "5", + "MINK4575": "3", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "4", + "MKOOPKLA": "4", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "6", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "2", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "1", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + }, + { + "MOSTYPE": "40", + "MAANTHUI": "1", + "MGEMOMV": "4", + "MGEMLEEF": "2", + "MOSHOOFD": "10", + "MGODRK": "1", + "MGODPR": "4", + "MGODOV": "1", + "MGODGE": "4", + "MRELGE": "7", + "MRELSA": "1", + "MRELOV": "2", + "MFALLEEN": "2", + "MFGEKIND": "4", + "MFWEKIND": "4", + "MOPLHOOG": "5", + "MOPLMIDD": "4", + "MOPLLAAG": "0", + "MBERHOOG": "0", + "MBERZELF": "5", + "MBERBOER": "4", + "MBERMIDD": "0", + "MBERARBG": "0", + "MBERARBO": "0", + "MSKA": "9", + "MSKB1": "0", + "MSKB2": "0", + "MSKC": "0", + "MSKD": "0", + "MHHUUR": "4", + "MHKOOP": "5", + "MAUT1": "6", + "MAUT2": "2", + "MAUT0": "1", + "MZFONDS": "5", + "MZPART": "4", + "MINKM30": "0", + "MINK3045": "0", + "MINK4575": "9", + "MINK7512": "0", + "MINK123M": "0", + "MINKGEM": "6", + "MKOOPKLA": "3", + "PWAPART": "0", + "PWABEDR": "0", + "PWALAND": "0", + "PPERSAUT": "0", + "PBESAUT": "0", + "PMOTSCO": "0", + "PVRAAUT": "0", + "PAANHANG": "0", + "PTRACTOR": "0", + "PWERKT": "0", + "PBROM": "0", + "PLEVEN": "0", + "PPERSONG": "0", + "PGEZONG": "0", + "PWAOREG": "0", + "PBRAND": "6", + "PZEILPL": "0", + "PPLEZIER": "0", + "PFIETS": "0", + "PINBOED": "0", + "PBYSTAND": "0", + "AWAPART": "0", + "AWABEDR": "0", + "AWALAND": "0", + "APERSAUT": "0", + "ABESAUT": "0", + "AMOTSCO": "0", + "AVRAAUT": "0", + "AAANHANG": "0", + "ATRACTOR": "0", + "AWERKT": "0", + "ABROM": "0", + "ALEVEN": "0", + "APERSONG": "0", + "AGEZONG": "0", + "AWAOREG": "0", + "ABRAND": "1", + "AZEILPL": "0", + "APLEZIER": "0", + "AFIETS": "0", + "AINBOED": "0", + "ABYSTAND": "0", + "CARAVAN": "0" + } + ] +} + +Shortlisted templates: +[ + { + "template_id": "tpl_c2_filtered_group_count_2d", + "template_name": "Filtered Two-Dimensional Group Count", + "primary_family": "conditional_dependency_structure", + "portability": "yes", + "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;", + "required_roles": [ + "group_col", + "group_col_2", + "predicate_col" + ] + } +] + +Problem instance: +{ + "dataset_id": "n15", + "question": "Use template Filtered Two-Dimensional Group Count to probe slice_level_consistency with semantic role count_distribution. Focus on group_col=MOSTYPE, group_col_2=PTRACTOR.", + "planned_template_id": "tpl_c2_filtered_group_count_2d", + "bindings": { + "group_col": "MOSTYPE", + "group_col_2": "PTRACTOR", + "predicate_col": "PAANHANG", + "predicate_op": "=", + "predicate_value": "0", + "top_k": 10, + "top_n": 5, + "num_tiles": 10, + "percentile_value": 0.95, + "z_threshold": 2.0, + "fraction_threshold": 0.1, + "baseline_multiplier": 1.5, + "baseline_fraction": 0.1, + "min_group_size": 5, + "min_support": 5, + "measure_threshold": 4.0, + "time_grain": "month", + "lookback_rows": 3, + "current_period_start": "'2024-01-01'", + "current_period_end": "'2024-04-01'", + "previous_period_start": "'2023-10-01'", + "previous_period_end": "'2024-01-01'", + "drift_ratio_threshold": 0.8 + }, + "can_vary": [], + "must_fix": [], + "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;" +} + +Repair context: +{} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.raw.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.raw.txt new file mode 100644 index 0000000000000000000000000000000000000000..8bc81ac2b648c5959a773d2d3b7e42a27953f2fc --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.raw.txt @@ -0,0 +1,4 @@ +{"type":"thread.started","thread_id":"019e40e9-81c5-7501-ab98-20178c609349"} +{"type":"turn.started"} +{"type":"item.completed","item":{"id":"item_0","type":"agent_message","text":"{\"sql\":\"-- template_id: tpl_c2_filtered_group_count_2d\\nSELECT\\n \\\"MOSTYPE\\\",\\n \\\"PTRACTOR\\\",\\n COUNT(*) AS \\\"row_count\\\"\\nFROM \\\"n15\\\"\\nWHERE \\\"PAANHANG\\\" = '0'\\nGROUP BY \\\"MOSTYPE\\\", \\\"PTRACTOR\\\"\\nORDER BY \\\"row_count\\\" DESC;\",\"notes\":\"Uses the planned filtered two-dimensional group count template with group columns MOSTYPE and PTRACTOR, filtered to rows where PAANHANG = '0'. Text literal quoting is used because the SQLite schema stores these fields as TEXT.\"}"}} +{"type":"turn.completed","usage":{"input_tokens":23099,"cached_input_tokens":21888,"output_tokens":395,"reasoning_output_tokens":260}} diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..ab5324f9b38a1b79edd7b9b0ad5e6ca009a960cf --- /dev/null +++ b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_response_attempt_1.txt @@ -0,0 +1 @@ +{"sql":"-- template_id: tpl_c2_filtered_group_count_2d\nSELECT\n \"MOSTYPE\",\n \"PTRACTOR\",\n COUNT(*) AS \"row_count\"\nFROM \"n15\"\nWHERE \"PAANHANG\" = '0'\nGROUP BY \"MOSTYPE\", \"PTRACTOR\"\nORDER BY \"row_count\" DESC;","notes":"Uses the planned filtered two-dimensional group count template with group columns MOSTYPE and PTRACTOR, filtered to rows where PAANHANG = '0'. Text literal quoting is used because the SQLite schema stores these fields as TEXT."} \ No newline at end of file diff --git a/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_stderr_attempt_1.txt b/Query/sql/v2/runs/v2_cli_20260502_081223_b/n15/artifacts/v2q_n15_fc11624c9a152161/cli/sql_stderr_attempt_1.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391