messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\n[('Hydraulics',), ('1:38:35.151',), ('Collision',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Time/Retired` FROM `F1 Monaco Grand Prix Results` WHERE `Points` > 4"
}
] | {
"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": "F1 Monaco Grand Prix Results",
"sql": "SELECT `Time/Retired` FROM `F1 Monaco Grand Prix Results` WHERE `Points` > 4;",
"label": [
"Hydraulics",
"1:38:35.151",
"Collision"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1058 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(10.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Dosage (mg)`) FROM `Drug_Approval_Database`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN",
"table_name": "Drug_Approval_Database",
"sql": "SELECT MIN(`Dosage (mg)`) FROM `Drug_Approval_Database`;",
"label": [
"10.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0159 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Cell type', 'Epsilon' for 'Organ/System', 'Beta' for 'Activators ligands --> Gq-GPCRs', 'Beta' for 'Effects'.\nThe name of this table is Cell_Receptor_Database, and the headers of this table are Cell type,Or... | {
"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": "Cell_Receptor_Database",
"sql": "INSERT INTO `Cell_Receptor_Database` (`Cell type`, `Organ/System`, `Activators ligands --> Gq-GPCRs`, `Effects`) VALUES ('Alpha', 'Epsilon', 'Beta', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0160 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Panthers Season Results` WHERE `Date` = 'July 28, 1982'"
}
] | {
"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": "Panthers Season Results",
"sql": "SELECT COUNT(*) FROM `Panthers Season Results` WHERE `Date` = 'July 28, 1982';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0043 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Telesat_Satellite_Fleet` WHERE `Name` = 'Eutelsat-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": "counting_error_recovery",
"table_name": "Telesat_Satellite_Fleet",
"sql": "SELECT COUNT(*) FROM `Telesat_Satellite_Fleet` WHERE `Name` = 'Eutelsat-19';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Telesat_Satellite_Fleet` WHERE Name = 'Eutelsat-19';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0442 |
[
{
"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 `Military Leaders Table` (`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": "Military Leaders Table",
"sql": "INSERT INTO `Military Leaders Table` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Jacksonville', 'Beta', 'Alpha', 'Epsilon', 'Amsterdam');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Military Leaders Table` (Name, `From`, `To`, `Position`, `Unit`) VALUES ('Jacksonville', 'Beta', 'Alpha', 'Epsilon', 'Amsterdam');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0223 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Date', 'Mumbai' for 'Opponent', 'Singapore' for 'Result', 'Delta' for 'Score', '96' for 'Rank', '31' for 'Attendance'.\nThe name of this table is First Division 2010 Season Standings, and the headers of this... | {
"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": "First Division 2010 Season Standings",
"sql": "INSERT INTO `First Division 2010 Season Standings` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Gamma', 'Mumbai', 'Singapore', 'Delta', '96', '31');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1042 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Melissa Hernandez': set Votes to 34, Status to Updated Value, Party to Singapore.\nThe name of this table is Ohio 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": "Ohio Election Results",
"sql": "UPDATE `Ohio Election Results` SET `Votes` = '34', `Status` = 'Updated Value', `Party` = 'Singapore' WHERE `Name` = 'Melissa Hernandez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0769 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(45159.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`15 to 17`) FROM `Western_Census_Data` WHERE `Region` = 'Moscow'"
}
] | {
"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": "Western_Census_Data",
"sql": "SELECT SUM(`15 to 17`) FROM `Western_Census_Data` WHERE `Region` = 'Moscow';",
"label": [
"45159.0"
],
"wrong_sql": "SELECT SUM(15 to 17) FROM `Western_Census_Data` WHERE `Region` = 'Moscow';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "15 to 17",
"error_reason": "special"
} | dbbench_sft_1030 |
[
{
"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 'Box Office' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Drama Films 2020s` (`Year... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Drama Films 2020s",
"sql": "INSERT INTO `Drama Films 2020s` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('56', 'Beta', 'Germany', '55.1', '66.0', 'Jessica Baker');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Drama Films 2020s` (`Year`, `Title`, `Genre`, Box Office, `Rating`, `Release`) VALUES ('56', 'Beta', 'Germany', '55.1', '66.0', 'Jessica Baker');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Box Office",
"error_reason": "special"
} | dbbench_sft_0515 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rank`) FROM `Premier League 2013 Season Standings` WHERE `Date` = 'April 25, 1961'"
}
] | {
"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": "Premier League 2013 Season Standings",
"sql": "SELECT MAX(`Rank`) FROM `Premier League 2013 Season Standings` WHERE `Date` = 'April 25, 1961';",
"label": [
"6.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0134 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Central Express',), ('Rajdhani Express',), ('Chhatisgarh Express',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Deutsche_Bahn_Train_Schedule` WHERE `Platforms` < 4"
}
] | {
"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": "Deutsche_Bahn_Train_Schedule",
"sql": "SELECT `Name` FROM `Deutsche_Bahn_Train_Schedule` WHERE `Platforms` < 4;",
"label": [
"Central Express",
"Rajdhani Express",
"Chhatisgarh Express"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0505 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Jason Perez' for 'Date', 'Gamma' for 'Opponent', 'Delta' for 'Result', 'Beta' for 'Score', '27' for 'Rank', '75' for 'Attendance'.\nThe name of this table is Dragons Season Results, and the headers of this table are Dat... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Dragons Season Results",
"sql": "INSERT INTO `Dragons Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Jason Perez', 'Gamma', 'Delta', 'Beta', '27', '75');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0419 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '18:00': set Type to David Roberts.\nThe name of this table is Channel_4_Programming, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE `Channel_4_Progra... | {
"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": "Channel_4_Programming",
"sql": "UPDATE `Channel_4_Programming` SET `Type` = 'David Roberts' WHERE `Time` = '18:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0770 |
[
{
"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 'From' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Military_Leaders_Table` (`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": "Military_Leaders_Table",
"sql": "INSERT INTO `Military_Leaders_Table` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Beta', 'Beta', 'Rebecca Jackson', 'Epsilon', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Military_Leaders_Table` (`Name`, From, `To`, `Position`, `Unit`) VALUES ('Beta', 'Beta', 'Rebecca Jackson', 'Epsilon', 'Epsilon');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "From",
"error_reason": "reserved"
} | dbbench_sft_1098 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `2007 Formula One Season` WHERE `Driver` = 'Nancy Lewis'"
}
] | {
"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": "2007 Formula One Season",
"sql": "SELECT COUNT(*) FROM `2007 Formula One Season` WHERE `Driver` = 'Nancy Lewis';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0010 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'April 28, 1986': set Title to Michelle Taylor, No to 53, Format to Lagos.\nThe name of this table is Hip-Hop_Album_Chart, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"cont... | {
"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": "Hip-Hop_Album_Chart",
"sql": "UPDATE `Hip-Hop_Album_Chart` SET `Title` = 'Michelle Taylor', `No` = '53', `Format` = 'Lagos' WHERE `Release` = 'April 28, 1986';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0198 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Eutelsat-13': set Downlink (MHz) to 44.5.\nThe name of this table is Satellite_Communications_Data, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"role": "assistant",
"content": "F... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Satellite_Communications_Data",
"sql": "UPDATE `Satellite_Communications_Data` SET `Downlink (MHz)` = '44.5' WHERE `Name` = 'Eutelsat-13';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0919 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'The Horizon': set Rating to 87.1, Year to 92.\nThe name of this table is Actress_Filmography, and the headers of this table are Year,Title,Genre,Box Office,Rating,Release."
},
{
"role": "assistant",
"content": "Final: UPD... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Actress_Filmography",
"sql": "UPDATE `Actress_Filmography` SET `Rating` = '87.1', `Year` = '92' WHERE `Title` = 'The Horizon';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0389 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(65.73,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Race 2 Time`) FROM `World Cup Competition Records` WHERE `Athlete` = 'Michael Wright'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN_retry",
"table_name": "World Cup Competition Records",
"sql": "SELECT MIN(`Race 2\nTime`) FROM `World Cup Competition Records` WHERE `Athlete` = 'Michael Wright';",
"label": [
"65.73"
],
"wrong_sql": "SELECT MIN(`Race 2\nTime`) FROM `World Cup Competition Records` WHERE `Athlete` = 'Michael Wright ';",
"wrong_val": "Michael Wright ",
"correct_val": "Michael Wright",
"where_col": "Athlete",
"error_col": null,
"error_reason": null
} | dbbench_sft_0616 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Lymphocyte': set Activators ligands --> Gq-GPCRs to New Entry, Organ/System to Edward Campbell.\nThe name of this table is Pharmacological Data Table, and the headers of this table are Cell type,Organ/System,Activators ligands --... | {
"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 `Activators ligands --> Gq-GPCRs` = 'New Entry', `Organ/System` = 'Edward Campbell' WHERE `Cell type` = 'Lymphocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0055 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Timothy Martinez' for 'Date', 'Israel' for 'Opponent', 'Istanbul' for 'Result', 'Jennifer Hill' for 'Score', '89' for 'Rank', '93' for 'Attendance'.\nThe name of this table is First_Division_2021_Season_Standings, and t... | {
"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": "First_Division_2021_Season_Standings",
"sql": "INSERT INTO `First_Division_2021_Season_Standings` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Timothy Martinez', 'Israel', 'Istanbul', 'Jennifer Hill', '89', '93');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0674 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Date', 'Sydney' for 'Opponent', 'James Thomas' for 'Result', 'San Jose' for 'Score', '99' for 'Rank', '52' for 'Attendance'.\nThe name of this table is Major League 2007 Season Standings, and the headers of ... | {
"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": "Major League 2007 Season Standings",
"sql": "INSERT INTO `Major League 2007 Season Standings` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Alpha', 'Sydney', 'James Thomas', 'San Jose', '99', '52');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0045 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('7434',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Number` FROM `Drug Approval Database` WHERE `Name` = 'Ibuprofen'"
}
] | {
"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 `Number` FROM `Drug Approval Database` WHERE `Name` = 'Ibuprofen';",
"label": [
"7434"
],
"wrong_sql": "SELECT `Number` FROM `Drug Approval Database` WHERE `Name` = 'Ibuprofens';",
"wrong_val": "Ibuprofens",
"correct_val": "Ibuprofen",
"where_col": "Name",
"error_col": null,
"error_reason": null
} | dbbench_sft_0083 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('#84',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Car` FROM `Emerson Fittipaldi Career Stats` ORDER BY `Year` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Emerson Fittipaldi Career Stats",
"sql": "SELECT `Car` FROM `Emerson Fittipaldi Career Stats` ORDER BY `Year` ASC LIMIT 1;",
"label": [
"#84"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0079 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '74' for 'Year', 'Gamma' for 'Title', 'Beta' for 'Genre', '63.2' for 'Box Office', '17.8' for 'Rating', 'Epsilon' for 'Release'.\nThe name of this table is Action Films 2020s, and the headers of this table are Year,Title... | {
"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": "Action Films 2020s",
"sql": "INSERT INTO `Action Films 2020s` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('74', 'Gamma', 'Beta', '63.2', '17.8', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0303 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('10',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `World Islands Database` WHERE `Country/Region` = 'Brazil'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "World Islands Database",
"sql": "SELECT `Rank` FROM `World Islands Database` WHERE `Country/Region` = 'Brazil';",
"label": [
"10"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0599 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(237.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Citations`) FROM `Psychology Research Papers` WHERE `Title` = 'Beyond Clustering'"
}
] | {
"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": "Psychology Research Papers",
"sql": "SELECT SUM(`Citations`) FROM `Psychology Research Papers` WHERE `Title` = 'Beyond Clustering';",
"label": [
"237.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0122 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('731 Main St',), ('743 Lake St',), ('317 Lake St',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Address` FROM `Paris Property Listings` WHERE `Level` < 12"
}
] | {
"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": "Paris Property Listings",
"sql": "SELECT `Address` FROM `Paris Property Listings` WHERE `Level` < 12;",
"label": [
"731 Main St",
"743 Lake St",
"317 Lake St"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0661 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Platelet': set Activators ligands --> Gq-GPCRs to Updated Value, Effects to Updated Value, Organ/System to New Entry.\nThe name of this table is Cell Receptor Database, and the headers of this table are Cell type,Organ/System,Act... | {
"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": "Cell Receptor Database",
"sql": "UPDATE `Cell Receptor Database` SET `Activators ligands --> Gq-GPCRs` = 'Updated Value', `Effects` = 'Updated Value', `Organ/System` = 'New Entry' 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_0510 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(25.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Points`) FROM `F1_Monaco_Grand_Prix_Results` WHERE `Time/Retired` = 'Hydraulics'"
}
] | {
"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": "F1_Monaco_Grand_Prix_Results",
"sql": "SELECT MAX(`Points`) FROM `F1_Monaco_Grand_Prix_Results` WHERE `Time/Retired` = 'Hydraulics';",
"label": [
"25.0"
],
"wrong_sql": "SELECT MAX(`Points`) FROM `F1_Monaco_Grand_Prix_Results` WHERE `Time/Retired` = 'Hydraulics ';",
"wrong_val": "Hydraulics ",
"correct_val": "Hydraulics",
"where_col": "Time/Retired",
"error_col": null,
"error_reason": null
} | dbbench_sft_0901 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '7:30': set Title to Helsinki, Duration to 25.\nThe name of this table is TV_Schedule_Summer_2024, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE `TV_... | {
"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": "TV_Schedule_Summer_2024",
"sql": "UPDATE `TV_Schedule_Summer_2024` SET `Title` = 'Helsinki', `Duration` = '25' WHERE `Time` = '7:30';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0038 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Cardiomyocyte': set Effects to Updated Value, Organ/System to Updated Value, Activators ligands --> Gq-GPCRs to Mexico City.\nThe name of this table is Pharmacological_Data_Table, and the headers of this table are Cell type,Organ... | {
"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` = 'Updated Value', `Organ/System` = 'Updated Value', `Activators ligands --> Gq-GPCRs` = 'Mexico City' WHERE `Cell type` = 'Cardiomyocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0356 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6218.5,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Uplink (MHz)`) FROM `Intelsat_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-MAX_error_recovery",
"table_name": "Intelsat_Satellite_Fleet",
"sql": "SELECT MAX(`Uplink (MHz)`) FROM `Intelsat_Satellite_Fleet`;",
"label": [
"6218.5"
],
"wrong_sql": "SELECT MAX(Uplink (MHz)) FROM `Intelsat_Satellite_Fleet`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Uplink (MHz)",
"error_reason": "special"
} | dbbench_sft_0380 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(44535.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Students`) FROM `University Rankings 2021` WHERE `Country` = 'Czech Republic'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG_retry",
"table_name": "University Rankings 2021",
"sql": "SELECT AVG(`Students`) FROM `University Rankings 2021` WHERE `Country` = 'Czech Republic';",
"label": [
"44535.0"
],
"wrong_sql": "SELECT AVG(`Students`) FROM `University Rankings 2021` WHERE `Country` = 'czech republic';",
"wrong_val": "czech republic",
"correct_val": "Czech Republic",
"where_col": "Country",
"error_col": null,
"error_reason": null
} | dbbench_sft_0152 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('82',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Laps` FROM `Indianapolis_500_History` WHERE `Car` = '#35'"
}
] | {
"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": "Indianapolis_500_History",
"sql": "SELECT `Laps` FROM `Indianapolis_500_History` WHERE `Car` = '#35';",
"label": [
"82"
],
"wrong_sql": "SELECT `Laps` FROM `Indianapolis_500_History` WHERE `Car` = '#35 ';",
"wrong_val": "#35 ",
"correct_val": "#35",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_0995 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Region', '83' for 'Population', '82' for '15 to 17', '18' for '18 to 19', '97' for '20 to 24'.\nThe name of this table is Central Census Data, and the headers of this table are Region,Population,15 to 17,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": "INSERT",
"table_name": "Central Census Data",
"sql": "INSERT INTO `Central Census Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Epsilon', '83', '82', '18', '97');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0520 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('1972',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Year` FROM `Race_Results` WHERE `Car` = '#4'"
}
] | {
"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": "Race_Results",
"sql": "SELECT `Year` FROM `Race_Results` WHERE `Car` = '#4';",
"label": [
"1972"
],
"wrong_sql": "SELECT `Year` FROM `Race_Results` WHERE `Car` = '#4 ';",
"wrong_val": "#4 ",
"correct_val": "#4",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_0081 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Philadelphia' for 'Title', '50' for 'Year', '58' for 'Citations', 'Portugal' for 'Authors', 'Brazil' for 'Venue'.\nThe name of this table is Economics Research Papers, and the headers of this table are Title,Year,Citati... | {
"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 ('Philadelphia', '50', '58', 'Portugal', 'Brazil');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0015 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(52.5,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Score`) FROM `Europe Higher Education Data` WHERE `Name` = 'Johns Hopkins'"
}
] | {
"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_error_recovery",
"table_name": "Europe Higher Education Data",
"sql": "SELECT AVG(`Score`) FROM `Europe Higher Education Data` WHERE `Name` = 'Johns Hopkins';",
"label": [
"52.5"
],
"wrong_sql": "SELECT AVG(`Score`) FROM `Europe Higher Education Data` WHERE Name = 'Johns Hopkins';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0847 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Shetland': set Rank to 9, Area\n(km²) to 65.4.\nThe name of this table is World Islands Database, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
"role": "assistant",
"conten... | {
"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 Islands Database",
"sql": "UPDATE `World Islands Database` SET `Rank` = '9', `Area\n(km²)` = '65.4' WHERE `Island` = 'Shetland';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0632 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '42' for 'Rank', 'Delta' for 'Island', '64.8' for 'Area\n(km²)', '87.5' for 'Area\n(sq mi)', 'Delta' 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 ('42', 'Delta', '64.8', '87.5', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0967 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(14.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Laps`) FROM `2022 Formula One Season` WHERE `Time/Retired` = 'Gearbox'"
}
] | {
"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": "2022 Formula One Season",
"sql": "SELECT MAX(`Laps`) FROM `2022 Formula One Season` WHERE `Time/Retired` = 'Gearbox';",
"label": [
"14.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1111 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Charles Torres et al.',), ('Karen King et al.',), ('Joshua Allen et al.',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Authors` FROM `Journal_of_Engineering_Publications` WHERE `Year` > 2011"
}
] | {
"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": "Journal_of_Engineering_Publications",
"sql": "SELECT `Authors` FROM `Journal_of_Engineering_Publications` WHERE `Year` > 2011;",
"label": [
"Charles Torres et al.",
"Karen King et al.",
"Joshua Allen et al."
],
"wrong_sql": "SELECT `Authors` FROM `Journal_of_Engineering_Publications` WHERE Year > 2011;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0591 |
[
{
"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 'Date' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Brazil_Match_History` SET `Opponent`... | {
"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": "Brazil_Match_History",
"sql": "UPDATE `Brazil_Match_History` SET `Opponent` = 'New Entry', `Competition` = 'New Entry' WHERE `Date` = 'October 28, 1997';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Brazil_Match_History` SET `Opponent` = 'New Entry', `Competition` = 'New Entry' WHERE Date = 'October 28, 1997';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_0578 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'January 20, 1954': set Attendance to 92, Rank to 50, Score to New Entry.\nThe name of this table is Premier League 2016 Season Standings, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"rol... | {
"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": "Premier League 2016 Season Standings",
"sql": "UPDATE `Premier League 2016 Season Standings` SET `Attendance` = '92', `Rank` = '50', `Score` = 'New Entry' WHERE `Date` = 'January 20, 1954';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1008 |
[
{
"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 'Year' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Journal of Engineering Publicat... | {
"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": "Journal of Engineering Publications",
"sql": "INSERT INTO `Journal of Engineering Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Stockholm', '60', '21', 'Gamma', 'Alpha');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Journal of Engineering Publications` (`Title`, Year, `Citations`, `Authors`, `Venue`) VALUES ('Stockholm', '60', '21', 'Gamma', 'Alpha');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0335 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Egypt' for 'Name', 'Delta' for 'From', 'Sao Paulo' for 'To', 'Daniel Rivera' for 'Position', 'Philadelphia' for 'Unit'.\nThe name of this table is Army Officers List, and the headers of this table are Name,From,To,Posit... | {
"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": "Army Officers List",
"sql": "INSERT INTO `Army Officers List` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Egypt', 'Delta', 'Sao Paulo', 'Daniel Rivera', 'Philadelphia');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0481 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'November 23, 2022': set Venue to Melissa Adams.\nThe name of this table is Argentina_Match_History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"content": "Final: UPD... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Argentina_Match_History",
"sql": "UPDATE `Argentina_Match_History` SET `Venue` = 'Melissa Adams' WHERE `Date` = 'November 23, 2022';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1037 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '443 River St': set Price to 52.\nThe name of this table is Tokyo Property Listings, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE `Tokyo 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": "Tokyo Property Listings",
"sql": "UPDATE `Tokyo Property Listings` SET `Price` = '52' WHERE `Address` = '443 River St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0060 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'GEN Deborah Thomas': set From to New Entry.\nThe name of this table is Air Force Officers List, and the headers of this table are Name,From,To,Position,Unit."
},
{
"role": "assistant",
"content": "Final: UPDATE `Air Force ... | {
"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": "Air Force Officers List",
"sql": "UPDATE `Air Force Officers List` SET `From` = 'New Entry' WHERE `Name` = 'GEN Deborah Thomas';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0670 |
[
{
"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 'Position' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Military Leaders Table` SET `Fro... | {
"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": "Military Leaders Table",
"sql": "UPDATE `Military Leaders Table` SET `From` = 'Updated Value', `Unit` = 'Margaret Carter', `Position` = 'Patricia Miller' WHERE `Name` = 'MG Timothy Roberts';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Military Leaders Table` SET `From` = 'Updated Value', `Unit` = 'Margaret Carter', Position = 'Patricia Miller' WHERE `Name` = 'MG Timothy Roberts';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Position",
"error_reason": "reserved"
} | dbbench_sft_0978 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(51.9,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Score`) FROM `Asia 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-MIN",
"table_name": "Asia Higher Education Data",
"sql": "SELECT MIN(`Score`) FROM `Asia Higher Education Data`;",
"label": [
"51.9"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0958 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('San Jose',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Railway_Stations_France` ORDER BY `Distance (km)` 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": "Railway_Stations_France",
"sql": "SELECT `From` FROM `Railway_Stations_France` ORDER BY `Distance (km)` DESC LIMIT 1;",
"label": [
"San Jose"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0741 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4010.2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Downlink (MHz)`) FROM `Satellite Communications 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-AVG",
"table_name": "Satellite Communications Data",
"sql": "SELECT AVG(`Downlink (MHz)`) FROM `Satellite Communications Data`;",
"label": [
"4010.2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0540 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Jessica Lewis': set Event to Zurich, Race 1\nTime to 42.1, Race 2\nTime to 80.0.\nThe name of this table is Alpine Skiing Athletes Results, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total... | {
"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": "Alpine Skiing Athletes Results",
"sql": "UPDATE `Alpine Skiing Athletes Results` SET `Event` = 'Zurich', `Race 1\nTime` = '42.1', `Race 2\nTime` = '80.0' WHERE `Athlete` = 'Jessica Lewis';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0105 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Columbia',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `World_Higher_Education_Data` ORDER BY `Students` 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": "World_Higher_Education_Data",
"sql": "SELECT `Name` FROM `World_Higher_Education_Data` ORDER BY `Students` DESC LIMIT 1;",
"label": [
"Columbia"
],
"wrong_sql": "SELECT Name FROM `World_Higher_Education_Data` ORDER BY `Students` DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0921 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Hydraulics',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Time/Retired` FROM `F1 Suzuka Grand Prix Results` ORDER BY `No` 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": "F1 Suzuka Grand Prix Results",
"sql": "SELECT `Time/Retired` FROM `F1 Suzuka Grand Prix Results` ORDER BY `No` ASC LIMIT 1;",
"label": [
"Hydraulics"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0975 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2000.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Year`) FROM `Journal_of_Mathematics_Publications` WHERE `Title` = 'Survey of Optimization'"
}
] | {
"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": "Journal_of_Mathematics_Publications",
"sql": "SELECT MAX(`Year`) FROM `Journal_of_Mathematics_Publications` WHERE `Title` = 'Survey of Optimization';",
"label": [
"2000.0"
],
"wrong_sql": "SELECT MAX(`Year`) FROM `Journal_of_Mathematics_Publications` WHERE `Title` = 'survey of optimization';",
"wrong_val": "survey of optimization",
"correct_val": "Survey of Optimization",
"where_col": "Title",
"error_col": null,
"error_reason": null
} | dbbench_sft_1180 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(3926.9,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Downlink (MHz)`) FROM `Telesat Satellite Fleet` WHERE `System` = 'Ku-Band'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN",
"table_name": "Telesat Satellite Fleet",
"sql": "SELECT MIN(`Downlink (MHz)`) FROM `Telesat Satellite Fleet` WHERE `System` = 'Ku-Band';",
"label": [
"3926.9"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0535 |
[
{
"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 `Drug Approval Database` SET `Dosage ... | {
"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": "Drug Approval Database",
"sql": "UPDATE `Drug Approval Database` SET `Dosage (mg)` = '73.6' WHERE `Name` = 'Acetaminophen';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Drug Approval Database` SET `Dosage (mg)` = '73.6' WHERE Name = 'Acetaminophen';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0575 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Time', 'Gamma' for 'Title', '10' for 'Duration', 'Epsilon' for 'Type', '71.5' for 'Rating'.\nThe name of this table is NBC_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": "NBC_Programming",
"sql": "INSERT INTO `NBC_Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Gamma', 'Gamma', '10', 'Epsilon', '71.5');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0031 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Cell type', 'Chile' for 'Organ/System', 'Ronald Rivera' for 'Activators ligands --> Gq-GPCRs', 'Delta' for 'Effects'.\nThe name of this table is Pharmacological Data Table, and the headers of this table are C... | {
"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 ('Beta', 'Chile', 'Ronald Rivera', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0406 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Hepatocyte': set Activators ligands --> Gq-GPCRs to New Entry, Effects to New Entry, Organ/System to New Entry.\nThe name of this table is Cell Receptor Database, and the headers of this table are Cell type,Organ/System,Activator... | {
"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": "Cell Receptor Database",
"sql": "UPDATE `Cell Receptor Database` SET `Activators ligands --> Gq-GPCRs` = 'New Entry', `Effects` = 'New Entry', `Organ/System` = 'New Entry' WHERE `Cell type` = 'Hepatocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0398 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Efficient Methods Detection': set Authors to New Entry.\nThe name of this table is Biology_Research_Papers, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"role": "assistant",
"content": "Fina... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Biology_Research_Papers",
"sql": "UPDATE `Biology_Research_Papers` SET `Authors` = 'New Entry' WHERE `Title` = 'Efficient Methods Detection';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0791 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('4197.6',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Downlink (MHz)` FROM `Telesat Satellite Fleet` WHERE `Status` = 'Testing'"
}
] | {
"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": "Telesat Satellite Fleet",
"sql": "SELECT `Downlink (MHz)` FROM `Telesat Satellite Fleet` WHERE `Status` = 'Testing';",
"label": [
"4197.6"
],
"wrong_sql": "SELECT `Downlink (MHz)` FROM `Telesat Satellite Fleet` WHERE `Status` = 'TESTING';",
"wrong_val": "TESTING",
"correct_val": "Testing",
"where_col": "Status",
"error_col": null,
"error_reason": null
} | dbbench_sft_0796 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('49.4',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Percentage` FROM `2000 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_retry",
"table_name": "2000 General Election",
"sql": "SELECT `Percentage` FROM `2000 General Election` WHERE `Status` = 'Elected';",
"label": [
"49.4"
],
"wrong_sql": "SELECT `Percentage` FROM `2000 General Election` WHERE `Status` = 'elected';",
"wrong_val": "elected",
"correct_val": "Elected",
"where_col": "Status",
"error_col": null,
"error_reason": null
} | dbbench_sft_0954 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Michael Harris': set Total\nTime to 78.2.\nThe name of this table is Alpine_Skiing_Athletes_Results, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total\nRank."
},
{
"role": "assistan... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Alpine_Skiing_Athletes_Results",
"sql": "UPDATE `Alpine_Skiing_Athletes_Results` SET `Total\nTime` = '78.2' WHERE `Athlete` = 'Michael Harris';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0098 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('St. Petersburg',), ('Kazan',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Population by Age Group and Region in India` WHERE `18 to 19` < 43027"
}
] | {
"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 India",
"sql": "SELECT `Region` FROM `Population by Age Group and Region in India` WHERE `18 to 19` < 43027;",
"label": [
"St. Petersburg",
"Kazan"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1128 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Region', '51' for 'Population', '92' for '15 to 17', '65' for '18 to 19', '31' for '20 to 24'.\nThe name of this table is Central Census Data, and the headers of this table are Region,Population,15 to 17,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": "INSERT",
"table_name": "Central Census Data",
"sql": "INSERT INTO `Central Census Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Epsilon', '51', '92', '65', '31');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0592 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('60',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Duration` FROM `CBS Programming` 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": "CBS Programming",
"sql": "SELECT `Duration` FROM `CBS Programming` WHERE `Title` = 'Weekend Special';",
"label": [
"60"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0699 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Nizhny Novgorod': set 15 to 17 to 39, 18 to 19 to 2.\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",
"content": ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Northern Census Data",
"sql": "UPDATE `Northern Census Data` SET `15 to 17` = '39', `18 to 19` = '2' WHERE `Region` = 'Nizhny Novgorod';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0016 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Name', 'Epsilon' for 'Party', '51' for 'Votes', '41.7' for 'Percentage', 'Beta' for 'Status'.\nThe name of this table is 2022 General Election, and the headers of this table are Name,Party,Votes,Percentage... | {
"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": "2022 General Election",
"sql": "INSERT INTO `2022 General Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Epsilon', 'Epsilon', '51', '41.7', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0558 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Paul Stewart et al.',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Authors` FROM `Physics Research Papers` WHERE `Title` = 'Improving Neural Networks'"
}
] | {
"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": "Physics Research Papers",
"sql": "SELECT `Authors` FROM `Physics Research Papers` WHERE `Title` = 'Improving Neural Networks';",
"label": [
"Paul Stewart et al."
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0219 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'San Antonio' for 'Title', '98' for 'Year', '95' for 'Citations', 'Romania' for 'Authors', 'Beta' for 'Venue'.\nThe name of this table is Journal_of_Physics_Publications, and the headers of this table are Title,Year,Cita... | {
"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_Physics_Publications",
"sql": "INSERT INTO `Journal_of_Physics_Publications` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('San Antonio', '98', '95', 'Romania', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0651 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(190470.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`18 to 19`) FROM `Eastern Census Data`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "Eastern Census Data",
"sql": "SELECT SUM(`18 to 19`) FROM `Eastern Census Data`;",
"label": [
"190470.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1093 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Crime',), ('Drama',), ('Documentary',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Genre` FROM `Actress_Filmography` WHERE `Rating` < 6"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "Actress_Filmography",
"sql": "SELECT `Genre` FROM `Actress_Filmography` WHERE `Rating` < 6;",
"label": [
"Crime",
"Drama",
"Documentary"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0826 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Democrat',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Party` FROM `Ohio Election Results` ORDER BY `Votes` 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": "Ohio Election Results",
"sql": "SELECT `Party` FROM `Ohio Election Results` ORDER BY `Votes` DESC LIMIT 1;",
"label": [
"Democrat"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1006 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(21833.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Year`) FROM `Indianapolis 500 History`"
}
] | {
"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": "Indianapolis 500 History",
"sql": "SELECT SUM(`Year`) FROM `Indianapolis 500 History`;",
"label": [
"21833.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0039 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('May 5, 1985',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `To` FROM `Military Leaders Table` WHERE `Name` = 'LTG Jennifer Rodriguez'"
}
] | {
"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": "Military Leaders Table",
"sql": "SELECT `To` FROM `Military Leaders Table` WHERE `Name` = 'LTG Jennifer Rodriguez';",
"label": [
"May 5, 1985"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0473 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Electrical',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Time/Retired` FROM `2002 Formula One Season` ORDER BY `Laps` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking_error_recovery",
"table_name": "2002 Formula One Season",
"sql": "SELECT `Time/Retired` FROM `2002 Formula One Season` ORDER BY `Laps` ASC LIMIT 1;",
"label": [
"Electrical"
],
"wrong_sql": "SELECT Time/Retired FROM `2002 Formula One Season` ORDER BY `Laps` ASC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time/Retired",
"error_reason": "special"
} | dbbench_sft_0115 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'South Africa' for 'Address', '38' for 'Price', '98' for 'Area\n(sq ft)', '70' for 'Year', '93' for 'Level'.\nThe name of this table is Real Estate 2022, and the headers of this table are Address,Price,Area\n(sq ft),Year... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Real Estate 2022",
"sql": "INSERT INTO `Real Estate 2022` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('South Africa', '38', '98', '70', '93');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0401 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Istanbul',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Railway Stations UK` WHERE `Name` = 'Central 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",
"table_name": "Railway Stations UK",
"sql": "SELECT `From` FROM `Railway Stations UK` WHERE `Name` = 'Central Express';",
"label": [
"Istanbul"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0647 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Eastern_Census_Data` WHERE `Region` = 'Yekaterinburg'"
}
] | {
"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": "Eastern_Census_Data",
"sql": "SELECT COUNT(*) FROM `Eastern_Census_Data` WHERE `Region` = 'Yekaterinburg';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1172 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('August 19, 2006',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Command History 2000-2020` WHERE `Position` = 'Director'"
}
] | {
"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": "Command History 2000-2020",
"sql": "SELECT `From` FROM `Command History 2000-2020` WHERE `Position` = 'Director';",
"label": [
"August 19, 2006"
],
"wrong_sql": "SELECT From FROM `Command History 2000-2020` WHERE `Position` = 'Director';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "From",
"error_reason": "reserved"
} | dbbench_sft_0061 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Andrew Wilson': set Percentage to 32.0, Status to New Entry.\nThe name of this table is New York Election Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assistant",
"content":... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "New York Election Results",
"sql": "UPDATE `New York Election Results` SET `Percentage` = '32.0', `Status` = 'New Entry' WHERE `Name` = 'Andrew Wilson';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0631 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Deborah Stewart' for 'Date', 'Gamma' for 'Venue', 'Finland' for 'Opponent', 'Egypt' for 'Score', 'Delta' for 'Competition'.\nThe name of this table is Spain_Match_History, and the headers of this table are Date,Venue,Op... | {
"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": "Spain_Match_History",
"sql": "INSERT INTO `Spain_Match_History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Deborah Stewart', 'Gamma', 'Finland', 'Egypt', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0294 |
[
{
"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 'Downlink (MHz)' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Satellite Communicati... | {
"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": "Satellite Communications Data",
"sql": "INSERT INTO `Satellite Communications Data` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('New Zealand', '78.2', '38.8', 'Gamma', 'Deborah Collins');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Satellite Communications Data` (`Name`, `Uplink (MHz)`, Downlink (MHz), `System`, `Status`) VALUES ('New Zealand', '78.2', '38.8', 'Gamma', 'Deborah Collins');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Downlink (MHz)",
"error_reason": "special"
} | dbbench_sft_0037 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Release', 'Alpha' for 'Title', 'Delta' for 'Format', 'Philadelphia' for 'Label', '54' for 'No'.\nThe name of this table is The Beatles Discography, and the headers of this table are Release,Title,Format,Labe... | {
"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": "The Beatles Discography",
"sql": "INSERT INTO `The Beatles Discography` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Gamma', 'Alpha', 'Delta', 'Philadelphia', '54');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0161 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Cebu': set Country/Region to Lagos, Area\n(sq mi) to 6.2.\nThe name of this table is World Islands Database, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
"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": "World Islands Database",
"sql": "UPDATE `World Islands Database` SET `Country/Region` = 'Lagos', `Area\n(sq mi)` = '6.2' WHERE `Island` = 'Cebu';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0822 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Drug_Approval_Database` WHERE `Name` = 'Amlodipine'"
}
] | {
"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": "Drug_Approval_Database",
"sql": "SELECT COUNT(*) FROM `Drug_Approval_Database` WHERE `Name` = 'Amlodipine';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0493 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'South Africa' for 'Date', 'San Diego' for 'Venue', 'Andrew Miller' for 'Opponent', 'Belgium' for 'Score', 'Gamma' for 'Competition'.\nThe name of this table is Football Matches 2014, and the headers of this table are Da... | {
"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": "Football Matches 2014",
"sql": "INSERT INTO `Football Matches 2014` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('South Africa', 'San Diego', 'Andrew Miller', 'Belgium', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0568 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Region', '91' for 'Population', '38' for '15 to 17', '11' for '18 to 19', '67' 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', '91', '38', '11', '67');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0773 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Cardiomyocyte': set Organ/System to Dublin, Effects to New Entry.\nThe name of this table is Pharmacological_Data_Table, and the headers of this table are Cell type,Organ/System,Activators ligands --> Gq-GPCRs,Effects."
},
{
... | {
"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 `Organ/System` = 'Dublin', `Effects` = 'New Entry' WHERE `Cell type` = 'Cardiomyocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1084 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Helio_Castroneves_Career_Stats` WHERE `Car` = '#58'"
}
] | {
"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": "Helio_Castroneves_Career_Stats",
"sql": "SELECT COUNT(*) FROM `Helio_Castroneves_Career_Stats` WHERE `Car` = '#58';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Helio_Castroneves_Career_Stats` WHERE `Car` = '#58s';",
"wrong_val": "#58s",
"correct_val": "#58",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_0562 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('103',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Total` FROM `1992 Olympic Medal Tally` WHERE `Nation` = 'Thailand'"
}
] | {
"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": "1992 Olympic Medal Tally",
"sql": "SELECT `Total` FROM `1992 Olympic Medal Tally` WHERE `Nation` = 'Thailand';",
"label": [
"103"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0179 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Mountain Route': set No to 44, Distance (km) to 65, Platforms to 39.\nThe name of this table is Amtrak_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": "Amtrak_Train_Schedule",
"sql": "UPDATE `Amtrak_Train_Schedule` SET `No` = '44', `Distance (km)` = '65', `Platforms` = '39' WHERE `Name` = 'Mountain Route';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0504 |
[
{
"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 'From' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Air Force Officers List` (`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": "Air Force Officers List",
"sql": "INSERT INTO `Air Force Officers List` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Belgium', 'Beta', 'Epsilon', 'David Wright', 'Alpha');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Air Force Officers List` (`Name`, From, `To`, `Position`, `Unit`) VALUES ('Belgium', 'Beta', 'Epsilon', 'David Wright', 'Alpha');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "From",
"error_reason": "reserved"
} | dbbench_sft_0278 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Harvard',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `University_Rankings_2019` 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",
"table_name": "University_Rankings_2019",
"sql": "SELECT `Name` FROM `University_Rankings_2019` ORDER BY `Rank` DESC LIMIT 1;",
"label": [
"Harvard"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0848 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(43445.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`20 to 24`) FROM `Southern Census Data` WHERE `Region` = 'St. Petersburg'"
}
] | {
"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": "Southern Census Data",
"sql": "SELECT MAX(`20 to 24`) FROM `Southern Census Data` WHERE `Region` = 'St. Petersburg';",
"label": [
"43445.0"
],
"wrong_sql": "SELECT MAX(`20 to 24`) FROM `Southern Census Data` WHERE `Region` = 'St.';",
"wrong_val": "St.",
"correct_val": "St. Petersburg",
"where_col": "Region",
"error_col": null,
"error_reason": null
} | dbbench_sft_0553 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.