messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\n[(2009.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Year`) FROM `Journal of Engineering Publications` WHERE `Authors` = 'Kenneth Hall 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": "aggregation-MAX",
"table_name": "Journal of Engineering Publications",
"sql": "SELECT MAX(`Year`) FROM `Journal of Engineering Publications` WHERE `Authors` = 'Kenneth Hall et al.';",
"label": [
"2009.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0905 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('4-4',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Score` FROM `Germany Match History` WHERE `Opponent` = '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": "Germany Match History",
"sql": "SELECT `Score` FROM `Germany Match History` WHERE `Opponent` = 'Poland';",
"label": [
"4-4"
],
"wrong_sql": "SELECT `Score` FROM `Germany Match History` WHERE `Opponent` = 'POLAND';",
"wrong_val": "POLAND",
"correct_val": "Poland",
"where_col": "Opponent",
"error_col": null,
"error_reason": null
} | dbbench_sft_0925 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(16.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`No`) FROM `Railway Stations France`"
}
] | {
"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_error_recovery",
"table_name": "Railway Stations France",
"sql": "SELECT MAX(`No`) FROM `Railway Stations France`;",
"label": [
"16.0"
],
"wrong_sql": "SELECT MAX(No) FROM `Railway Stations France`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0029 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Title', '52' for 'Year', '24' for 'Citations', 'Delta' for 'Authors', 'Russia' for 'Venue'.\nThe name of this table is Engineering_Research_Papers, and the headers of this table are Title,Year,Citations,Auth... | {
"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": "Engineering_Research_Papers",
"sql": "INSERT INTO `Engineering_Research_Papers` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Gamma', '52', '24', 'Delta', 'Russia');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1171 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('25',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Dosage (mg)` FROM `FDA Approved Medications` WHERE `Date` = 'October 23, 1963'"
}
] | {
"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 `Dosage (mg)` FROM `FDA Approved Medications` WHERE `Date` = 'October 23, 1963';",
"label": [
"25"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1060 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('1424',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Distance (km)` FROM `Amtrak Train Schedule` WHERE `Name` = 'Shatabdi Express'"
}
] | {
"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": "Amtrak Train Schedule",
"sql": "SELECT `Distance (km)` FROM `Amtrak Train Schedule` WHERE `Name` = 'Shatabdi Express';",
"label": [
"1424"
],
"wrong_sql": "SELECT Distance (km) FROM `Amtrak Train Schedule` WHERE `Name` = 'Shatabdi Express';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Distance (km)",
"error_reason": "special"
} | dbbench_sft_0154 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('31',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Silver` FROM `Winter Olympics Medal Count` WHERE `Nation` = 'Russia'"
}
] | {
"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": "Winter Olympics Medal Count",
"sql": "SELECT `Silver` FROM `Winter Olympics Medal Count` WHERE `Nation` = 'Russia';",
"label": [
"31"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0807 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Paul Brown': set Votes to 93, Percentage to 80.4, Party to Updated Value.\nThe name of this table is 2010 General Election, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"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": "2010 General Election",
"sql": "UPDATE `2010 General Election` SET `Votes` = '93', `Percentage` = '80.4', `Party` = 'Updated Value' WHERE `Name` = 'Paul Brown';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0376 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('16',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `Panthers_Season_Results` WHERE `Score` = '2-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": "other_retry",
"table_name": "Panthers_Season_Results",
"sql": "SELECT `Rank` FROM `Panthers_Season_Results` WHERE `Score` = '2-1';",
"label": [
"16"
],
"wrong_sql": "SELECT `Rank` FROM `Panthers_Season_Results` WHERE `Score` = '2-1 ';",
"wrong_val": "2-1 ",
"correct_val": "2-1",
"where_col": "Score",
"error_col": null,
"error_reason": null
} | dbbench_sft_0111 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Ronald Thompson',), ('Steven Wilson',), ('Kenneth Smith',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Driver` FROM `2020_Formula_One_Season` WHERE `No` > 43"
}
] | {
"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": "2020_Formula_One_Season",
"sql": "SELECT `Driver` FROM `2020_Formula_One_Season` WHERE `No` > 43;",
"label": [
"Ronald Thompson",
"Steven Wilson",
"Kenneth Smith"
],
"wrong_sql": "SELECT `Driver` FROM `2020_Formula_One_Season` WHERE No > 43;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_1024 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Athlete', 'Beijing' for 'Event', '81.3' for 'Race 1\nTime', '32.5' for 'Race 2\nTime', '74.8' for 'Total\nTime', '82' for 'Total\nRank'.\nThe name of this table is World Championships Competition Records, an... | {
"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 Championships Competition Records",
"sql": "INSERT INTO `World Championships Competition Records` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Alpha', 'Beijing', '81.3', '32.5', '74.8', '82');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0521 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Analysis of Neural Networks': set Venue to New Entry, Citations to 2, Authors to Updated Value.\nThe name of this table is Biology Research Papers, and the headers of this table are Title,Year,Citations,Authors,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": "UPDATE",
"table_name": "Biology Research Papers",
"sql": "UPDATE `Biology Research Papers` SET `Venue` = 'New Entry', `Citations` = '2', `Authors` = 'Updated Value' WHERE `Title` = 'Analysis of Neural Networks';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0359 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'November 8, 2005': set Venue to New Entry.\nThe name of this table is Football_Matches_2010, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"content": "Final: UPDATE `Fo... | {
"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_2010",
"sql": "UPDATE `Football_Matches_2010` SET `Venue` = 'New Entry' WHERE `Date` = 'November 8, 2005';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0983 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Title', '98' for 'Year', '43' for 'Citations', 'Epsilon' for 'Authors', 'Delta' for 'Venue'.\nThe name of this table is Economics Research Papers, and the headers of this table are Title,Year,Citations,Autho... | {
"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": "Economics Research Papers",
"sql": "INSERT INTO `Economics Research Papers` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Delta', '98', '43', 'Epsilon', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0788 |
[
{
"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 `Command History 1960-1980` SET `Posi... | {
"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": "Command History 1960-1980",
"sql": "UPDATE `Command History 1960-1980` SET `Position` = 'Lisa Mitchell', `From` = 'New Entry' WHERE `Name` = 'LTG Richard Robinson';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Command History 1960-1980` SET `Position` = 'Lisa Mitchell', `From` = 'New Entry' WHERE Name = 'LTG Richard Robinson';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0622 |
[
{
"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 `Europe 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": "Europe Higher Education Data",
"sql": "INSERT INTO `Europe Higher Education Data` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('62', 'Epsilon', 'Gamma', '98', '93.9');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Europe Higher Education Data` (`Rank`, Name, `Country`, `Students`, `Score`) VALUES ('62', 'Epsilon', 'Gamma', '98', '93.9');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_1165 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '148 Elm St': set Year to 9.\nThe name of this table is Toronto Property Listings, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE `Toronto 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": "UPDATE",
"table_name": "Toronto Property Listings",
"sql": "UPDATE `Toronto Property Listings` SET `Year` = '9' WHERE `Address` = '148 Elm St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0621 |
[
{
"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 `2004_Olympic_Medal_Tally` (`Ran... | {
"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": "2004_Olympic_Medal_Tally",
"sql": "INSERT INTO `2004_Olympic_Medal_Tally` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('100', 'Epsilon', '49', '83', '36', '37');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2004_Olympic_Medal_Tally` (Rank, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('100', 'Epsilon', '49', '83', '36', '37');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0366 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '76' for 'Year', 'Gamma' for 'Title', 'Gamma' for 'Genre', '82.3' for 'Box Office', '15.7' for 'Rating', 'Epsilon' for 'Release'.\nThe name of this table is Actress Filmography, and the headers of this table are Year,Tit... | {
"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": "Actress Filmography",
"sql": "INSERT INTO `Actress Filmography` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('76', 'Gamma', 'Gamma', '82.3', '15.7', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1153 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `F1 Silverstone Grand Prix Results` WHERE `Driver` = 'Daniel Miller'"
}
] | {
"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": "F1 Silverstone Grand Prix Results",
"sql": "SELECT COUNT(*) FROM `F1 Silverstone Grand Prix Results` WHERE `Driver` = 'Daniel Miller';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1094 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Montreal' for 'Address', '49' for 'Price', '82' for 'Area\n(sq ft)', '34' for 'Year', '17' for 'Level'.\nThe name of this table is Paris Property Listings, and the headers of this table are Address,Price,Area\n(sq ft),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": "Paris Property Listings",
"sql": "INSERT INTO `Paris Property Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Montreal', '49', '82', '34', '17');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0169 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Ibuprofen',), ('Amlodipine',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Drug_Approval_Database` WHERE `Dosage (mg)` > 200"
}
] | {
"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": "Drug_Approval_Database",
"sql": "SELECT `Name` FROM `Drug_Approval_Database` WHERE `Dosage (mg)` > 200;",
"label": [
"Ibuprofen",
"Amlodipine"
],
"wrong_sql": "SELECT `Name` FROM `Drug_Approval_Database` WHERE Dosage (mg) > 200;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Dosage (mg)",
"error_reason": "special"
} | dbbench_sft_1162 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('30',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Duration` FROM `TV Schedule Fall 2023` WHERE `Title` = 'Weekend Special'"
}
] | {
"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 Fall 2023",
"sql": "SELECT `Duration` FROM `TV Schedule Fall 2023` WHERE `Title` = 'Weekend Special';",
"label": [
"30"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0869 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1988.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Year`) FROM `Actress Filmography` WHERE `Release` = 'February 8, 1985'"
}
] | {
"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": "Actress Filmography",
"sql": "SELECT AVG(`Year`) FROM `Actress Filmography` WHERE `Release` = 'February 8, 1985';",
"label": [
"1988.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0474 |
[
{
"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 `Drug Approval Database` (`Name`... | {
"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": "Drug Approval Database",
"sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Alpha', 'Beta', 'Gamma', '93', '3.0');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Drug Approval Database` (Name, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Alpha', 'Beta', 'Gamma', '93', '3.0');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0528 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#17': set Laps to 19, Start to 45.\nThe name of this table is Race Results, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Race Results` SET `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": "UPDATE",
"table_name": "Race Results",
"sql": "UPDATE `Race Results` SET `Laps` = '19', `Start` = '45' WHERE `Car` = '#17';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0340 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Israel',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Nation` FROM `Summer Olympics Medal Count` ORDER BY `Rank` 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_error_recovery",
"table_name": "Summer Olympics Medal Count",
"sql": "SELECT `Nation` FROM `Summer Olympics Medal Count` ORDER BY `Rank` DESC LIMIT 1;",
"label": [
"Israel"
],
"wrong_sql": "SELECT `Nation` FROM `Summer Olympics Medal Count` ORDER BY Rank DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0603 |
[
{
"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: UPDATE `TV Schedule Summer 2024` SET `Type` ... | {
"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": "TV Schedule Summer 2024",
"sql": "UPDATE `TV Schedule Summer 2024` SET `Type` = 'Elizabeth Green' WHERE `Time` = '23:30';",
"label": [
"done"
],
"wrong_sql": "UPDATE `TV Schedule Summer 2024` SET `Type` = 'Elizabeth Green' WHERE Time = '23:30';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time",
"error_reason": "reserved"
} | dbbench_sft_0217 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Beyond Classification': set Venue to New Entry, Citations to 44, Year to 100.\nThe name of this table is Journal of Psychology Publications, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"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": "Journal of Psychology Publications",
"sql": "UPDATE `Journal of Psychology Publications` SET `Venue` = 'New Entry', `Citations` = '44', `Year` = '100' WHERE `Title` = 'Beyond Classification';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0899 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Title', '69' for 'Year', '98' for 'Citations', 'Joshua Garcia' for 'Authors', 'San Antonio' for 'Venue'.\nThe name of this table is Journal of Chemistry 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 Chemistry Publications",
"sql": "INSERT INTO `Journal of Chemistry Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Beta', '69', '98', 'Joshua Garcia', 'San Antonio');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0170 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(80.67,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Race 1 Time`) FROM `Cross-Country Athletes Results` WHERE `Athlete` = 'Michael Stewart'"
}
] | {
"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_error_recovery",
"table_name": "Cross-Country Athletes Results",
"sql": "SELECT MAX(`Race 1\nTime`) FROM `Cross-Country Athletes Results` WHERE `Athlete` = 'Michael Stewart';",
"label": [
"80.67"
],
"wrong_sql": "SELECT MAX(Race 1\nTime) FROM `Cross-Country Athletes Results` WHERE `Athlete` = 'Michael Stewart';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Race 1\nTime",
"error_reason": "special"
} | dbbench_sft_0325 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'May 11, 1999': set Competition to Dubai, Opponent to New Entry.\nThe name of this table is Argentina Match History, 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": "Argentina Match History",
"sql": "UPDATE `Argentina Match History` SET `Competition` = 'Dubai', `Opponent` = 'New Entry' WHERE `Date` = 'May 11, 1999';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0689 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Yale': set Country to New Entry.\nThe name of this table is Europe Higher Education Data, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"role": "assistant",
"content": "Final: UPDATE `Europe Hig... | {
"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": "Europe Higher Education Data",
"sql": "UPDATE `Europe Higher Education Data` SET `Country` = 'New Entry' WHERE `Name` = 'Yale';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0218 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'August 10, 1963': set Opponent to New Entry, Rank to 38, Attendance to 77.\nThe name of this table is Hawks Season Results, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"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": "Hawks Season Results",
"sql": "UPDATE `Hawks Season Results` SET `Opponent` = 'New Entry', `Rank` = '38', `Attendance` = '77' WHERE `Date` = 'August 10, 1963';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1086 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '24' for 'Year', 'Gamma' for 'Car', '40' for 'Start', '37.7' for 'Qual', '25' for 'Rank', '51' for 'Finish', '61' for 'Laps'.\nThe name of this table is Race Results, and the headers of this table are Year,Car,Start,Qual... | {
"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 ('24', 'Gamma', '40', '37.7', '25', '51', '61');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0355 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '66' for 'Year', 'Gamma' for 'Car', '75' for 'Start', '3.7' for 'Qual', '41' for 'Rank', '16' for 'Finish', '72' for 'Laps'.\nThe name of this table is Race Results, and the headers of this table are Year,Car,Start,Qual,... | {
"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 ('66', 'Gamma', '75', '3.7', '41', '16', '72');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0830 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Region', '94' for 'Population', '61' for '15 to 17', '71' for '18 to 19', '22' for '20 to 24'.\nThe name of this table is Eastern 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": "Eastern Census Data",
"sql": "INSERT INTO `Eastern Census Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Gamma', '94', '61', '71', '22');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0640 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Jeffrey King': set Event to New Entry, Total\nTime to 9.2.\nThe name of this table is World Championships Competition Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total\nRank."
},... | {
"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": "World Championships Competition Records",
"sql": "UPDATE `World Championships Competition Records` SET `Event` = 'New Entry', `Total\nTime` = '9.2' WHERE `Athlete` = 'Jeffrey King';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1142 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Cell type', 'Michelle Baker' for 'Organ/System', 'Alpha' for 'Activators ligands --> Gq-GPCRs', 'Gamma' for 'Effects'.\nThe name of this table is Pharmacological Data Table, and the headers of this table are... | {
"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": "Pharmacological Data Table",
"sql": "INSERT INTO `Pharmacological Data Table` (`Cell type`, `Organ/System`, `Activators ligands --> Gq-GPCRs`, `Effects`) VALUES ('Gamma', 'Michelle Baker', 'Alpha', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0478 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('50',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Dosage (mg)` FROM `Drug Approval Database` WHERE `Date` = 'June 2, 1986'"
}
] | {
"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": "Drug Approval Database",
"sql": "SELECT `Dosage (mg)` FROM `Drug Approval Database` WHERE `Date` = 'June 2, 1986';",
"label": [
"50"
],
"wrong_sql": "SELECT `Dosage (mg)` FROM `Drug Approval Database` WHERE `Date` = 'June 2, 1986 ';",
"wrong_val": "June 2, 1986 ",
"correct_val": "June 2, 1986",
"where_col": "Date",
"error_col": null,
"error_reason": null
} | dbbench_sft_0744 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Thomas Hall' for 'Name', '96.7' for 'Uplink (MHz)', '91.4' for 'Downlink (MHz)', 'Beta' for 'System', 'Gamma' for 'Status'.\nThe name of this table is Intelsat_Satellite_Fleet, and the headers of this table are Name,Upl... | {
"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": "Intelsat_Satellite_Fleet",
"sql": "INSERT INTO `Intelsat_Satellite_Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Thomas Hall', '96.7', '91.4', 'Beta', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1151 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Real Estate 2023` WHERE `Address` = '948 Oak 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_retry",
"table_name": "Real Estate 2023",
"sql": "SELECT COUNT(*) FROM `Real Estate 2023` WHERE `Address` = '948 Oak St';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Real Estate 2023` WHERE `Address` = '948 OAK ST';",
"wrong_val": "948 OAK ST",
"correct_val": "948 Oak St",
"where_col": "Address",
"error_col": null,
"error_reason": null
} | dbbench_sft_0286 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(247.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Citations`) FROM `Journal_of_Engineering_Publications` WHERE `Authors` = 'Sarah Nelson 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": "aggregation-MAX",
"table_name": "Journal_of_Engineering_Publications",
"sql": "SELECT MAX(`Citations`) FROM `Journal_of_Engineering_Publications` WHERE `Authors` = 'Sarah Nelson et al.';",
"label": [
"247.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0297 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '70' for 'Rank', 'Norway' for 'Name', 'Delta' for 'Country', '4' for 'Students', '72.5' for 'Score'.\nThe name of this table is University_Rankings_2020, and the headers of this table are Rank,Name,Country,Students,Score... | {
"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 ('70', 'Norway', 'Delta', '4', '72.5');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0373 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'March 8, 1972': set Title to John Williams.\nThe name of this table is The Beatles Discography, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `The ... | {
"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": "The Beatles Discography",
"sql": "UPDATE `The Beatles Discography` SET `Title` = 'John Williams' WHERE `Release` = 'March 8, 1972';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0949 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(565709.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Students`) FROM `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": "aggregation-SUM",
"table_name": "Americas Higher Education Data",
"sql": "SELECT SUM(`Students`) FROM `Americas Higher Education Data`;",
"label": [
"565709.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0374 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `University_Rankings_2021` WHERE `Name` = 'Penn'"
}
] | {
"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": "University_Rankings_2021",
"sql": "SELECT COUNT(*) FROM `University_Rankings_2021` WHERE `Name` = 'Penn';",
"label": [
"4"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1029 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Active',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Status` FROM `Satellite_Communications_Data` ORDER BY `Uplink (MHz)` 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": "Satellite_Communications_Data",
"sql": "SELECT `Status` FROM `Satellite_Communications_Data` ORDER BY `Uplink (MHz)` ASC LIMIT 1;",
"label": [
"Active"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0653 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Name', 'Margaret Clark' for 'Date', 'San Antonio' for 'Type', '53' for 'Number', '96.8' for 'Dosage (mg)'.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,... | {
"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": "Drug Approval Database",
"sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Delta', 'Margaret Clark', 'San Antonio', '53', '96.8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0968 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Islands of Scotland` WHERE `Country/Region` = 'Malaysia'"
}
] | {
"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": "Islands of Scotland",
"sql": "SELECT COUNT(*) FROM `Islands of Scotland` WHERE `Country/Region` = 'Malaysia';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Islands of Scotland` WHERE `Country/Region` = 'Malaysia ';",
"wrong_val": "Malaysia ",
"correct_val": "Malaysia",
"where_col": "Country/Region",
"error_col": null,
"error_reason": null
} | dbbench_sft_0876 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(161.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`No`) FROM `Hip-Hop Album Chart` WHERE `Format` = 'Vinyl'"
}
] | {
"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": "Hip-Hop Album Chart",
"sql": "SELECT SUM(`No`) FROM `Hip-Hop Album Chart` WHERE `Format` = 'Vinyl';",
"label": [
"161.0"
],
"wrong_sql": "SELECT SUM(No) FROM `Hip-Hop Album Chart` WHERE `Format` = 'Vinyl';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0955 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('St. Petersburg',), ('Kazan',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Population by Age Group and Region in Russia` WHERE `15 to 17` < 43130"
}
] | {
"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": "Population by Age Group and Region in Russia",
"sql": "SELECT `Region` FROM `Population by Age Group and Region in Russia` WHERE `15 to 17` < 43130;",
"label": [
"St. Petersburg",
"Kazan"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0613 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('#27',), ('#72',), ('#17',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Car` FROM `Indianapolis 500 History` WHERE `Start` > 17"
}
] | {
"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": "Indianapolis 500 History",
"sql": "SELECT `Car` FROM `Indianapolis 500 History` WHERE `Start` > 17;",
"label": [
"#27",
"#72",
"#17"
],
"wrong_sql": "SELECT `Car` FROM `Indianapolis 500 History` WHERE Start > 17;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Start",
"error_reason": "reserved"
} | dbbench_sft_1113 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Intelsat-20': set Uplink (MHz) to 32.6, System to Amsterdam.\nThe name of this table is SES Satellite Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"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": "SES Satellite Fleet",
"sql": "UPDATE `SES Satellite Fleet` SET `Uplink (MHz)` = '32.6', `System` = 'Amsterdam' WHERE `Name` = 'Intelsat-20';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1067 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Division One 2011 Season Standings` WHERE `Opponent` = 'Vipers'"
}
] | {
"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": "Division One 2011 Season Standings",
"sql": "SELECT COUNT(*) FROM `Division One 2011 Season Standings` WHERE `Opponent` = 'Vipers';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0333 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Active',), ('Testing',), ('Active',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Status` FROM `Telesat Satellite Fleet` WHERE `Uplink (MHz)` < 6096"
}
] | {
"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": "Telesat Satellite Fleet",
"sql": "SELECT `Status` FROM `Telesat Satellite Fleet` WHERE `Uplink (MHz)` < 6096;",
"label": [
"Active",
"Testing",
"Active"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1012 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Time', 'Delta' for 'Title', '62' for 'Duration', 'Japan' for 'Type', '18.8' for 'Rating'.\nThe name of this table is Channel 4 Programming, 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": "Channel 4 Programming",
"sql": "INSERT INTO `Channel 4 Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Beta', 'Delta', '62', 'Japan', '18.8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0637 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(43820.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Downlink (MHz)`) FROM `SES Satellite Fleet`"
}
] | {
"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": "SES Satellite Fleet",
"sql": "SELECT SUM(`Downlink (MHz)`) FROM `SES Satellite Fleet`;",
"label": [
"43820.0"
],
"wrong_sql": "SELECT SUM(Downlink (MHz)) FROM `SES Satellite Fleet`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Downlink (MHz)",
"error_reason": "special"
} | dbbench_sft_0392 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Samara': set 20 to 24 to 34, 15 to 17 to 90, 18 to 19 to 72.\nThe name of this table is Northern_Census_Data, and the headers of this table are Region,Population,15 to 17,18 to 19,20 to 24."
},
{
"role": "assistant",
"co... | {
"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": "Northern_Census_Data",
"sql": "UPDATE `Northern_Census_Data` SET `20 to 24` = '34', `15 to 17` = '90', `18 to 19` = '72' WHERE `Region` = 'Samara';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0560 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Address', '68' for 'Price', '16' for 'Area\n(sq ft)', '64' for 'Year', '87' for 'Level'.\nThe name of this table is Real_Estate_2018, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."... | {
"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": "Real_Estate_2018",
"sql": "INSERT INTO `Real_Estate_2018` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Beta', '68', '16', '64', '87');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0762 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Mark Scott': set Points to 4.3, Time/Retired to Edward Phillips.\nThe name of this table is F1 Spa Grand Prix Results, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"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": "F1 Spa Grand Prix Results",
"sql": "UPDATE `F1 Spa Grand Prix Results` SET `Points` = '4.3', `Time/Retired` = 'Edward Phillips' WHERE `Driver` = 'Mark Scott';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0416 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(174.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Finish`) FROM `Race_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-SUM",
"table_name": "Race_Results",
"sql": "SELECT SUM(`Finish`) FROM `Race_Results`;",
"label": [
"174.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0445 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Atorvastatin': set Date to New Entry.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assistant",
"content": "Final: UPDATE `Drug Appro... | {
"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": "Drug Approval Database",
"sql": "UPDATE `Drug Approval Database` SET `Date` = 'New Entry' WHERE `Name` = 'Atorvastatin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0459 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Rajdhani Express': set Platforms to 31, No to 49.\nThe name of this table is Railway_Stations_India, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content": "Final: ... | {
"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_India",
"sql": "UPDATE `Railway_Stations_India` SET `Platforms` = '31', `No` = '49' WHERE `Name` = 'Rajdhani Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0094 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2024.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Year`) FROM `Biology_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": "aggregation-MAX_retry",
"table_name": "Biology_Research_Papers",
"sql": "SELECT MAX(`Year`) FROM `Biology_Research_Papers` WHERE `Venue` = 'EMNLP';",
"label": [
"2024.0"
],
"wrong_sql": "SELECT MAX(`Year`) FROM `Biology_Research_Papers` WHERE `Venue` = 'EMNLP ';",
"wrong_val": "EMNLP ",
"correct_val": "EMNLP",
"where_col": "Venue",
"error_col": null,
"error_reason": null
} | dbbench_sft_1188 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Chicago',), ('Johns Hopkins',), ('Oxford',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `University Rankings 2021` WHERE `Students` < 19484"
}
] | {
"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": "University Rankings 2021",
"sql": "SELECT `Name` FROM `University Rankings 2021` WHERE `Students` < 19484;",
"label": [
"Chicago",
"Johns Hopkins",
"Oxford"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0948 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(48797.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Votes`) FROM `Georgia Election Results` WHERE `Party` = 'Republican'"
}
] | {
"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": "Georgia Election Results",
"sql": "SELECT SUM(`Votes`) FROM `Georgia Election Results` WHERE `Party` = 'Republican';",
"label": [
"48797.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0612 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Elizabeth Lopez': set Party to London, Votes to 49, Percentage to 20.8.\nThe name of this table is Florida Election Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"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": "Florida Election Results",
"sql": "UPDATE `Florida Election Results` SET `Party` = 'London', `Votes` = '49', `Percentage` = '20.8' WHERE `Name` = 'Elizabeth Lopez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0238 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '98' for 'No', 'Helsinki' for 'Driver', 'Beta' for 'Time/Retired', '24' for 'Laps', '56.6' for 'Points'.\nThe name of this table is F1 Monza 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 Monza Grand Prix Results",
"sql": "INSERT INTO `F1 Monza Grand Prix Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('98', 'Helsinki', 'Beta', '24', '56.6');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0182 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Pakistan' for 'Time', 'Epsilon' for 'Title', '85' for 'Duration', 'Delta' for 'Type', '95.3' for 'Rating'.\nThe name of this table is TV Schedule Fall 2023, and the headers of this table are Time,Title,Duration,Type,Rat... | {
"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 ('Pakistan', 'Epsilon', '85', 'Delta', '95.3');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0747 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Portugal',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Opponent` FROM `Football Matches 2022` WHERE `Competition` = 'Euro'"
}
] | {
"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 2022",
"sql": "SELECT `Opponent` FROM `Football Matches 2022` WHERE `Competition` = 'Euro';",
"label": [
"Portugal"
],
"wrong_sql": "SELECT `Opponent` FROM `Football Matches 2022` WHERE `Competition` = 'Euros';",
"wrong_val": "Euros",
"correct_val": "Euro",
"where_col": "Competition",
"error_col": null,
"error_reason": null
} | dbbench_sft_0839 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Mexico City',), ('Paris',), ('Sydney',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `To` FROM `Railway Stations UK` WHERE `Distance (km)` > 669"
}
] | {
"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": "Railway Stations UK",
"sql": "SELECT `To` FROM `Railway Stations UK` WHERE `Distance (km)` > 669;",
"label": [
"Mexico City",
"Paris",
"Sydney"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0641 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#63': set Rank to 51, Laps to 7.\nThe name of this table is Tony_Gulotta_Career_Stats, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Tony_Gulot... | {
"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": "Tony_Gulotta_Career_Stats",
"sql": "UPDATE `Tony_Gulotta_Career_Stats` SET `Rank` = '51', `Laps` = '7' WHERE `Car` = '#63';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0776 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Race_Results` WHERE `Car` = '#47'"
}
] | {
"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": "Race_Results",
"sql": "SELECT COUNT(*) FROM `Race_Results` WHERE `Car` = '#47';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Race_Results` WHERE `Car` = '#47s';",
"wrong_val": "#47s",
"correct_val": "#47",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_0242 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Brian Lewis' for 'Region', '73' for 'Population', '84' for '15 to 17', '72' for '18 to 19', '12' 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... | {
"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 ('Brian Lewis', '73', '84', '72', '12');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0817 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(5998.1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Uplink (MHz)`) FROM `Eutelsat Satellite Fleet` WHERE `Name` = 'SES-19'"
}
] | {
"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": "Eutelsat Satellite Fleet",
"sql": "SELECT SUM(`Uplink (MHz)`) FROM `Eutelsat Satellite Fleet` WHERE `Name` = 'SES-19';",
"label": [
"5998.1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1148 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Donald Harris': set Status to Singapore, Percentage to 14.0.\nThe name of this table is 2000_General_Election, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assistant",
"content": "Fi... | {
"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": "2000_General_Election",
"sql": "UPDATE `2000_General_Election` SET `Status` = 'Singapore', `Percentage` = '14.0' WHERE `Name` = 'Donald Harris';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0296 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Revisiting Classification': set Citations to 74, Authors to Updated Value.\nThe name of this table is Journal of Computer Science Publications, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"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": "Journal of Computer Science Publications",
"sql": "UPDATE `Journal of Computer Science Publications` SET `Citations` = '74', `Authors` = 'Updated Value' WHERE `Title` = 'Revisiting Classification';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0782 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#86': set Finish to 56, Start to 48.\nThe name of this table is Race Results, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Race Results` 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",
"table_name": "Race Results",
"sql": "UPDATE `Race Results` SET `Finish` = '56', `Start` = '48' WHERE `Car` = '#86';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0002 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Platelet': set Effects to New Entry, Organ/System to Updated Value, Activators ligands --> Gq-GPCRs to Updated Value.\nThe name of this table is Pharmacological_Data_Table, and the headers of this table are Cell type,Organ/System... | {
"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": "Pharmacological_Data_Table",
"sql": "UPDATE `Pharmacological_Data_Table` SET `Effects` = 'New Entry', `Organ/System` = 'Updated Value', `Activators ligands --> Gq-GPCRs` = 'Updated Value' WHERE `Cell type` = 'Platelet';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1074 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(19.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rank`) FROM `First_Division_2004_Season_Standings`"
}
] | {
"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_error_recovery",
"table_name": "First_Division_2004_Season_Standings",
"sql": "SELECT MAX(`Rank`) FROM `First_Division_2004_Season_Standings`;",
"label": [
"19.0"
],
"wrong_sql": "SELECT MAX(Rank) FROM `First_Division_2004_Season_Standings`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0143 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Jennifer Carter': set Race 1\nTime to 82.6.\nThe name of this table is European_Championships_Competition_Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total\nRank."
},
{
"ro... | {
"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": "European_Championships_Competition_Records",
"sql": "UPDATE `European_Championships_Competition_Records` SET `Race 1\nTime` = '82.6' WHERE `Athlete` = 'Jennifer Carter';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0036 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '7' for 'No', 'Beta' for 'Driver', 'Epsilon' for 'Time/Retired', '52' for 'Laps', '2.3' for 'Points'.\nThe name of this table is F1_Monaco_Grand_Prix_Results, and the headers of this table are No,Driver,Time/Retired,Laps... | {
"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_Monaco_Grand_Prix_Results",
"sql": "INSERT INTO `F1_Monaco_Grand_Prix_Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('7', 'Beta', 'Epsilon', '52', '2.3');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0816 |
[
{
"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 'No' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Nirvana Discography` (`Release`, ... | {
"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": "Nirvana Discography",
"sql": "INSERT INTO `Nirvana Discography` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Paul Sanchez', 'Linda Scott', 'Jennifer Nelson', 'Oslo', '4');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Nirvana Discography` (`Release`, `Title`, `Format`, `Label`, No) VALUES ('Paul Sanchez', 'Linda Scott', 'Jennifer Nelson', 'Oslo', '4');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0785 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '6:30': set Type to New Entry, Title to Seoul.\nThe name of this table is CBS Programming, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE `CBS Program... | {
"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": "CBS Programming",
"sql": "UPDATE `CBS Programming` SET `Type` = 'New Entry', `Title` = 'Seoul' WHERE `Time` = '6:30';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0571 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(111.42,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Race 2 Time`) FROM `World Cup Competition Records` WHERE `Athlete` = 'Donald Hill'"
}
] | {
"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": "World Cup Competition Records",
"sql": "SELECT MAX(`Race 2\nTime`) FROM `World Cup Competition Records` WHERE `Athlete` = 'Donald Hill';",
"label": [
"111.42"
],
"wrong_sql": "SELECT MAX(`Race 2\nTime`) FROM `World Cup Competition Records` WHERE `Athlete` = 'donald hill';",
"wrong_val": "donald hill",
"correct_val": "Donald Hill",
"where_col": "Athlete",
"error_col": null,
"error_reason": null
} | dbbench_sft_0589 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('6',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `Islands of Philippines` WHERE `Country/Region` = 'Canada'"
}
] | {
"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": "Islands of Philippines",
"sql": "SELECT `Rank` FROM `Islands of Philippines` WHERE `Country/Region` = 'Canada';",
"label": [
"6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0852 |
[
{
"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 'Distance (km)' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `SNCF_Train_Schedule` (... | {
"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": "SNCF_Train_Schedule",
"sql": "INSERT INTO `SNCF_Train_Schedule` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('78', 'Gamma', 'Beta', 'Epsilon', '83', '22');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `SNCF_Train_Schedule` (`No`, `Name`, `From`, `To`, Distance (km), `Platforms`) VALUES ('78', 'Gamma', 'Beta', 'Epsilon', '83', '22');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Distance (km)",
"error_reason": "special"
} | dbbench_sft_1057 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '94' for 'Year', 'Alpha' for 'Car', '67' for 'Start', '96.7' for 'Qual', '15' for 'Rank', '29' for 'Finish', '54' for 'Laps'.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Ca... | {
"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 ('94', 'Alpha', '67', '96.7', '15', '29', '54');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1001 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '90' for 'Rank', 'Beta' for 'Island', '31.0' for 'Area\n(km²)', '31.5' for 'Area\n(sq mi)', 'Israel' for 'Country/Region'.\nThe name of this table is World Islands Database, and the headers of this table are Rank,Island,... | {
"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 ('90', 'Beta', '31.0', '31.5', 'Israel');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1027 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(123.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Points`) FROM `F1 Monza Grand Prix 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-SUM",
"table_name": "F1 Monza Grand Prix Results",
"sql": "SELECT SUM(`Points`) FROM `F1 Monza Grand Prix Results`;",
"label": [
"123.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0779 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'SES-23': set Status to Updated Value, Uplink (MHz) to 67.1, Downlink (MHz) to 89.4.\nThe name of this table is Viasat Satellite Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"ro... | {
"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": "Viasat Satellite Fleet",
"sql": "UPDATE `Viasat Satellite Fleet` SET `Status` = 'Updated Value', `Uplink (MHz)` = '67.1', `Downlink (MHz)` = '89.4' WHERE `Name` = 'SES-23';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0135 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Central Express': set Platforms to 18, To to Joseph Thompson.\nThe name of this table is Deutsche Bahn Train Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"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": "Deutsche Bahn Train Schedule",
"sql": "UPDATE `Deutsche Bahn Train Schedule` SET `Platforms` = '18', `To` = 'Joseph Thompson' WHERE `Name` = 'Central Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0657 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Kevin Flores',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `2002 General Election` WHERE `Status` = 'Elected'"
}
] | {
"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": "2002 General Election",
"sql": "SELECT `Name` FROM `2002 General Election` WHERE `Status` = 'Elected';",
"label": [
"Kevin Flores"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0940 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Title', '57' for 'Year', '96' for 'Citations', 'Warsaw' for 'Authors', 'Sharon Phillips' for 'Venue'.\nThe name of this table is Journal of Psychology Publications, and the headers of this table are Title,Ye... | {
"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 Psychology Publications",
"sql": "INSERT INTO `Journal of Psychology Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Gamma', '57', '96', 'Warsaw', 'Sharon Phillips');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0309 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Nizhny Novgorod',), ('Yekaterinburg',), ('Novosibirsk',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Central Census Data` WHERE `Population` < 1789390"
}
] | {
"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": "Central Census Data",
"sql": "SELECT `Region` FROM `Central Census Data` WHERE `Population` < 1789390;",
"label": [
"Nizhny Novgorod",
"Yekaterinburg",
"Novosibirsk"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0546 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Telesat-14',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Telesat Satellite Fleet` ORDER BY `Uplink (MHz)` 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": "Telesat Satellite Fleet",
"sql": "SELECT `Name` FROM `Telesat Satellite Fleet` ORDER BY `Uplink (MHz)` DESC LIMIT 1;",
"label": [
"Telesat-14"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0460 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Budapest' for 'Name', '33.5' for 'Uplink (MHz)', '60.9' for 'Downlink (MHz)', 'Epsilon' for 'System', 'Sydney' for 'Status'.\nThe name of this table is Viasat_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": "Viasat_Satellite_Fleet",
"sql": "INSERT INTO `Viasat_Satellite_Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Budapest', '33.5', '60.9', 'Epsilon', 'Sydney');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0236 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('News',), ('News',), ('Reality',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Type` FROM `NBC Programming` WHERE `Rating` > 5"
}
] | {
"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": "NBC Programming",
"sql": "SELECT `Type` FROM `NBC Programming` WHERE `Rating` > 5;",
"label": [
"News",
"News",
"Reality"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1191 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Ibuprofen',), ('Levothyroxine',), ('Aspirin',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Drug Approval Database` WHERE `Dosage (mg)` < 50"
}
] | {
"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": "Drug Approval Database",
"sql": "SELECT `Name` FROM `Drug Approval Database` WHERE `Dosage (mg)` < 50;",
"label": [
"Ibuprofen",
"Levothyroxine",
"Aspirin"
],
"wrong_sql": "SELECT `Name` FROM `Drug Approval Database` WHERE Dosage (mg) < 50;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Dosage (mg)",
"error_reason": "special"
} | dbbench_sft_0868 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.