Datasets:
variant stringclasses 1
value | instance_id stringlengths 29 33 | db_id stringclasses 34
values | data_source stringclasses 18
values | drift_type stringclasses 5
values | difficulty stringclasses 3
values | scenario_type stringclasses 2
values | interaction_profile stringclasses 3
values | failure_mode stringclasses 2
values | termination_reason stringclasses 3
values | final_sql stringclasses 174
values | executable bool 2
classes | task_success bool 1
class | error stringclasses 34
values | called_tools listlengths 2 7 | all_five_tools bool 1
class | safety dict | usage dict | trajectory listlengths 2 7 | _failure_miner dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strong-sft | drift_coladd_06fcb847cf9b5b06 | shooting | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "officers" AS lhs CROSS JOIN "subjects" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 13 OFFSET 3 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 129,
"prompt_tokens": 2290,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_0807f25653aa7747 | robot | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "joint_condition" AS lhs CROSS JOIN "maintenance_and_fault" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 134,
"prompt_tokens": 3269,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_0807f25653aa7747 | robot | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "joint_condition" AS lhs CROSS JOIN "maintenance_and_fault" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 138,
"prompt_tokens": 3271,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_0999bde447712019 | retail_world | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT * FROM "Customers" AS lhs CROSS JOIN "OrderDetails" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 13 OFFSET 3 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 129,
"prompt_tokens": 2285,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_0fdf11a9d95b5794 | video_games | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "game_platform" AS lhs CROSS JOIN "region_sales" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 131,
"prompt_tokens": 2153,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_0fdf11a9d95b5794 | video_games | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "game_platform" AS lhs CROSS JOIN "region_sales" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 131,
"prompt_tokens": 2151,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_13b871a9cda568ff | european_football_1 | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "matchs" AS lhs CROSS JOIN "divisions" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 131,
"prompt_tokens": 2284,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_13b871a9cda568ff | european_football_1 | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "matchs" AS lhs CROSS JOIN "divisions" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 135,
"prompt_tokens": 2288,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_13b871a9cda568ff | european_football_1 | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "matchs" AS lhs CROSS JOIN "divisions" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 136,
"prompt_tokens": 2288,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_3bc2b08e072ec3ba | law_episode | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 133,
"prompt_tokens": 2454,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_3bc2b08e072ec3ba | law_episode | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 140,
"prompt_tokens": 2460,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_3bc2b08e072ec3ba | law_episode | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 134,
"prompt_tokens": 2454,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_3bc2b08e072ec3ba | law_episode | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 133,
"prompt_tokens": 2454,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_3bc2b08e072ec3ba | law_episode | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 133,
"prompt_tokens": 2454,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_42cf56c8ba6f2cf8 | law_episode | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 13 OFFSET 3 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 132,
"prompt_tokens": 2452,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_42cf56c8ba6f2cf8 | law_episode | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 13 OFFSET 3 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 127,
"prompt_tokens": 2448,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_42cf56c8ba6f2cf8 | law_episode | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "Person" AS lhs CROSS JOIN "Credit" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 13 OFFSET 3 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 132,
"prompt_tokens": 2452,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_47f236b6f88b03ad | law_episode | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT * FROM "Episode" AS lhs CROSS JOIN "Vote" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 127,
"prompt_tokens": 3041,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_58644e5cedc8c69f | professional_basketball | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT * FROM "draft" AS lhs CROSS JOIN "teams" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 127,
"prompt_tokens": 2732,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_58644e5cedc8c69f | professional_basketball | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT * FROM "draft" AS lhs CROSS JOIN "teams" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 131,
"prompt_tokens": 2736,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_58644e5cedc8c69f | professional_basketball | driftsql/p6/general/compound/add_column/knowledge_only | add_column | hard | compound | knowledge_only | silent_result_mismatch | submitted | SELECT * FROM "draft" AS lhs CROSS JOIN "teams" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 17 OFFSET 1 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 133,
"prompt_tokens": 2738,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_5c977f3e5123de31 | movie | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "actor" AS lhs CROSS JOIN "characters" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 134,
"prompt_tokens": 2817,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_5c977f3e5123de31 | movie | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "actor" AS lhs CROSS JOIN "characters" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 133,
"prompt_tokens": 2817,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_5c977f3e5123de31 | movie | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "actor" AS lhs CROSS JOIN "characters" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 140,
"prompt_tokens": 2823,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... | |
strong-sft | drift_coladd_5e86d9f0ea1f39b8 | legislator | driftsql/p6/general/compound/add_column/schema_only | add_column | hard | compound | schema_only | silent_result_mismatch | submitted | SELECT lhs.*, rhs.* FROM "current" AS lhs CROSS JOIN "social-media" AS rhs ORDER BY lhs.rowid, rhs.rowid LIMIT 16 OFFSET 0 | true | false | [
"execute_sql",
"submit_solution"
] | false | {
"duplicate_executions": 0,
"duplicate_questions": 0,
"timed_out": false,
"unsafe": false,
"unsafe_actions": 0
} | {
"model_calls": 2,
"new_tokens": 135,
"prompt_tokens": 3486,
"sql_executions": 1,
"tool_calls": 2
} | [
{
"arguments": {
"QUESTION": null,
"active_schema": null,
"cached_schema": null,
"candidate": null,
"candidate_new_name": null,
"change_type": null,
"column": null,
"column_name": null,
"concepts": null,
"db_id": null,
"db_name": null,
"db_... | {
"classification": {
"invalid_tools": [],
"labels": [
"compound_recovery",
"wrong_submit"
],
"must_ask": {
"aliases": [],
"exact_ask_count": 0,
"required": false,
"subtypes": []
},
"post_diff": {
"actual_next_tool": null,
"diff_index": null,
... |
DriftSQL-Recovery
DriftSQL-Recovery is an execution-verified dataset for training and evaluating SQL agents under schema, business-knowledge, and interaction drift. It contains database-isolated recovery tasks, canonical seven-tool trajectories, real on-policy failures, Recovery SFT examples, hard replay, and full-episode GRPO records.
The accompanying implementation, data factory, sandbox, reward, and evaluation code are available in DriftSQL.
Release scope
| Configuration | Split | Rows | Description |
|---|---|---|---|
tasks |
train / tune | 2,400 / 432 | Execution-verified clean and drift-recovery tasks |
oracle_next_action |
train / tune | 24,285 / 2,254 | Seven-tool next-action supervision |
oracle_trajectories |
train / tune | 2,400 / 432 | Canonical execution-verified episodes |
rollout_index |
train | 2,400 | Multi-seed on-policy rollout index and outcomes |
failure_trajectories |
train | 1,066 | Unique full on-policy failure trajectories |
recovery_sft |
train / validation | 1,317 / 397 | State-aware recovery examples around first errors |
hard_replay |
train | 1,600 | Balanced real recovery and canonical replay examples |
sft_mix |
train / validation | 3,314 / 2,254 | Maintained Recovery SFT + Hard Replay mixture |
grpo |
train / tune | 3,200 / 432 | Full-episode VERL/GRPO records |
The public tasks span clean, add_column, rename_column, rename_table,
replace_column, and compound scenarios. Interaction profiles cover
direct_clean, schema_only, knowledge_only, and must_ask behavior.
Deliberately excluded
- Fresh Blind320 is not published. Its rows and answers remain sealed and were not read while preparing this release.
- No raw SQLite databases are redistributed. Database assets must be obtained from their upstream sources with the pinned revisions in the DriftSQL repository.
- Checkpoints, local filesystem paths, access tokens, and machine-specific runtime artifacts are not included.
These exclusions keep the final blind evaluation meaningful and avoid duplicating roughly 52 GiB of upstream database assets.
Loading
from datasets import load_dataset
tasks = load_dataset("lxSYSU/DriftSQL-Recovery", "tasks")
failures = load_dataset("lxSYSU/DriftSQL-Recovery", "failure_trajectories")
sft = load_dataset("lxSYSU/DriftSQL-Recovery", "sft_mix")
grpo = load_dataset("lxSYSU/DriftSQL-Recovery", "grpo")
Paths that pointed to local upstream assets have been normalized to hf:// or
repo:// identifiers. They are provenance references, not bundled database
files.
Tool protocol
The maintained environment exposes a dynamic subset of seven actions:
get_schema_version
inspect_schema_diff
get_schema
ask_user
get_knowledge_definition
execute_sql
submit_solution
SQL targets and canonical trajectories were validated by executing original, stale, and repaired SQL against isolated SQLite sessions. The runtime enforces read-only authorization, timeouts, rollback, result-contract validation, and dynamic action masks.
Data construction
The task factory derives deterministic schema and interaction changes from
public BIRD-family and SIX-GYM SQLite assets. Splits are assigned by db_id,
not by random row:
- Train: 2,400 tasks over 60 databases;
- Tune: 432 tasks over 18 disjoint databases;
- Fresh Blind: 320 tasks over 20 additional databases, withheld from this public release.
For on-policy collection, 600 difficult Train tasks were sampled with multiple seeds, producing 2,400 rollout outcomes and 1,066 unique failures. Failure mining emphasizes wrong retrieval after schema diff, successful execution without submission, must-ask mistakes, and compound recovery.
Source data and attribution
This release derives from the following CC BY-SA 4.0 datasets:
Their licenses and terms remain applicable. DriftSQL adds versioned drift generation, verified tool trajectories, on-policy failure annotations, training mixtures, and leakage controls. This dataset is therefore released under CC BY-SA 4.0 rather than a software license.
Limitations
- The released execution environment targets SQLite.
- The tasks and tool traces are English; the DriftSQL application provides a separate Chinese-to-English input adapter.
- The 2,400-row rollout index contains metadata for every rollout, while full trajectories are published for the 1,066 mined failures.
- Tune is intended for checkpoint selection and must not be reported as a final blind result.
- SQL execution should always occur in an isolated, read-only sandbox.
Reproducibility
Dataset revisions, generation scripts, split policies, and validation gates are maintained in the DriftSQL repository. The release metadata records that zero Fresh Blind rows and zero raw SQLite files are included.
- Downloads last month
- 15