Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_attempt_1.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_attempt_2.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_prompt_attempt_1.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_prompt_attempt_2.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_1.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_1.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_2.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_2.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_stderr_attempt_1.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_stderr_attempt_2.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_attempt_1.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_attempt_2.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_prompt_attempt_1.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_prompt_attempt_2.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_1.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_1.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_2.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_2.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_stderr_attempt_1.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_stderr_attempt_2.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_attempt_1.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_attempt_2.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_prompt_attempt_1.txt +540 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_prompt_attempt_2.txt +540 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_1.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_1.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_2.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_2.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_stderr_attempt_1.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_stderr_attempt_2.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_attempt_1.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_attempt_2.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_prompt_attempt_1.txt +540 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_prompt_attempt_2.txt +540 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_1.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_1.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_2.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_2.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_stderr_attempt_1.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_stderr_attempt_2.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_attempt_1.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_attempt_2.metadata.json +43 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_prompt_attempt_1.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_prompt_attempt_2.txt +538 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_1.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_1.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_2.raw.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_2.txt +4 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_stderr_attempt_1.txt +0 -0
- Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_stderr_attempt_2.txt +0 -0
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_attempt_1.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 1,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:15:33.662471+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:15:36.445233+00:00",
|
| 7 |
+
"elapsed_ms": 2782.74,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21129,
|
| 11 |
+
"bytes_utf8": 21129,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_1.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_1.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_1.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_1.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_attempt_2.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 2,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:15:37.447308+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:15:41.242494+00:00",
|
| 7 |
+
"elapsed_ms": 3795.15,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21129,
|
| 11 |
+
"bytes_utf8": 21129,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_2.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_2.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_2.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_2.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_prompt_attempt_1.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_m4_quantile_tail_slice",
|
| 496 |
+
"template_name": "Quantile Tail Slice",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "partial",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"measure_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=Admission grade.",
|
| 510 |
+
"planned_template_id": "tpl_m4_quantile_tail_slice",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"measure_col": "Admission grade",
|
| 513 |
+
"top_k": 12,
|
| 514 |
+
"top_n": 6,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.9,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.1,
|
| 519 |
+
"baseline_multiplier": 1.5,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 5,
|
| 523 |
+
"measure_threshold": 134.8,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"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;"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_prompt_attempt_2.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_m4_quantile_tail_slice",
|
| 496 |
+
"template_name": "Quantile Tail Slice",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "partial",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"measure_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Quantile Tail Slice to probe tail_set_consistency with semantic role rare_extreme_view. Focus on measure_col=Admission grade.",
|
| 510 |
+
"planned_template_id": "tpl_m4_quantile_tail_slice",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"measure_col": "Admission grade",
|
| 513 |
+
"top_k": 12,
|
| 514 |
+
"top_n": 6,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.9,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.1,
|
| 519 |
+
"baseline_multiplier": 1.5,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 5,
|
| 523 |
+
"measure_threshold": 134.8,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"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;"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_1.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4105-681b-75b1-bee2-e26e737af3f7"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_1.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4105-681b-75b1-bee2-e26e737af3f7"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_2.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4105-76da-76f3-806e-9df43fe67e00"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_response_attempt_2.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4105-76da-76f3-806e-9df43fe67e00"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_stderr_attempt_1.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00914051956d6447/cli/sql_stderr_attempt_2.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_attempt_1.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 1,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:26:22.344290+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:26:26.001798+00:00",
|
| 7 |
+
"elapsed_ms": 3657.46,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 20988,
|
| 11 |
+
"bytes_utf8": 20988,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_1.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_1.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_1.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_1.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_attempt_2.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 2,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:26:27.007091+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:26:30.273558+00:00",
|
| 7 |
+
"elapsed_ms": 3266.39,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 20988,
|
| 11 |
+
"bytes_utf8": 20988,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_2.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_2.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_2.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_2.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_prompt_attempt_1.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_tail_low_support_group_count_v2",
|
| 496 |
+
"template_name": "Low-Support Group Count",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"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};",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=Curricular units 1st sem (approved).",
|
| 510 |
+
"planned_template_id": "tpl_tail_low_support_group_count_v2",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"group_col": "Curricular units 1st sem (approved)",
|
| 513 |
+
"top_k": 16,
|
| 514 |
+
"top_n": 5,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.95,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.05,
|
| 519 |
+
"baseline_multiplier": 1.75,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 4,
|
| 523 |
+
"measure_threshold": 9.0,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"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};"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_prompt_attempt_2.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_tail_low_support_group_count_v2",
|
| 496 |
+
"template_name": "Low-Support Group Count",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"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};",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Low-Support Group Count to probe tail_mass_similarity with semantic role rare_extreme_view. Focus on group_col=Curricular units 1st sem (approved).",
|
| 510 |
+
"planned_template_id": "tpl_tail_low_support_group_count_v2",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"group_col": "Curricular units 1st sem (approved)",
|
| 513 |
+
"top_k": 16,
|
| 514 |
+
"top_n": 5,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.95,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.05,
|
| 519 |
+
"baseline_multiplier": 1.75,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 4,
|
| 523 |
+
"measure_threshold": 9.0,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"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};"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_1.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e410f-4e92-7d90-8b3e-3b2db7b28e81"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_1.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e410f-4e92-7d90-8b3e-3b2db7b28e81"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_2.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e410f-60bf-79f1-abd1-80de1ecc1d4f"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_response_attempt_2.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e410f-60bf-79f1-abd1-80de1ecc1d4f"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_stderr_attempt_1.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_00f186cf319e5798/cli/sql_stderr_attempt_2.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_attempt_1.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 1,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:20:13.242259+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:20:16.460257+00:00",
|
| 7 |
+
"elapsed_ms": 3217.98,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21204,
|
| 11 |
+
"bytes_utf8": 21204,
|
| 12 |
+
"lines": 540,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_1.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_1.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_1.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_1.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_attempt_2.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 2,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:20:17.461895+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:20:20.310332+00:00",
|
| 7 |
+
"elapsed_ms": 2848.41,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21204,
|
| 11 |
+
"bytes_utf8": 21204,
|
| 12 |
+
"lines": 540,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_2.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_2.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_2.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_2.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_prompt_attempt_1.txt
ADDED
|
@@ -0,0 +1,540 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_grouped_percentile_point",
|
| 496 |
+
"template_name": "Grouped Percentile Point",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col",
|
| 502 |
+
"measure_col"
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
|
| 507 |
+
Problem instance:
|
| 508 |
+
{
|
| 509 |
+
"dataset_id": "m5",
|
| 510 |
+
"question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=Curricular units 1st sem (approved), measure_col=Previous qualification.",
|
| 511 |
+
"planned_template_id": "tpl_grouped_percentile_point",
|
| 512 |
+
"bindings": {
|
| 513 |
+
"group_col": "Curricular units 1st sem (approved)",
|
| 514 |
+
"measure_col": "Previous qualification",
|
| 515 |
+
"top_k": 18,
|
| 516 |
+
"top_n": 4,
|
| 517 |
+
"num_tiles": 10,
|
| 518 |
+
"percentile_value": 0.9,
|
| 519 |
+
"z_threshold": 2.0,
|
| 520 |
+
"fraction_threshold": 0.05,
|
| 521 |
+
"baseline_multiplier": 1.75,
|
| 522 |
+
"baseline_fraction": 0.1,
|
| 523 |
+
"min_group_size": 5,
|
| 524 |
+
"min_support": 4,
|
| 525 |
+
"measure_threshold": 1.0,
|
| 526 |
+
"time_grain": "month",
|
| 527 |
+
"lookback_rows": 3,
|
| 528 |
+
"current_period_start": "'2024-01-01'",
|
| 529 |
+
"current_period_end": "'2024-04-01'",
|
| 530 |
+
"previous_period_start": "'2023-10-01'",
|
| 531 |
+
"previous_period_end": "'2024-01-01'",
|
| 532 |
+
"drift_ratio_threshold": 0.8
|
| 533 |
+
},
|
| 534 |
+
"can_vary": [],
|
| 535 |
+
"must_fix": [],
|
| 536 |
+
"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;"
|
| 537 |
+
}
|
| 538 |
+
|
| 539 |
+
Repair context:
|
| 540 |
+
{}
|
Query/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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_grouped_percentile_point",
|
| 496 |
+
"template_name": "Grouped Percentile Point",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col",
|
| 502 |
+
"measure_col"
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
|
| 507 |
+
Problem instance:
|
| 508 |
+
{
|
| 509 |
+
"dataset_id": "m5",
|
| 510 |
+
"question": "Use template Grouped Percentile Point to probe tail_concentration_consistency with semantic role ranked_signal_view. Focus on group_col=Curricular units 1st sem (approved), measure_col=Previous qualification.",
|
| 511 |
+
"planned_template_id": "tpl_grouped_percentile_point",
|
| 512 |
+
"bindings": {
|
| 513 |
+
"group_col": "Curricular units 1st sem (approved)",
|
| 514 |
+
"measure_col": "Previous qualification",
|
| 515 |
+
"top_k": 18,
|
| 516 |
+
"top_n": 4,
|
| 517 |
+
"num_tiles": 10,
|
| 518 |
+
"percentile_value": 0.9,
|
| 519 |
+
"z_threshold": 2.0,
|
| 520 |
+
"fraction_threshold": 0.05,
|
| 521 |
+
"baseline_multiplier": 1.75,
|
| 522 |
+
"baseline_fraction": 0.1,
|
| 523 |
+
"min_group_size": 5,
|
| 524 |
+
"min_support": 4,
|
| 525 |
+
"measure_threshold": 1.0,
|
| 526 |
+
"time_grain": "month",
|
| 527 |
+
"lookback_rows": 3,
|
| 528 |
+
"current_period_start": "'2024-01-01'",
|
| 529 |
+
"current_period_end": "'2024-04-01'",
|
| 530 |
+
"previous_period_start": "'2023-10-01'",
|
| 531 |
+
"previous_period_end": "'2024-01-01'",
|
| 532 |
+
"drift_ratio_threshold": 0.8
|
| 533 |
+
},
|
| 534 |
+
"can_vary": [],
|
| 535 |
+
"must_fix": [],
|
| 536 |
+
"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;"
|
| 537 |
+
}
|
| 538 |
+
|
| 539 |
+
Repair context:
|
| 540 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_1.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4109-ac24-7d91-9045-613235eac723"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_1.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4109-ac24-7d91-9045-613235eac723"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_2.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4109-bcd4-7c60-8526-402ba2ca769b"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_response_attempt_2.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4109-bcd4-7c60-8526-402ba2ca769b"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_stderr_attempt_1.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_045be7ae4477d27f/cli/sql_stderr_attempt_2.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_attempt_1.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 1,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:16:24.938883+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:16:28.982055+00:00",
|
| 7 |
+
"elapsed_ms": 4043.07,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21601,
|
| 11 |
+
"bytes_utf8": 21601,
|
| 12 |
+
"lines": 540,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_1.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_1.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_1.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_1.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_attempt_2.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 2,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:16:29.985552+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:16:34.712612+00:00",
|
| 7 |
+
"elapsed_ms": 4726.99,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 21601,
|
| 11 |
+
"bytes_utf8": 21601,
|
| 12 |
+
"lines": 540,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_2.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_2.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_2.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_2.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_prompt_attempt_1.txt
ADDED
|
@@ -0,0 +1,540 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_tpch_relative_total_threshold",
|
| 496 |
+
"template_name": "Relative-to-Total Extreme Threshold",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "partial",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col",
|
| 502 |
+
"measure_col"
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
|
| 507 |
+
Problem instance:
|
| 508 |
+
{
|
| 509 |
+
"dataset_id": "m5",
|
| 510 |
+
"question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=Father's qualification, measure_col=Curricular units 1st sem (without evaluations).",
|
| 511 |
+
"planned_template_id": "tpl_tpch_relative_total_threshold",
|
| 512 |
+
"bindings": {
|
| 513 |
+
"group_col": "Father's qualification",
|
| 514 |
+
"measure_col": "Curricular units 1st sem (without evaluations)",
|
| 515 |
+
"top_k": 14,
|
| 516 |
+
"top_n": 5,
|
| 517 |
+
"num_tiles": 10,
|
| 518 |
+
"percentile_value": 0.95,
|
| 519 |
+
"z_threshold": 2.0,
|
| 520 |
+
"fraction_threshold": 0.1,
|
| 521 |
+
"baseline_multiplier": 1.5,
|
| 522 |
+
"baseline_fraction": 0.1,
|
| 523 |
+
"min_group_size": 5,
|
| 524 |
+
"min_support": 5,
|
| 525 |
+
"measure_threshold": 0.0,
|
| 526 |
+
"time_grain": "month",
|
| 527 |
+
"lookback_rows": 3,
|
| 528 |
+
"current_period_start": "'2024-01-01'",
|
| 529 |
+
"current_period_end": "'2024-04-01'",
|
| 530 |
+
"previous_period_start": "'2023-10-01'",
|
| 531 |
+
"previous_period_end": "'2024-01-01'",
|
| 532 |
+
"drift_ratio_threshold": 0.8
|
| 533 |
+
},
|
| 534 |
+
"can_vary": [],
|
| 535 |
+
"must_fix": [],
|
| 536 |
+
"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;"
|
| 537 |
+
}
|
| 538 |
+
|
| 539 |
+
Repair context:
|
| 540 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_prompt_attempt_2.txt
ADDED
|
@@ -0,0 +1,540 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_tpch_relative_total_threshold",
|
| 496 |
+
"template_name": "Relative-to-Total Extreme Threshold",
|
| 497 |
+
"primary_family": "tail_rarity_structure",
|
| 498 |
+
"portability": "partial",
|
| 499 |
+
"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;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col",
|
| 502 |
+
"measure_col"
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
|
| 507 |
+
Problem instance:
|
| 508 |
+
{
|
| 509 |
+
"dataset_id": "m5",
|
| 510 |
+
"question": "Use template Relative-to-Total Extreme Threshold to probe tail_mass_similarity with semantic role count_distribution. Focus on group_col=Father's qualification, measure_col=Curricular units 1st sem (without evaluations).",
|
| 511 |
+
"planned_template_id": "tpl_tpch_relative_total_threshold",
|
| 512 |
+
"bindings": {
|
| 513 |
+
"group_col": "Father's qualification",
|
| 514 |
+
"measure_col": "Curricular units 1st sem (without evaluations)",
|
| 515 |
+
"top_k": 14,
|
| 516 |
+
"top_n": 5,
|
| 517 |
+
"num_tiles": 10,
|
| 518 |
+
"percentile_value": 0.95,
|
| 519 |
+
"z_threshold": 2.0,
|
| 520 |
+
"fraction_threshold": 0.1,
|
| 521 |
+
"baseline_multiplier": 1.5,
|
| 522 |
+
"baseline_fraction": 0.1,
|
| 523 |
+
"min_group_size": 5,
|
| 524 |
+
"min_support": 5,
|
| 525 |
+
"measure_threshold": 0.0,
|
| 526 |
+
"time_grain": "month",
|
| 527 |
+
"lookback_rows": 3,
|
| 528 |
+
"current_period_start": "'2024-01-01'",
|
| 529 |
+
"current_period_end": "'2024-04-01'",
|
| 530 |
+
"previous_period_start": "'2023-10-01'",
|
| 531 |
+
"previous_period_end": "'2024-01-01'",
|
| 532 |
+
"drift_ratio_threshold": 0.8
|
| 533 |
+
},
|
| 534 |
+
"can_vary": [],
|
| 535 |
+
"must_fix": [],
|
| 536 |
+
"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;"
|
| 537 |
+
}
|
| 538 |
+
|
| 539 |
+
Repair context:
|
| 540 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_1.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4106-30e5-7f90-b360-9d910366718e"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_1.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4106-30e5-7f90-b360-9d910366718e"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_2.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4106-448c-78b3-b483-a17bb3b227e7"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_response_attempt_2.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e4106-448c-78b3-b483-a17bb3b227e7"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_stderr_attempt_1.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_0535442dfb9736a9/cli/sql_stderr_attempt_2.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_attempt_1.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 1,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:09:21.197740+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:09:24.379715+00:00",
|
| 7 |
+
"elapsed_ms": 3181.95,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 20871,
|
| 11 |
+
"bytes_utf8": 20871,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_1.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_1.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_1.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_1.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_attempt_2.metadata.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attempt": 2,
|
| 3 |
+
"phase": "sql_generation",
|
| 4 |
+
"command": "codex exec --skip-git-repo-check --disable plugins --sandbox read-only --cd \"/data/jialinzhang/SQLagent\" -m gpt-5.4 --json -",
|
| 5 |
+
"started_at": "2026-05-19T16:09:25.383107+00:00",
|
| 6 |
+
"ended_at": "2026-05-19T16:09:28.469231+00:00",
|
| 7 |
+
"elapsed_ms": 3086.08,
|
| 8 |
+
"returncode": 1,
|
| 9 |
+
"prompt_metrics": {
|
| 10 |
+
"chars": 20871,
|
| 11 |
+
"bytes_utf8": 20871,
|
| 12 |
+
"lines": 538,
|
| 13 |
+
"estimated_tokens": null
|
| 14 |
+
},
|
| 15 |
+
"stdout_metrics": {
|
| 16 |
+
"chars": 281,
|
| 17 |
+
"bytes_utf8": 281,
|
| 18 |
+
"lines": 4,
|
| 19 |
+
"estimated_tokens": null
|
| 20 |
+
},
|
| 21 |
+
"stderr_metrics": {
|
| 22 |
+
"chars": 0,
|
| 23 |
+
"bytes_utf8": 0,
|
| 24 |
+
"lines": 0,
|
| 25 |
+
"estimated_tokens": null
|
| 26 |
+
},
|
| 27 |
+
"parsed_output": {
|
| 28 |
+
"format": "jsonl_events",
|
| 29 |
+
"text_metrics": {
|
| 30 |
+
"chars": 280,
|
| 31 |
+
"bytes_utf8": 280,
|
| 32 |
+
"lines": 4,
|
| 33 |
+
"estimated_tokens": null
|
| 34 |
+
},
|
| 35 |
+
"usage": {}
|
| 36 |
+
},
|
| 37 |
+
"status": "failed",
|
| 38 |
+
"error": "AI CLI command failed with exit code 1: ",
|
| 39 |
+
"prompt_path": "cli/sql_prompt_attempt_2.txt",
|
| 40 |
+
"response_path": "cli/sql_response_attempt_2.txt",
|
| 41 |
+
"raw_response_path": "cli/sql_response_attempt_2.raw.txt",
|
| 42 |
+
"stderr_path": "cli/sql_stderr_attempt_2.txt"
|
| 43 |
+
}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_prompt_attempt_1.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_clickbench_group_count",
|
| 496 |
+
"template_name": "Grouped Count by Category",
|
| 497 |
+
"primary_family": "subgroup_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=Age at enrollment.",
|
| 510 |
+
"planned_template_id": "tpl_clickbench_group_count",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"group_col": "Age at enrollment",
|
| 513 |
+
"top_k": 12,
|
| 514 |
+
"top_n": 4,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.9,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.1,
|
| 519 |
+
"baseline_multiplier": 1.5,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 5,
|
| 523 |
+
"measure_threshold": 13.4,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_prompt_attempt_2.txt
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are generating one SQLite SELECT query for a single-table SQL QA task.
|
| 2 |
+
Return strict JSON only, with this schema: {"sql": "...", "notes": "..."}.
|
| 3 |
+
Rules:
|
| 4 |
+
- Use only the provided table and columns.
|
| 5 |
+
- Do not write INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, PRAGMA, ATTACH, DETACH, or VACUUM.
|
| 6 |
+
- Prefer the planned template and bound roles when provided.
|
| 7 |
+
- Add a leading SQL comment exactly like: -- template_id: <planned_template_id>.
|
| 8 |
+
- Generate SQLite-compatible SQL. SQLite does not support PERCENTILE_CONT or STDDEV.
|
| 9 |
+
- Quote identifiers with double quotes.
|
| 10 |
+
- Return no markdown and no extra prose.
|
| 11 |
+
|
| 12 |
+
Dataset context:
|
| 13 |
+
Dataset context for SQL QA:
|
| 14 |
+
- dataset_id: m5
|
| 15 |
+
- dataset_name: Predict Students Dropout And Academic Success
|
| 16 |
+
- table_name: m5
|
| 17 |
+
- table_layout: single-table dataset (do not assume joins).
|
| 18 |
+
- row_semantics: One row is one tabular observation with 36 feature columns and target `Target`.
|
| 19 |
+
- task_type: classification
|
| 20 |
+
- target_column: Target
|
| 21 |
+
- main_row_count: 4424
|
| 22 |
+
- important_fields:
|
| 23 |
+
- Marital status: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Marital status.
|
| 24 |
+
- Application mode: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application mode.
|
| 25 |
+
- Application order: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Application order.
|
| 26 |
+
- Course: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Course.
|
| 27 |
+
- Daytime/evening attendance: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Daytime/evening attendance.
|
| 28 |
+
- Previous qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Previous qualification.
|
| 29 |
+
- Previous qualification (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure'] desc=Numeric field for Previous qualification (grade).
|
| 30 |
+
- Nacionality: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Nacionality.
|
| 31 |
+
- Mother's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's qualification.
|
| 32 |
+
- Father's qualification: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's qualification.
|
| 33 |
+
- Mother's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Mother's occupation.
|
| 34 |
+
- Father's occupation: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Father's occupation.
|
| 35 |
+
- Admission grade: role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Admission grade.
|
| 36 |
+
- Displaced: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Displaced.
|
| 37 |
+
- Educational special needs: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Educational special needs.
|
| 38 |
+
- Debtor: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Debtor.
|
| 39 |
+
- Tuition fees up to date: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Tuition fees up to date.
|
| 40 |
+
- Gender: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Gender.
|
| 41 |
+
- Scholarship holder: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for Scholarship holder.
|
| 42 |
+
- Age at enrollment: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Age at enrollment.
|
| 43 |
+
- International: role=feature, type=categorical_binary. tags=['subgroup_candidate', 'condition_candidate'] desc=Categorical field for International.
|
| 44 |
+
- Curricular units 1st sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (credited).
|
| 45 |
+
- Curricular units 1st sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (enrolled).
|
| 46 |
+
- Curricular units 1st sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (evaluations).
|
| 47 |
+
- Curricular units 1st sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (approved).
|
| 48 |
+
- Curricular units 1st sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 1st sem (grade).
|
| 49 |
+
- Curricular units 1st sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 1st sem (without evaluations).
|
| 50 |
+
- Curricular units 2nd sem (credited): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (credited).
|
| 51 |
+
- Curricular units 2nd sem (enrolled): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (enrolled).
|
| 52 |
+
- Curricular units 2nd sem (evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (evaluations).
|
| 53 |
+
- Curricular units 2nd sem (approved): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (approved).
|
| 54 |
+
- Curricular units 2nd sem (grade): role=feature, type=numeric. tags=['condition_candidate', 'measure', 'high_cardinality_candidate'] desc=Numeric field for Curricular units 2nd sem (grade).
|
| 55 |
+
- Curricular units 2nd sem (without evaluations): role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Curricular units 2nd sem (without evaluations).
|
| 56 |
+
- Unemployment rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Unemployment rate.
|
| 57 |
+
- Inflation rate: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for Inflation rate.
|
| 58 |
+
- GDP: role=feature, type=numeric_discrete. tags=['subgroup_candidate', 'condition_candidate', 'measure'] desc=Numeric field for GDP.
|
| 59 |
+
- Target: role=target, type=categorical_target. tags=['subgroup_candidate', 'condition_candidate', 'target_candidate'] desc=Target field for Target.
|
| 60 |
+
- useful_field_combinations: [['Marital status', 'Application mode', 'Target'], ['Marital status', 'Marital status', 'Target']]
|
| 61 |
+
- fields_requiring_caution: ['Target', 'Admission grade', 'Curricular units 1st sem (grade)', 'Curricular units 2nd sem (grade)']
|
| 62 |
+
- source_url: https://archive.ics.uci.edu/dataset/697/predict+students+dropout+and+academic+success
|
| 63 |
+
|
| 64 |
+
SQLite schema snapshot:
|
| 65 |
+
{
|
| 66 |
+
"table_name": "m5",
|
| 67 |
+
"quoted_table_name": "\"m5\"",
|
| 68 |
+
"row_count": 4424,
|
| 69 |
+
"columns": [
|
| 70 |
+
{
|
| 71 |
+
"name": "Marital status",
|
| 72 |
+
"type": "TEXT",
|
| 73 |
+
"notnull": false,
|
| 74 |
+
"pk": false
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"name": "Application mode",
|
| 78 |
+
"type": "TEXT",
|
| 79 |
+
"notnull": false,
|
| 80 |
+
"pk": false
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "Application order",
|
| 84 |
+
"type": "TEXT",
|
| 85 |
+
"notnull": false,
|
| 86 |
+
"pk": false
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "Course",
|
| 90 |
+
"type": "TEXT",
|
| 91 |
+
"notnull": false,
|
| 92 |
+
"pk": false
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Daytime/evening attendance",
|
| 96 |
+
"type": "TEXT",
|
| 97 |
+
"notnull": false,
|
| 98 |
+
"pk": false
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"name": "Previous qualification",
|
| 102 |
+
"type": "TEXT",
|
| 103 |
+
"notnull": false,
|
| 104 |
+
"pk": false
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "Previous qualification (grade)",
|
| 108 |
+
"type": "TEXT",
|
| 109 |
+
"notnull": false,
|
| 110 |
+
"pk": false
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"name": "Nacionality",
|
| 114 |
+
"type": "TEXT",
|
| 115 |
+
"notnull": false,
|
| 116 |
+
"pk": false
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"name": "Mother's qualification",
|
| 120 |
+
"type": "TEXT",
|
| 121 |
+
"notnull": false,
|
| 122 |
+
"pk": false
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "Father's qualification",
|
| 126 |
+
"type": "TEXT",
|
| 127 |
+
"notnull": false,
|
| 128 |
+
"pk": false
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "Mother's occupation",
|
| 132 |
+
"type": "TEXT",
|
| 133 |
+
"notnull": false,
|
| 134 |
+
"pk": false
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"name": "Father's occupation",
|
| 138 |
+
"type": "TEXT",
|
| 139 |
+
"notnull": false,
|
| 140 |
+
"pk": false
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Admission grade",
|
| 144 |
+
"type": "TEXT",
|
| 145 |
+
"notnull": false,
|
| 146 |
+
"pk": false
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"name": "Displaced",
|
| 150 |
+
"type": "TEXT",
|
| 151 |
+
"notnull": false,
|
| 152 |
+
"pk": false
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"name": "Educational special needs",
|
| 156 |
+
"type": "TEXT",
|
| 157 |
+
"notnull": false,
|
| 158 |
+
"pk": false
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"name": "Debtor",
|
| 162 |
+
"type": "TEXT",
|
| 163 |
+
"notnull": false,
|
| 164 |
+
"pk": false
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Tuition fees up to date",
|
| 168 |
+
"type": "TEXT",
|
| 169 |
+
"notnull": false,
|
| 170 |
+
"pk": false
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"name": "Gender",
|
| 174 |
+
"type": "TEXT",
|
| 175 |
+
"notnull": false,
|
| 176 |
+
"pk": false
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "Scholarship holder",
|
| 180 |
+
"type": "TEXT",
|
| 181 |
+
"notnull": false,
|
| 182 |
+
"pk": false
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "Age at enrollment",
|
| 186 |
+
"type": "TEXT",
|
| 187 |
+
"notnull": false,
|
| 188 |
+
"pk": false
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"name": "International",
|
| 192 |
+
"type": "TEXT",
|
| 193 |
+
"notnull": false,
|
| 194 |
+
"pk": false
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Curricular units 1st sem (credited)",
|
| 198 |
+
"type": "TEXT",
|
| 199 |
+
"notnull": false,
|
| 200 |
+
"pk": false
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"name": "Curricular units 1st sem (enrolled)",
|
| 204 |
+
"type": "TEXT",
|
| 205 |
+
"notnull": false,
|
| 206 |
+
"pk": false
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "Curricular units 1st sem (evaluations)",
|
| 210 |
+
"type": "TEXT",
|
| 211 |
+
"notnull": false,
|
| 212 |
+
"pk": false
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "Curricular units 1st sem (approved)",
|
| 216 |
+
"type": "TEXT",
|
| 217 |
+
"notnull": false,
|
| 218 |
+
"pk": false
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "Curricular units 1st sem (grade)",
|
| 222 |
+
"type": "TEXT",
|
| 223 |
+
"notnull": false,
|
| 224 |
+
"pk": false
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"name": "Curricular units 1st sem (without evaluations)",
|
| 228 |
+
"type": "TEXT",
|
| 229 |
+
"notnull": false,
|
| 230 |
+
"pk": false
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Curricular units 2nd sem (credited)",
|
| 234 |
+
"type": "TEXT",
|
| 235 |
+
"notnull": false,
|
| 236 |
+
"pk": false
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "Curricular units 2nd sem (enrolled)",
|
| 240 |
+
"type": "TEXT",
|
| 241 |
+
"notnull": false,
|
| 242 |
+
"pk": false
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "Curricular units 2nd sem (evaluations)",
|
| 246 |
+
"type": "TEXT",
|
| 247 |
+
"notnull": false,
|
| 248 |
+
"pk": false
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "Curricular units 2nd sem (approved)",
|
| 252 |
+
"type": "TEXT",
|
| 253 |
+
"notnull": false,
|
| 254 |
+
"pk": false
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "Curricular units 2nd sem (grade)",
|
| 258 |
+
"type": "TEXT",
|
| 259 |
+
"notnull": false,
|
| 260 |
+
"pk": false
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"name": "Curricular units 2nd sem (without evaluations)",
|
| 264 |
+
"type": "TEXT",
|
| 265 |
+
"notnull": false,
|
| 266 |
+
"pk": false
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Unemployment rate",
|
| 270 |
+
"type": "TEXT",
|
| 271 |
+
"notnull": false,
|
| 272 |
+
"pk": false
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "Inflation rate",
|
| 276 |
+
"type": "TEXT",
|
| 277 |
+
"notnull": false,
|
| 278 |
+
"pk": false
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "GDP",
|
| 282 |
+
"type": "TEXT",
|
| 283 |
+
"notnull": false,
|
| 284 |
+
"pk": false
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "Target",
|
| 288 |
+
"type": "TEXT",
|
| 289 |
+
"notnull": false,
|
| 290 |
+
"pk": false
|
| 291 |
+
}
|
| 292 |
+
],
|
| 293 |
+
"sample_rows": [
|
| 294 |
+
{
|
| 295 |
+
"Marital status": "1",
|
| 296 |
+
"Application mode": "17",
|
| 297 |
+
"Application order": "5",
|
| 298 |
+
"Course": "171",
|
| 299 |
+
"Daytime/evening attendance": "1",
|
| 300 |
+
"Previous qualification": "1",
|
| 301 |
+
"Previous qualification (grade)": "122.0",
|
| 302 |
+
"Nacionality": "1",
|
| 303 |
+
"Mother's qualification": "19",
|
| 304 |
+
"Father's qualification": "12",
|
| 305 |
+
"Mother's occupation": "5",
|
| 306 |
+
"Father's occupation": "9",
|
| 307 |
+
"Admission grade": "127.3",
|
| 308 |
+
"Displaced": "1",
|
| 309 |
+
"Educational special needs": "0",
|
| 310 |
+
"Debtor": "0",
|
| 311 |
+
"Tuition fees up to date": "1",
|
| 312 |
+
"Gender": "1",
|
| 313 |
+
"Scholarship holder": "0",
|
| 314 |
+
"Age at enrollment": "20",
|
| 315 |
+
"International": "0",
|
| 316 |
+
"Curricular units 1st sem (credited)": "0",
|
| 317 |
+
"Curricular units 1st sem (enrolled)": "0",
|
| 318 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 319 |
+
"Curricular units 1st sem (approved)": "0",
|
| 320 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 321 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 322 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 323 |
+
"Curricular units 2nd sem (enrolled)": "0",
|
| 324 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 325 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 326 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 327 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 328 |
+
"Unemployment rate": "10.8",
|
| 329 |
+
"Inflation rate": "1.4",
|
| 330 |
+
"GDP": "1.74",
|
| 331 |
+
"Target": "Dropout"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"Marital status": "1",
|
| 335 |
+
"Application mode": "15",
|
| 336 |
+
"Application order": "1",
|
| 337 |
+
"Course": "9254",
|
| 338 |
+
"Daytime/evening attendance": "1",
|
| 339 |
+
"Previous qualification": "1",
|
| 340 |
+
"Previous qualification (grade)": "160.0",
|
| 341 |
+
"Nacionality": "1",
|
| 342 |
+
"Mother's qualification": "1",
|
| 343 |
+
"Father's qualification": "3",
|
| 344 |
+
"Mother's occupation": "3",
|
| 345 |
+
"Father's occupation": "3",
|
| 346 |
+
"Admission grade": "142.5",
|
| 347 |
+
"Displaced": "1",
|
| 348 |
+
"Educational special needs": "0",
|
| 349 |
+
"Debtor": "0",
|
| 350 |
+
"Tuition fees up to date": "0",
|
| 351 |
+
"Gender": "1",
|
| 352 |
+
"Scholarship holder": "0",
|
| 353 |
+
"Age at enrollment": "19",
|
| 354 |
+
"International": "0",
|
| 355 |
+
"Curricular units 1st sem (credited)": "0",
|
| 356 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 357 |
+
"Curricular units 1st sem (evaluations)": "6",
|
| 358 |
+
"Curricular units 1st sem (approved)": "6",
|
| 359 |
+
"Curricular units 1st sem (grade)": "14.0",
|
| 360 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 361 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 362 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 363 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 364 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 365 |
+
"Curricular units 2nd sem (grade)": "13.666666666666666",
|
| 366 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 367 |
+
"Unemployment rate": "13.9",
|
| 368 |
+
"Inflation rate": "-0.3",
|
| 369 |
+
"GDP": "0.79",
|
| 370 |
+
"Target": "Graduate"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"Marital status": "1",
|
| 374 |
+
"Application mode": "1",
|
| 375 |
+
"Application order": "5",
|
| 376 |
+
"Course": "9070",
|
| 377 |
+
"Daytime/evening attendance": "1",
|
| 378 |
+
"Previous qualification": "1",
|
| 379 |
+
"Previous qualification (grade)": "122.0",
|
| 380 |
+
"Nacionality": "1",
|
| 381 |
+
"Mother's qualification": "37",
|
| 382 |
+
"Father's qualification": "37",
|
| 383 |
+
"Mother's occupation": "9",
|
| 384 |
+
"Father's occupation": "9",
|
| 385 |
+
"Admission grade": "124.8",
|
| 386 |
+
"Displaced": "1",
|
| 387 |
+
"Educational special needs": "0",
|
| 388 |
+
"Debtor": "0",
|
| 389 |
+
"Tuition fees up to date": "0",
|
| 390 |
+
"Gender": "1",
|
| 391 |
+
"Scholarship holder": "0",
|
| 392 |
+
"Age at enrollment": "19",
|
| 393 |
+
"International": "0",
|
| 394 |
+
"Curricular units 1st sem (credited)": "0",
|
| 395 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 396 |
+
"Curricular units 1st sem (evaluations)": "0",
|
| 397 |
+
"Curricular units 1st sem (approved)": "0",
|
| 398 |
+
"Curricular units 1st sem (grade)": "0.0",
|
| 399 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 400 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 401 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 402 |
+
"Curricular units 2nd sem (evaluations)": "0",
|
| 403 |
+
"Curricular units 2nd sem (approved)": "0",
|
| 404 |
+
"Curricular units 2nd sem (grade)": "0.0",
|
| 405 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 406 |
+
"Unemployment rate": "10.8",
|
| 407 |
+
"Inflation rate": "1.4",
|
| 408 |
+
"GDP": "1.74",
|
| 409 |
+
"Target": "Dropout"
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"Marital status": "1",
|
| 413 |
+
"Application mode": "17",
|
| 414 |
+
"Application order": "2",
|
| 415 |
+
"Course": "9773",
|
| 416 |
+
"Daytime/evening attendance": "1",
|
| 417 |
+
"Previous qualification": "1",
|
| 418 |
+
"Previous qualification (grade)": "122.0",
|
| 419 |
+
"Nacionality": "1",
|
| 420 |
+
"Mother's qualification": "38",
|
| 421 |
+
"Father's qualification": "37",
|
| 422 |
+
"Mother's occupation": "5",
|
| 423 |
+
"Father's occupation": "3",
|
| 424 |
+
"Admission grade": "119.6",
|
| 425 |
+
"Displaced": "1",
|
| 426 |
+
"Educational special needs": "0",
|
| 427 |
+
"Debtor": "0",
|
| 428 |
+
"Tuition fees up to date": "1",
|
| 429 |
+
"Gender": "0",
|
| 430 |
+
"Scholarship holder": "0",
|
| 431 |
+
"Age at enrollment": "20",
|
| 432 |
+
"International": "0",
|
| 433 |
+
"Curricular units 1st sem (credited)": "0",
|
| 434 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 435 |
+
"Curricular units 1st sem (evaluations)": "8",
|
| 436 |
+
"Curricular units 1st sem (approved)": "6",
|
| 437 |
+
"Curricular units 1st sem (grade)": "13.428571428571429",
|
| 438 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 439 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 440 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 441 |
+
"Curricular units 2nd sem (evaluations)": "10",
|
| 442 |
+
"Curricular units 2nd sem (approved)": "5",
|
| 443 |
+
"Curricular units 2nd sem (grade)": "12.4",
|
| 444 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 445 |
+
"Unemployment rate": "9.4",
|
| 446 |
+
"Inflation rate": "-0.8",
|
| 447 |
+
"GDP": "-3.12",
|
| 448 |
+
"Target": "Graduate"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"Marital status": "2",
|
| 452 |
+
"Application mode": "39",
|
| 453 |
+
"Application order": "1",
|
| 454 |
+
"Course": "8014",
|
| 455 |
+
"Daytime/evening attendance": "0",
|
| 456 |
+
"Previous qualification": "1",
|
| 457 |
+
"Previous qualification (grade)": "100.0",
|
| 458 |
+
"Nacionality": "1",
|
| 459 |
+
"Mother's qualification": "37",
|
| 460 |
+
"Father's qualification": "38",
|
| 461 |
+
"Mother's occupation": "9",
|
| 462 |
+
"Father's occupation": "9",
|
| 463 |
+
"Admission grade": "141.5",
|
| 464 |
+
"Displaced": "0",
|
| 465 |
+
"Educational special needs": "0",
|
| 466 |
+
"Debtor": "0",
|
| 467 |
+
"Tuition fees up to date": "1",
|
| 468 |
+
"Gender": "0",
|
| 469 |
+
"Scholarship holder": "0",
|
| 470 |
+
"Age at enrollment": "45",
|
| 471 |
+
"International": "0",
|
| 472 |
+
"Curricular units 1st sem (credited)": "0",
|
| 473 |
+
"Curricular units 1st sem (enrolled)": "6",
|
| 474 |
+
"Curricular units 1st sem (evaluations)": "9",
|
| 475 |
+
"Curricular units 1st sem (approved)": "5",
|
| 476 |
+
"Curricular units 1st sem (grade)": "12.333333333333334",
|
| 477 |
+
"Curricular units 1st sem (without evaluations)": "0",
|
| 478 |
+
"Curricular units 2nd sem (credited)": "0",
|
| 479 |
+
"Curricular units 2nd sem (enrolled)": "6",
|
| 480 |
+
"Curricular units 2nd sem (evaluations)": "6",
|
| 481 |
+
"Curricular units 2nd sem (approved)": "6",
|
| 482 |
+
"Curricular units 2nd sem (grade)": "13.0",
|
| 483 |
+
"Curricular units 2nd sem (without evaluations)": "0",
|
| 484 |
+
"Unemployment rate": "13.9",
|
| 485 |
+
"Inflation rate": "-0.3",
|
| 486 |
+
"GDP": "0.79",
|
| 487 |
+
"Target": "Graduate"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
Shortlisted templates:
|
| 493 |
+
[
|
| 494 |
+
{
|
| 495 |
+
"template_id": "tpl_clickbench_group_count",
|
| 496 |
+
"template_name": "Grouped Count by Category",
|
| 497 |
+
"primary_family": "subgroup_structure",
|
| 498 |
+
"portability": "yes",
|
| 499 |
+
"sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;",
|
| 500 |
+
"required_roles": [
|
| 501 |
+
"group_col"
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
|
| 506 |
+
Problem instance:
|
| 507 |
+
{
|
| 508 |
+
"dataset_id": "m5",
|
| 509 |
+
"question": "Use template Grouped Count by Category to probe subgroup_size_stability with semantic role count_distribution. Focus on group_col=Age at enrollment.",
|
| 510 |
+
"planned_template_id": "tpl_clickbench_group_count",
|
| 511 |
+
"bindings": {
|
| 512 |
+
"group_col": "Age at enrollment",
|
| 513 |
+
"top_k": 12,
|
| 514 |
+
"top_n": 4,
|
| 515 |
+
"num_tiles": 10,
|
| 516 |
+
"percentile_value": 0.9,
|
| 517 |
+
"z_threshold": 2.0,
|
| 518 |
+
"fraction_threshold": 0.1,
|
| 519 |
+
"baseline_multiplier": 1.5,
|
| 520 |
+
"baseline_fraction": 0.1,
|
| 521 |
+
"min_group_size": 5,
|
| 522 |
+
"min_support": 5,
|
| 523 |
+
"measure_threshold": 13.4,
|
| 524 |
+
"time_grain": "month",
|
| 525 |
+
"lookback_rows": 3,
|
| 526 |
+
"current_period_start": "'2024-01-01'",
|
| 527 |
+
"current_period_end": "'2024-04-01'",
|
| 528 |
+
"previous_period_start": "'2023-10-01'",
|
| 529 |
+
"previous_period_end": "'2024-01-01'",
|
| 530 |
+
"drift_ratio_threshold": 0.8
|
| 531 |
+
},
|
| 532 |
+
"can_vary": [],
|
| 533 |
+
"must_fix": [],
|
| 534 |
+
"runtime_sql_skeleton": "SELECT {group_col}, COUNT(*) AS row_count\nFROM {table}\nGROUP BY {group_col}\nORDER BY row_count DESC;"
|
| 535 |
+
}
|
| 536 |
+
|
| 537 |
+
Repair context:
|
| 538 |
+
{}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_1.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e40ff-b92b-7243-be39-49f394764302"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_1.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e40ff-b92b-7243-be39-49f394764302"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_2.raw.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e40ff-c992-7113-9a13-492f12cfd03a"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_response_attempt_2.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"type":"thread.started","thread_id":"019e40ff-c992-7113-9a13-492f12cfd03a"}
|
| 2 |
+
{"type":"turn.started"}
|
| 3 |
+
{"type":"error","message":"Quota exceeded. Check your plan and billing details."}
|
| 4 |
+
{"type":"turn.failed","error":{"message":"Quota exceeded. Check your plan and billing details."}}
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_stderr_attempt_1.txt
ADDED
|
File without changes
|
Query/sql/v2/runs/v2_cli_20260502_081223_e/m5/artifacts/v2q_m5_06f2094110fcaa4e/cli/sql_stderr_attempt_2.txt
ADDED
|
File without changes
|