messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Brazil': set Total to 87, Bronze to 24, Rank to 87.\nThe name of this table is 1996_Olympic_Medal_Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Fina... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "1996_Olympic_Medal_Tally",
"sql": "UPDATE `1996_Olympic_Medal_Tally` SET `Total` = '87', `Bronze` = '24', `Rank` = '87' WHERE `Nation` = 'Brazil';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0856 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Region', '95' for 'Population', '85' for '15 to 17', '78' for '18 to 19', '4' for '20 to 24'.\nThe name of this table is Population_by_Age_Group_and_Region_in_Russia, and the headers of this table are Regi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Population_by_Age_Group_and_Region_in_Russia",
"sql": "INSERT INTO `Population_by_Age_Group_and_Region_in_Russia` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Epsilon', '95', '85', '78', '4');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0717 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Jeffrey Baker',), ('Patricia Sanchez',), ('Susan Lee',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Athlete` FROM `Luge Athletes Results` WHERE `Race 1 Time` > 85"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison_error_recovery",
"table_name": "Luge Athletes Results",
"sql": "SELECT `Athlete` FROM `Luge Athletes Results` WHERE `Race 1\nTime` > 85;",
"label": [
"Jeffrey Baker",
"Patricia Sanchez",
"Susan Lee"
],
"wrong_sql": "SELECT `Athlete` FROM `Luge Athletes Results` WHERE Race 1\nTime > 85;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Race 1\nTime",
"error_reason": "special"
} | dbbench_sft_1079 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('ICLR',), ('NeurIPS',), ('EMNLP',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Venue` FROM `Biology_Research_Papers` WHERE `Year` > 2014"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison_error_recovery",
"table_name": "Biology_Research_Papers",
"sql": "SELECT `Venue` FROM `Biology_Research_Papers` WHERE `Year` > 2014;",
"label": [
"ICLR",
"NeurIPS",
"EMNLP"
],
"wrong_sql": "SELECT `Venue` FROM `Biology_Research_Papers` WHERE Year > 2014;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0331 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Time/Retired' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `2017_Formula_One_Season... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "2017_Formula_One_Season",
"sql": "INSERT INTO `2017_Formula_One_Season` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('66', 'Brian Baker', 'Delta', '22', '13.4');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2017_Formula_One_Season` (`No`, `Driver`, Time/Retired, `Laps`, `Points`) VALUES ('66', 'Brian Baker', 'Delta', '22', '13.4');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time/Retired",
"error_reason": "special"
} | dbbench_sft_0175 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('3-5',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Score` FROM `France_Match_History` WHERE `Opponent` = 'Egypt'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "France_Match_History",
"sql": "SELECT `Score` FROM `France_Match_History` WHERE `Opponent` = 'Egypt';",
"label": [
"3-5"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0310 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Margaret Thompson': set No to 93, Time/Retired to Chicago, Points to 43.7.\nThe name of this table is 2003 Formula One Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistant",
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2003 Formula One Season",
"sql": "UPDATE `2003 Formula One Season` SET `No` = '93', `Time/Retired` = 'Chicago', `Points` = '43.7' WHERE `Driver` = 'Margaret Thompson';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0887 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('April 5, 1983',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Date` FROM `FDA_Approved_Medications` WHERE `Name` = 'Lisinopril'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "FDA_Approved_Medications",
"sql": "SELECT `Date` FROM `FDA_Approved_Medications` WHERE `Name` = 'Lisinopril';",
"label": [
"April 5, 1983"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0080 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Cornell',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Americas Higher Education Data` WHERE `Country` = 'Israel'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Americas Higher Education Data",
"sql": "SELECT `Name` FROM `Americas Higher Education Data` WHERE `Country` = 'Israel';",
"label": [
"Cornell"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0204 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Time', 'Gamma' for 'Title', '8' for 'Duration', 'India' for 'Type', '41.4' for 'Rating'.\nThe name of this table is TV Schedule Fall 2023, and the headers of this table are Time,Title,Duration,Type,Rating."
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "TV Schedule Fall 2023",
"sql": "INSERT INTO `TV Schedule Fall 2023` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Alpha', 'Gamma', '8', 'India', '41.4');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0799 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Area\n(sq ft)' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Real_Estate_2022` (`Ad... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Real_Estate_2022",
"sql": "INSERT INTO `Real_Estate_2022` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Delta', '23', '52', '65', '45');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Real_Estate_2022` (`Address`, `Price`, Area\n(sq ft), `Year`, `Level`) VALUES ('Delta', '23', '52', '65', '45');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Area\n(sq ft)",
"error_reason": "special"
} | dbbench_sft_0554 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Shatabdi Express': set Distance (km) to 18, No to 68, From to Kevin Williams.\nThe name of this table is Amtrak Train Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistan... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Amtrak Train Schedule",
"sql": "UPDATE `Amtrak Train Schedule` SET `Distance (km)` = '18', `No` = '68', `From` = 'Kevin Williams' WHERE `Name` = 'Shatabdi Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0864 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '21' for 'Rank', 'Epsilon' for 'Island', '25.0' for 'Area\n(km²)', '72.8' for 'Area\n(sq mi)', 'Montreal' for 'Country/Region'.\nThe name of this table is World Islands Database, and the headers of this table are Rank,Is... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "World Islands Database",
"sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('21', 'Epsilon', '25.0', '72.8', 'Montreal');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0634 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(298.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Total Rank`) FROM `World Championships Competition Records`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "World Championships Competition Records",
"sql": "SELECT SUM(`Total\nRank`) FROM `World Championships Competition Records`;",
"label": [
"298.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0259 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'September 11, 1965': set Venue to Shanghai, Score to Updated Value, Opponent to New Entry.\nThe name of this table is Football_Matches_2024, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role"... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Football_Matches_2024",
"sql": "UPDATE `Football_Matches_2024` SET `Venue` = 'Shanghai', `Score` = 'Updated Value', `Opponent` = 'New Entry' WHERE `Date` = 'September 11, 1965';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0865 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('#53',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Car` FROM `Race Results` ORDER BY `Qual` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Race Results",
"sql": "SELECT `Car` FROM `Race Results` ORDER BY `Qual` DESC LIMIT 1;",
"label": [
"#53"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0227 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Name', 'Lagos' for 'From', 'David Davis' for 'To', 'Gamma' for 'Position', 'Timothy Gonzalez' for 'Unit'.\nThe name of this table is Navy_Officers_List, and the headers of this table are Name,From,To,Position... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Navy_Officers_List",
"sql": "INSERT INTO `Navy_Officers_List` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Beta', 'Lagos', 'David Davis', 'Gamma', 'Timothy Gonzalez');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0854 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '36' for 'Year', 'Epsilon' for 'Car', '70' for 'Start', '54.9' for 'Qual', '41' for 'Rank', '61' for 'Finish', '29' for 'Laps'.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('36', 'Epsilon', '70', '54.9', '41', '61', '29');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0751 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Summer_Olympics_Medal_Count` WHERE `Nation` = 'United States'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Summer_Olympics_Medal_Count",
"sql": "SELECT COUNT(*) FROM `Summer_Olympics_Medal_Count` WHERE `Nation` = 'United States';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1112 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '85' for 'Year', 'Linda Rivera' for 'Car', '16' for 'Start', '55.7' for 'Qual', '95' for 'Rank', '48' for 'Finish', '72' for 'Laps'.\nThe name of this table is Race Results, and the headers of this table are Year,Car,Sta... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Race Results",
"sql": "INSERT INTO `Race Results` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('85', 'Linda Rivera', '16', '55.7', '95', '48', '72');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0327 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Night Watch',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `Action Films 2010s` ORDER BY `Year` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking_error_recovery",
"table_name": "Action Films 2010s",
"sql": "SELECT `Title` FROM `Action Films 2010s` ORDER BY `Year` ASC LIMIT 1;",
"label": [
"Night Watch"
],
"wrong_sql": "SELECT `Title` FROM `Action Films 2010s` ORDER BY Year ASC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0935 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Sydney_Property_Listings` WHERE `Address` = '894 Park St'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Sydney_Property_Listings",
"sql": "SELECT COUNT(*) FROM `Sydney_Property_Listings` WHERE `Address` = '894 Park St';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0490 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '88' for 'Rank', 'Mexico' for 'Name', 'Alpha' for 'Country', '95' for 'Students', '57.8' for 'Score'.\nThe name of this table is University Rankings 2020, and the headers of this table are Rank,Name,Country,Students,Scor... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "University Rankings 2020",
"sql": "INSERT INTO `University Rankings 2020` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('88', 'Mexico', 'Alpha', '95', '57.8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0447 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#8': set Qual to 7.9.\nThe name of this table is Emerson_Fittipaldi_Career_Stats, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Emerson_Fittipa... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Emerson_Fittipaldi_Career_Stats",
"sql": "UPDATE `Emerson_Fittipaldi_Career_Stats` SET `Qual` = '7.9' WHERE `Car` = '#8';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0446 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'December 12, 2013': set Opponent to New Entry, Score to Montreal.\nThe name of this table is Football Matches 2013, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"conte... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Football Matches 2013",
"sql": "UPDATE `Football Matches 2013` SET `Opponent` = 'New Entry', `Score` = 'Montreal' WHERE `Date` = 'December 12, 2013';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0914 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'To' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Deutsche Bahn Train Schedule` (`N... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Deutsche Bahn Train Schedule",
"sql": "INSERT INTO `Deutsche Bahn Train Schedule` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('42', 'Delta', 'Beta', 'Singapore', '31', '99');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Deutsche Bahn Train Schedule` (`No`, `Name`, `From`, To, `Distance (km)`, `Platforms`) VALUES ('42', 'Delta', 'Beta', 'Singapore', '31', '99');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "To",
"error_reason": "reserved"
} | dbbench_sft_1032 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Netherlands' for 'Name', 'Epsilon' for 'Party', '41' for 'Votes', '13.3' for 'Percentage', 'Delta' for 'Status'.\nThe name of this table is Michigan_Election_Results, and the headers of this table are Name,Party,Votes,P... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Michigan_Election_Results",
"sql": "INSERT INTO `Michigan_Election_Results` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Netherlands', 'Epsilon', '41', '13.3', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1022 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'May 2, 1956': set Label to Paris.\nThe name of this table is Nirvana Discography, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `Nirvana Discograph... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Nirvana Discography",
"sql": "UPDATE `Nirvana Discography` SET `Label` = 'Paris' WHERE `Release` = 'May 2, 1956';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0652 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Name' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Americas_Higher_Education_Data`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Americas_Higher_Education_Data",
"sql": "INSERT INTO `Americas_Higher_Education_Data` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('58', 'Houston', 'Patricia Baker', '80', '29.6');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Americas_Higher_Education_Data` (`Rank`, Name, `Country`, `Students`, `Score`) VALUES ('58', 'Houston', 'Patricia Baker', '80', '29.6');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0533 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Name', '59.4' for 'Uplink (MHz)', '81.2' for 'Downlink (MHz)', 'Alpha' for 'System', 'Gamma' for 'Status'.\nThe name of this table is Satellite Communications Data, and the headers of this table are Name,U... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Satellite Communications Data",
"sql": "INSERT INTO `Satellite Communications Data` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Epsilon', '59.4', '81.2', 'Alpha', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0819 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'January 3, 1990': set Label to New Entry.\nThe name of this table is Queen Discography, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `Queen Discog... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Queen Discography",
"sql": "UPDATE `Queen Discography` SET `Label` = 'New Entry' WHERE `Release` = 'January 3, 1990';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0196 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Betty Gonzalez' for 'Title', '28' for 'Year', '66' for 'Citations', 'South Korea' for 'Authors', 'Delta' for 'Venue'.\nThe name of this table is Journal of Biology Publications, and the headers of this table are Title,Y... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Journal of Biology Publications",
"sql": "INSERT INTO `Journal of Biology Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Betty Gonzalez', '28', '66', 'South Korea', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0058 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Amsterdam' for 'Title', '65' for 'Year', '46' for 'Citations', 'Alpha' for 'Authors', 'Phoenix' for 'Venue'.\nThe name of this table is Journal of Chemistry Publications, and the headers of this table are Title,Year,Cit... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Journal of Chemistry Publications",
"sql": "INSERT INTO `Journal of Chemistry Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Amsterdam', '65', '46', 'Alpha', 'Phoenix');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1083 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('6',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `World_Higher_Education_Data` WHERE `Country` = 'United Kingdom'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "World_Higher_Education_Data",
"sql": "SELECT `Rank` FROM `World_Higher_Education_Data` WHERE `Country` = 'United Kingdom';",
"label": [
"6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0346 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(27142.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`15 to 17`) FROM `Population by Age Group and Region in China` WHERE `Region` = 'Nizhny Novgorod'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN",
"table_name": "Population by Age Group and Region in China",
"sql": "SELECT MIN(`15 to 17`) FROM `Population by Age Group and Region in China` WHERE `Region` = 'Nizhny Novgorod';",
"label": [
"27142.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0489 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('7',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `World_Islands_Database` WHERE `Island` = 'Borneo'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "World_Islands_Database",
"sql": "SELECT `Rank` FROM `World_Islands_Database` WHERE `Island` = 'Borneo';",
"label": [
"7"
],
"wrong_sql": "SELECT `Rank` FROM `World_Islands_Database` WHERE `Island` = 'borneo';",
"wrong_val": "borneo",
"correct_val": "Borneo",
"where_col": "Island",
"error_col": null,
"error_reason": null
} | dbbench_sft_1146 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '72' for 'Rank', 'Argentina' for 'Name', 'Delta' for 'Country', '75' for 'Students', '31.6' for 'Score'.\nThe name of this table is University_Rankings_2019, and the headers of this table are Rank,Name,Country,Students,S... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "University_Rankings_2019",
"sql": "INSERT INTO `University_Rankings_2019` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('72', 'Argentina', 'Delta', '75', '31.6');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0068 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Real_Estate_2023` WHERE `Address` = '735 Lake St'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Real_Estate_2023",
"sql": "SELECT COUNT(*) FROM `Real_Estate_2023` WHERE `Address` = '735 Lake St';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1129 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Kenneth Jackson',), ('Steven Rodriguez',), ('Elizabeth Allen',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Driver` FROM `2016_Formula_One_Season` WHERE `No` < 41"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison_error_recovery",
"table_name": "2016_Formula_One_Season",
"sql": "SELECT `Driver` FROM `2016_Formula_One_Season` WHERE `No` < 41;",
"label": [
"Kenneth Jackson",
"Steven Rodriguez",
"Elizabeth Allen"
],
"wrong_sql": "SELECT `Driver` FROM `2016_Formula_One_Season` WHERE No < 41;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0172 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('June 5, 1967',), ('August 7, 1987',), ('February 25, 2010',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Date` FROM `First Division 2022 Season Standings` WHERE `Attendance` > 53056"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "First Division 2022 Season Standings",
"sql": "SELECT `Date` FROM `First Division 2022 Season Standings` WHERE `Attendance` > 53056;",
"label": [
"June 5, 1967",
"August 7, 1987",
"February 25, 2010"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0965 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('434',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Citations` FROM `Biology Research Papers` WHERE `Authors` = 'Andrew White et al.'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Biology Research Papers",
"sql": "SELECT `Citations` FROM `Biology Research Papers` WHERE `Authors` = 'Andrew White et al.';",
"label": [
"434"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0923 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`No`) FROM `The_Beatles_Discography`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN",
"table_name": "The_Beatles_Discography",
"sql": "SELECT MIN(`No`) FROM `The_Beatles_Discography`;",
"label": [
"4.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1102 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('2003',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Year` FROM `Journal of Computer Science Publications` WHERE `Authors` = 'Betty Carter et al.'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Journal of Computer Science Publications",
"sql": "SELECT `Year` FROM `Journal of Computer Science Publications` WHERE `Authors` = 'Betty Carter et al.';",
"label": [
"2003"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0157 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Command History 1960-1980` WHERE `Name` = 'LTG Patricia Sanchez'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting_retry",
"table_name": "Command History 1960-1980",
"sql": "SELECT COUNT(*) FROM `Command History 1960-1980` WHERE `Name` = 'LTG Patricia Sanchez';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Command History 1960-1980` WHERE `Name` = 'LTG-Patricia-Sanchez';",
"wrong_val": "LTG-Patricia-Sanchez",
"correct_val": "LTG Patricia Sanchez",
"where_col": "Name",
"error_col": null,
"error_reason": null
} | dbbench_sft_1092 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('22',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Finish` FROM `Race Results` WHERE `Car` = '#23'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Race Results",
"sql": "SELECT `Finish` FROM `Race Results` WHERE `Car` = '#23';",
"label": [
"22"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0941 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Borneo',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Island` FROM `World Islands Database` WHERE `Country/Region` = 'Poland'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "World Islands Database",
"sql": "SELECT `Island` FROM `World Islands Database` WHERE `Country/Region` = 'Poland';",
"label": [
"Borneo"
],
"wrong_sql": "SELECT `Island` FROM `World Islands Database` WHERE `Country/Region` = 'POLAND';",
"wrong_val": "POLAND",
"correct_val": "Poland",
"where_col": "Country/Region",
"error_col": null,
"error_reason": null
} | dbbench_sft_0023 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Stanford': set Country to Vancouver, Score to 14.9.\nThe name of this table is University_Rankings_2019, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"role": "assistant",
"content": "Final: UPD... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "University_Rankings_2019",
"sql": "UPDATE `University_Rankings_2019` SET `Country` = 'Vancouver', `Score` = '14.9' WHERE `Name` = 'Stanford';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0362 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Runner-up',), ('Third',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Status` FROM `2018 General Election` WHERE `Percentage` > 45"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "2018 General Election",
"sql": "SELECT `Status` FROM `2018 General Election` WHERE `Percentage` > 45;",
"label": [
"Runner-up",
"Third"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0952 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(150474.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`15 to 17`) FROM `Eastern_Census_Data`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM_error_recovery",
"table_name": "Eastern_Census_Data",
"sql": "SELECT SUM(`15 to 17`) FROM `Eastern_Census_Data`;",
"label": [
"150474.0"
],
"wrong_sql": "SELECT SUM(15 to 17) FROM `Eastern_Census_Data`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "15 to 17",
"error_reason": "special"
} | dbbench_sft_0910 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Rank`) FROM `Falcons_Season_Results` WHERE `Score` = '5-0'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG_retry",
"table_name": "Falcons_Season_Results",
"sql": "SELECT AVG(`Rank`) FROM `Falcons_Season_Results` WHERE `Score` = '5-0';",
"label": [
"4.0"
],
"wrong_sql": "SELECT AVG(`Rank`) FROM `Falcons_Season_Results` WHERE `Score` = '5-0s';",
"wrong_val": "5-0s",
"correct_val": "5-0",
"where_col": "Score",
"error_col": null,
"error_reason": null
} | dbbench_sft_0131 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Elizabeth Roberts' for 'Date', 'Delta' for 'Venue', 'Alpha' for 'Opponent', 'Germany' for 'Score', 'Gamma' for 'Competition'.\nThe name of this table is France_Match_History, and the headers of this table are Date,Venue... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "France_Match_History",
"sql": "INSERT INTO `France_Match_History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Elizabeth Roberts', 'Delta', 'Alpha', 'Germany', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0067 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Region', '18' for 'Population', '20' for '15 to 17', '46' for '18 to 19', '83' for '20 to 24'.\nThe name of this table is Population by Age Group and Region in Brazil, and the headers of this table are Regio... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Population by Age Group and Region in Brazil",
"sql": "INSERT INTO `Population by Age Group and Region in Brazil` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Delta', '18', '20', '46', '83');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0378 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'MG Edward Baker': set Unit to Vienna, From to Sharon Collins, Position to Houston.\nThe name of this table is Military Leaders Table, and the headers of this table are Name,From,To,Position,Unit."
},
{
"role": "assistant",
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Military Leaders Table",
"sql": "UPDATE `Military Leaders Table` SET `Unit` = 'Vienna', `From` = 'Sharon Collins', `Position` = 'Houston' WHERE `Name` = 'MG Edward Baker';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1123 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Race 1\nTime' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `European_Championships_... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "European_Championships_Competition_Records",
"sql": "INSERT INTO `European_Championships_Competition_Records` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Gamma', 'Delta', '89.6', '60.6', '9.3', '82');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `European_Championships_Competition_Records` (`Athlete`, `Event`, Race 1\nTime, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Gamma', 'Delta', '89.6', '60.6', '9.3', '82');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Race 1\nTime",
"error_reason": "special"
} | dbbench_sft_0845 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Region', '77' for 'Population', '11' for '15 to 17', '22' for '18 to 19', '68' for '20 to 24'.\nThe name of this table is Population by Age Group and Region in Brazil, and the headers of this table are Region... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Population by Age Group and Region in Brazil",
"sql": "INSERT INTO `Population by Age Group and Region in Brazil` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Beta', '77', '11', '22', '68');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0655 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Region', '28' for 'Population', '28' for '15 to 17', '48' for '18 to 19', '17' for '20 to 24'.\nThe name of this table is Northern_Census_Data, and the headers of this table are Region,Population,15 to 17,18... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Northern_Census_Data",
"sql": "INSERT INTO `Northern_Census_Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Alpha', '28', '28', '48', '17');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0990 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('3-0',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Score` FROM `Football Matches 2018` WHERE `Date` = 'March 15, 1984'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "Football Matches 2018",
"sql": "SELECT `Score` FROM `Football Matches 2018` WHERE `Date` = 'March 15, 1984';",
"label": [
"3-0"
],
"wrong_sql": "SELECT `Score` FROM `Football Matches 2018` WHERE `Date` = 'MARCH 15, 1984';",
"wrong_val": "MARCH 15, 1984",
"correct_val": "March 15, 1984",
"where_col": "Date",
"error_col": null,
"error_reason": null
} | dbbench_sft_0247 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'William Young' for 'Name', '69.6' for 'Uplink (MHz)', '58.7' for 'Downlink (MHz)', 'Chicago' for 'System', 'Beta' for 'Status'.\nThe name of this table is SES Satellite Fleet, and the headers of this table are Name,Upli... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "SES Satellite Fleet",
"sql": "INSERT INTO `SES Satellite Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('William Young', '69.6', '58.7', 'Chicago', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0692 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Sydney',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Deutsche Bahn Train Schedule` ORDER BY `Platforms` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Deutsche Bahn Train Schedule",
"sql": "SELECT `From` FROM `Deutsche Bahn Train Schedule` ORDER BY `Platforms` DESC LIMIT 1;",
"label": [
"Sydney"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1095 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(47.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`No`) FROM `Pop Album Chart`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "Pop Album Chart",
"sql": "SELECT MAX(`No`) FROM `Pop Album Chart`;",
"label": [
"47.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0961 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Physics_Research_Papers` WHERE `Venue` = 'EMNLP'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting_retry",
"table_name": "Physics_Research_Papers",
"sql": "SELECT COUNT(*) FROM `Physics_Research_Papers` WHERE `Venue` = 'EMNLP';",
"label": [
"4"
],
"wrong_sql": "SELECT COUNT(*) FROM `Physics_Research_Papers` WHERE `Venue` = 'EMNLPs';",
"wrong_val": "EMNLPs",
"correct_val": "EMNLP",
"where_col": "Venue",
"error_col": null,
"error_reason": null
} | dbbench_sft_1063 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Athlete', 'Canada' for 'Event', '7.5' for 'Race 1\nTime', '59.5' for 'Race 2\nTime', '96.8' for 'Total\nTime', '89' for 'Total\nRank'.\nThe name of this table is Cross-Country Athletes Results, and the hea... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Cross-Country Athletes Results",
"sql": "INSERT INTO `Cross-Country Athletes Results` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Epsilon', 'Canada', '7.5', '59.5', '96.8', '89');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0312 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Summer Olympics Medal Count` (`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Summer Olympics Medal Count",
"sql": "INSERT INTO `Summer Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('31', 'Beta', '70', '85', '1', '68');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Summer Olympics Medal Count` (Rank, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('31', 'Beta', '70', '85', '1', '68');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0035 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '96' for 'No', 'Delta' for 'Name', 'San Antonio' for 'From', 'Epsilon' for 'To', '94' for 'Distance (km)', '64' for 'Platforms'.\nThe name of this table is Railway Stations France, and the headers of this table are No,Na... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Railway Stations France",
"sql": "INSERT INTO `Railway Stations France` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('96', 'Delta', 'San Antonio', 'Epsilon', '94', '64');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0609 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('8734',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `15 to 17` FROM `Southern Census Data` WHERE `Region` = 'Kazan'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Southern Census Data",
"sql": "SELECT `15 to 17` FROM `Southern Census Data` WHERE `Region` = 'Kazan';",
"label": [
"8734"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0320 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Luzon',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Island` FROM `Islands of Scotland` ORDER BY `Rank` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Islands of Scotland",
"sql": "SELECT `Island` FROM `Islands of Scotland` ORDER BY `Rank` ASC LIMIT 1;",
"label": [
"Luzon"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1097 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '60' for 'Rank', 'Beta' for 'Nation', '10' for 'Gold', '93' for 'Silver', '1' for 'Bronze', '63' for 'Total'.\nThe name of this table is Winter Olympics Medal Count, and the headers of this table are Rank,Nation,Gold,Sil... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Winter Olympics Medal Count",
"sql": "INSERT INTO `Winter Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('60', 'Beta', '10', '93', '1', '63');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1026 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `2017_Formula_One_Season` WHERE `Time/Retired` = '1:29:29.123'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "2017_Formula_One_Season",
"sql": "SELECT COUNT(*) FROM `2017_Formula_One_Season` WHERE `Time/Retired` = '1:29:29.123';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1004 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Morning Show',), ('Late Night',), ('Prime Time',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `Channel 4 Programming` WHERE `Rating` > 6"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "Channel 4 Programming",
"sql": "SELECT `Title` FROM `Channel 4 Programming` WHERE `Rating` > 6;",
"label": [
"Morning Show",
"Late Night",
"Prime Time"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0525 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Release', 'Epsilon' for 'Title', 'Epsilon' for 'Format', 'Philippines' for 'Label', '66' for 'No'.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Music Releases",
"sql": "INSERT INTO `Music Releases` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Alpha', 'Epsilon', 'Epsilon', 'Philippines', '66');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1064 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Eutelsat-1': set Downlink (MHz) to 16.8, Uplink (MHz) to 84.7, System to Phoenix.\nThe name of this table is Satellite_Communications_Data, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Satellite_Communications_Data",
"sql": "UPDATE `Satellite_Communications_Data` SET `Downlink (MHz)` = '16.8', `Uplink (MHz)` = '84.7', `System` = 'Phoenix' WHERE `Name` = 'Eutelsat-1';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0409 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(200.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Dosage (mg)`) FROM `FDA Approved Medications` WHERE `Type` = 'Capsule'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG",
"table_name": "FDA Approved Medications",
"sql": "SELECT AVG(`Dosage (mg)`) FROM `FDA Approved Medications` WHERE `Type` = 'Capsule';",
"label": [
"200.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0539 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `World Championships Competition Records` WHERE `Event` = 'Giant Slalom'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "World Championships Competition Records",
"sql": "SELECT COUNT(*) FROM `World Championships Competition Records` WHERE `Event` = 'Giant Slalom';",
"label": [
"2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0695 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('February 14, 1963',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Date` FROM `Argentina Match History` WHERE `Competition` = 'World Cup'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Argentina Match History",
"sql": "SELECT `Date` FROM `Argentina Match History` WHERE `Competition` = 'World Cup';",
"label": [
"February 14, 1963"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0339 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Donna Miller' for 'Release', 'Alpha' for 'Title', 'Czech Republic' for 'Format', 'Ronald Jones' for 'Label', '12' for 'No'.\nThe name of this table is R&B_Album_Chart, and the headers of this table are Release,Title,For... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "R&B_Album_Chart",
"sql": "INSERT INTO `R&B_Album_Chart` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Donna Miller', 'Alpha', 'Czech Republic', 'Ronald Jones', '12');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0930 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'June 10, 2002': set Attendance to 12, Result to Jessica Scott.\nThe name of this table is Sharks Season Results, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"role": "assistant",
"con... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Sharks Season Results",
"sql": "UPDATE `Sharks Season Results` SET `Attendance` = '12', `Result` = 'Jessica Scott' WHERE `Date` = 'June 10, 2002';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0624 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6395.3,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Uplink (MHz)`) FROM `Satellite Communications Data` WHERE `System` = 'Ka-Band'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX_retry",
"table_name": "Satellite Communications Data",
"sql": "SELECT MAX(`Uplink (MHz)`) FROM `Satellite Communications Data` WHERE `System` = 'Ka-Band';",
"label": [
"6395.3"
],
"wrong_sql": "SELECT MAX(`Uplink (MHz)`) FROM `Satellite Communications Data` WHERE `System` = 'KA-BAND';",
"wrong_val": "KA-BAND",
"correct_val": "Ka-Band",
"where_col": "System",
"error_col": null,
"error_reason": null
} | dbbench_sft_0724 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Cell Receptor Database` WHERE `Cell type` = 'Neuron'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting_error_recovery",
"table_name": "Cell Receptor Database",
"sql": "SELECT COUNT(*) FROM `Cell Receptor Database` WHERE `Cell type` = 'Neuron';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Cell Receptor Database` WHERE Cell type = 'Neuron';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Cell type",
"error_reason": "special"
} | dbbench_sft_1133 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Sharon Rivera',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Driver` FROM `2004 Formula One Season` WHERE `Time/Retired` = 'Engine'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "2004 Formula One Season",
"sql": "SELECT `Driver` FROM `2004 Formula One Season` WHERE `Time/Retired` = 'Engine';",
"label": [
"Sharon Rivera"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0598 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Name' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `World Higher Education Data` (`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "World Higher Education Data",
"sql": "INSERT INTO `World Higher Education Data` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('47', 'Alpha', 'Epsilon', '18', '79.3');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `World Higher Education Data` (`Rank`, Name, `Country`, `Students`, `Score`) VALUES ('47', 'Alpha', 'Epsilon', '18', '79.3');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0216 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '35' for 'No', 'Toronto' for 'Driver', 'Epsilon' for 'Time/Retired', '34' for 'Laps', '62.6' for 'Points'.\nThe name of this table is F1 Spa Grand Prix Results, and the headers of this table are No,Driver,Time/Retired,La... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "F1 Spa Grand Prix Results",
"sql": "INSERT INTO `F1 Spa Grand Prix Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('35', 'Toronto', 'Epsilon', '34', '62.6');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0487 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Time' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `TV Schedule Spring 2023` (`Time... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "TV Schedule Spring 2023",
"sql": "INSERT INTO `TV Schedule Spring 2023` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Gamma', 'Delta', '40', 'Alpha', '97.8');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `TV Schedule Spring 2023` (Time, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Gamma', 'Delta', '40', 'Alpha', '97.8');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time",
"error_reason": "reserved"
} | dbbench_sft_1156 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('22',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `Helio Castroneves Career Stats` WHERE `Car` = '#52'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Helio Castroneves Career Stats",
"sql": "SELECT `Rank` FROM `Helio Castroneves Career Stats` WHERE `Car` = '#52';",
"label": [
"22"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1099 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Moscow': set 15 to 17 to 62.\nThe name of this table is Southern Census Data, and the headers of this table are Region,Population,15 to 17,18 to 19,20 to 24."
},
{
"role": "assistant",
"content": "Final: UPDATE `Southern... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Southern Census Data",
"sql": "UPDATE `Southern Census Data` SET `15 to 17` = '62' WHERE `Region` = 'Moscow';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0843 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('6.8',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rating` FROM `TV Schedule Spring 2023` WHERE `Time` = '21:00'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "TV Schedule Spring 2023",
"sql": "SELECT `Rating` FROM `TV Schedule Spring 2023` WHERE `Time` = '21:00';",
"label": [
"6.8"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0805 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rank`) FROM `Sharks_Season_Results` WHERE `Date` = 'March 9, 2015'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX_retry",
"table_name": "Sharks_Season_Results",
"sql": "SELECT MAX(`Rank`) FROM `Sharks_Season_Results` WHERE `Date` = 'March 9, 2015';",
"label": [
"1.0"
],
"wrong_sql": "SELECT MAX(`Rank`) FROM `Sharks_Season_Results` WHERE `Date` = 'March';",
"wrong_val": "March",
"correct_val": "March 9, 2015",
"where_col": "Date",
"error_col": null,
"error_reason": null
} | dbbench_sft_0892 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Date', 'Epsilon' for 'Opponent', 'Epsilon' for 'Result', 'Nigeria' for 'Score', '33' for 'Rank', '100' for 'Attendance'.\nThe name of this table is Hawks Season Results, and the headers of this table are Dat... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Hawks Season Results",
"sql": "INSERT INTO `Hawks Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Alpha', 'Epsilon', 'Epsilon', 'Nigeria', '33', '100');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1023 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Level' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Real Estate 2019` (`Address`, ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Real Estate 2019",
"sql": "INSERT INTO `Real Estate 2019` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Austria', '22', '64', '93', '78');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Real Estate 2019` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, Level) VALUES ('Austria', '22', '64', '93', '78');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Level",
"error_reason": "reserved"
} | dbbench_sft_0931 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('3736.7',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Downlink (MHz)` FROM `Eutelsat_Satellite_Fleet` WHERE `System` = 'C-Band'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_error_recovery",
"table_name": "Eutelsat_Satellite_Fleet",
"sql": "SELECT `Downlink (MHz)` FROM `Eutelsat_Satellite_Fleet` WHERE `System` = 'C-Band';",
"label": [
"3736.7"
],
"wrong_sql": "SELECT `Downlink (MHz)` FROM `Eutelsat_Satellite_Fleet` WHERE System = 'C-Band';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "System",
"error_reason": "reserved"
} | dbbench_sft_0112 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Toronto Property Listings` WHERE `Address` = '436 Lake St'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Toronto Property Listings",
"sql": "SELECT COUNT(*) FROM `Toronto Property Listings` WHERE `Address` = '436 Lake St';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0971 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(94549.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Votes`) FROM `New_York_Election_Results`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "New_York_Election_Results",
"sql": "SELECT MAX(`Votes`) FROM `New_York_Election_Results`;",
"label": [
"94549.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1138 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Chhatisgarh Express': set Distance (km) to 5, Platforms to 44.\nThe name of this table is Railway Stations UK, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content"... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Railway Stations UK",
"sql": "UPDATE `Railway Stations UK` SET `Distance (km)` = '5', `Platforms` = '44' WHERE `Name` = 'Chhatisgarh Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0750 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Release', 'Alpha' for 'Title', 'Beta' for 'Format', 'Beta' for 'Label', '75' for 'No'.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Music Releases",
"sql": "INSERT INTO `Music Releases` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Delta', 'Alpha', 'Beta', 'Beta', '75');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0212 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '60' for 'Rank', 'Patricia Rodriguez' for 'Name', 'Beta' for 'Country', '33' for 'Students', '62.2' for 'Score'.\nThe name of this table is Americas Higher Education Data, and the headers of this table are Rank,Name,Coun... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Americas Higher Education Data",
"sql": "INSERT INTO `Americas Higher Education Data` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('60', 'Patricia Rodriguez', 'Beta', '33', '62.2');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0970 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Timothy Martinez': set Status to Timothy Ramirez, Votes to 80, Percentage to 3.5.\nThe name of this table is Texas_Election_Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assistan... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Texas_Election_Results",
"sql": "UPDATE `Texas_Election_Results` SET `Status` = 'Timothy Ramirez', `Votes` = '80', `Percentage` = '3.5' WHERE `Name` = 'Timothy Martinez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0397 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('57.1',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Score` FROM `University_Rankings_2023` WHERE `Country` = 'Mexico'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "University_Rankings_2023",
"sql": "SELECT `Score` FROM `University_Rankings_2023` WHERE `Country` = 'Mexico';",
"label": [
"57.1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0123 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Summer Olympics Medal Count` WHERE `Nation` = 'Czech Republic'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Summer Olympics Medal Count",
"sql": "SELECT COUNT(*) FROM `Summer Olympics Medal Count` WHERE `Nation` = 'Czech Republic';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0199 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Name' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Americas Higher Education Data` SET ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE_error_recovery",
"table_name": "Americas Higher Education Data",
"sql": "UPDATE `Americas Higher Education Data` SET `Score` = '28.1', `Students` = '51' WHERE `Name` = 'Stanford';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Americas Higher Education Data` SET `Score` = '28.1', `Students` = '51' WHERE Name = 'Stanford';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0861 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('4149.3',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Downlink (MHz)` FROM `Satellite_Communications_Data` WHERE `System` = 'Ku-Band'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Satellite_Communications_Data",
"sql": "SELECT `Downlink (MHz)` FROM `Satellite_Communications_Data` WHERE `System` = 'Ku-Band';",
"label": [
"4149.3"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0798 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(36509.4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Uplink (MHz)`) FROM `Viasat Satellite Fleet` WHERE `Status` = 'Active'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM_error_recovery",
"table_name": "Viasat Satellite Fleet",
"sql": "SELECT SUM(`Uplink (MHz)`) FROM `Viasat Satellite Fleet` WHERE `Status` = 'Active';",
"label": [
"36509.4"
],
"wrong_sql": "SELECT SUM(`Uplink (MHz)`) FROM `Viasat Satellite Fleet` WHERE Status = 'Active';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Status",
"error_reason": "reserved"
} | dbbench_sft_0804 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.