messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Rising Sun': set Rating to 18.6.\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: UPDATE `Actress ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = '18.6' WHERE `Title` = 'Rising Sun';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0898 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Family',), ('Biography',), ('Western',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Genre` FROM `Actress Filmography` WHERE `Rating` > 5"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "Actress Filmography",
"sql": "SELECT `Genre` FROM `Actress Filmography` WHERE `Rating` > 5;",
"label": [
"Family",
"Biography",
"Western"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0628 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '181 Oak St': set Price to 50.\nThe name of this table is Real_Estate_2018, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE `Real_Estate_2018... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Real_Estate_2018",
"sql": "UPDATE `Real_Estate_2018` SET `Price` = '50' WHERE `Address` = '181 Oak St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0072 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '88' for 'Year', 'Philippines' for 'Car', '86' for 'Start', '79.5' for 'Qual', '58' for 'Rank', '78' for 'Finish', '41' for 'Laps'.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Y... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('88', 'Philippines', '86', '79.5', '58', '78', '41');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0665 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Athlete', 'Berlin' for 'Event', '3.1' for 'Race 1\nTime', '63.2' for 'Race 2\nTime', '44.2' for 'Total\nTime', '62' for 'Total\nRank'.\nThe name of this table is European_Championships_Competition_Records, an... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "European_Championships_Competition_Records",
"sql": "INSERT INTO `European_Championships_Competition_Records` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Beta', 'Berlin', '3.1', '63.2', '44.2', '62');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1125 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Donna Garcia': set Party to New Entry, Status to Updated Value, Percentage to 56.5.\nThe name of this table is 2006_General_Election, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assista... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2006_General_Election",
"sql": "UPDATE `2006_General_Election` SET `Party` = 'New Entry', `Status` = 'Updated Value', `Percentage` = '56.5' WHERE `Name` = 'Donna Garcia';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0781 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `James_Cameron_Filmography` WHERE `Genre` = 'Thriller'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "James_Cameron_Filmography",
"sql": "SELECT COUNT(*) FROM `James_Cameron_Filmography` WHERE `Genre` = 'Thriller';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0618 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'March 14, 1998': set Title to New Entry, Label to New Entry.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDA... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "UPDATE `Music Releases` SET `Title` = 'New Entry', `Label` = 'New Entry' WHERE `Release` = 'March 14, 1998';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1147 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '12:00': set Title to Updated Value, Type to Sandra Rodriguez.\nThe name of this table is NBC Programming, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"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": "NBC Programming",
"sql": "UPDATE `NBC Programming` SET `Title` = 'Updated Value', `Type` = 'Sandra Rodriguez' WHERE `Time` = '12:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0962 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Eutelsat-28': set System to Robert Campbell, Downlink (MHz) to 79.5.\nThe name of this table is Intelsat Satellite Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"role": "assista... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Intelsat Satellite Fleet",
"sql": "UPDATE `Intelsat Satellite Fleet` SET `System` = 'Robert Campbell', `Downlink (MHz)` = '79.5' WHERE `Name` = 'Eutelsat-28';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0385 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `France_Match_History` WHERE `Venue` = 'Seoul'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "France_Match_History",
"sql": "SELECT COUNT(*) FROM `France_Match_History` WHERE `Venue` = 'Seoul';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1021 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'July 20, 1982': set Venue to Updated Value, Competition to Warsaw, Opponent to Brussels.\nThe name of this table is Spain_Match_History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "a... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Spain_Match_History",
"sql": "UPDATE `Spain_Match_History` SET `Venue` = 'Updated Value', `Competition` = 'Warsaw', `Opponent` = 'Brussels' WHERE `Date` = 'July 20, 1982';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0795 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Time/Retired' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `F1_Monza_Grand_Prix_Res... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "F1_Monza_Grand_Prix_Results",
"sql": "INSERT INTO `F1_Monza_Grand_Prix_Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('87', 'Elizabeth Roberts', 'Joseph Nguyen', '20', '34.9');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `F1_Monza_Grand_Prix_Results` (`No`, `Driver`, Time/Retired, `Laps`, `Points`) VALUES ('87', 'Elizabeth Roberts', 'Joseph Nguyen', '20', '34.9');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time/Retired",
"error_reason": "special"
} | dbbench_sft_0803 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Yekaterinburg',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Population by Age Group and Region in Russia` ORDER BY `18 to 19` 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": "Population by Age Group and Region in Russia",
"sql": "SELECT `Region` FROM `Population by Age Group and Region in Russia` ORDER BY `18 to 19` DESC LIMIT 1;",
"label": [
"Yekaterinburg"
],
"wrong_sql": "SELECT `Region` FROM `Population by Age Group and Region in Russia` ORDER BY 18 to 19 DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "18 to 19",
"error_reason": "special"
} | dbbench_sft_0173 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Race 1\nTime' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `World Cup Competition Record... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "World Cup Competition Records",
"sql": "UPDATE `World Cup Competition Records` SET `Event` = 'Robert Miller', `Race 1\nTime` = '53.8', `Race 2\nTime` = '85.5' WHERE `Athlete` = 'Lisa Carter';",
"label": [
"done"
],
"wrong_sql": "UPDATE `World Cup Competition Records` SET `Event` = 'Robert Miller', Race 1\nTime = '53.8', `Race 2\nTime` = '85.5' WHERE `Athlete` = 'Lisa Carter';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Race 1\nTime",
"error_reason": "special"
} | dbbench_sft_0469 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Yale': set Rank to 54, Country to Updated Value, Score to 18.2.\nThe name of this table is Europe Higher Education Data, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"role": "assistant",
"conte... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Europe Higher Education Data",
"sql": "UPDATE `Europe Higher Education Data` SET `Rank` = '54', `Country` = 'Updated Value', `Score` = '18.2' WHERE `Name` = 'Yale';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0467 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Berlin',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Railway Stations Germany` WHERE `To` = 'San Jose'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Railway Stations Germany",
"sql": "SELECT `From` FROM `Railway Stations Germany` WHERE `To` = 'San Jose';",
"label": [
"Berlin"
],
"wrong_sql": "SELECT `From` FROM `Railway Stations Germany` WHERE `To` = 'san jose';",
"wrong_val": "san jose",
"correct_val": "San Jose",
"where_col": "To",
"error_col": null,
"error_reason": null
} | dbbench_sft_0617 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Channel 4 Programming` WHERE `Type` = 'News'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Channel 4 Programming",
"sql": "SELECT COUNT(*) FROM `Channel 4 Programming` WHERE `Type` = 'News';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Channel 4 Programming` WHERE `Type` = 'Newss';",
"wrong_val": "Newss",
"correct_val": "News",
"where_col": "Type",
"error_col": null,
"error_reason": null
} | dbbench_sft_1137 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('10',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Dosage (mg)` FROM `Drug Approval Database` WHERE `Type` = 'Syrup'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Drug Approval Database",
"sql": "SELECT `Dosage (mg)` FROM `Drug Approval Database` WHERE `Type` = 'Syrup';",
"label": [
"10"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0465 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Release', 'Alpha' for 'Title', 'Delta' for 'Format', 'Elizabeth Baker' for 'Label', '94' for 'No'.\nThe name of this table is Music_Releases, and the headers of this table are Release,Title,Format,Label,No."... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Music_Releases",
"sql": "INSERT INTO `Music_Releases` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Delta', 'Alpha', 'Delta', 'Elizabeth Baker', '94');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0836 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Betty Wilson' for 'Address', '85' for 'Price', '48' for 'Area\n(sq ft)', '97' for 'Year', '27' for 'Level'.\nThe name of this table is Real Estate 2021, 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 2021",
"sql": "INSERT INTO `Real Estate 2021` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Betty Wilson', '85', '48', '97', '27');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0468 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Japan': set Bronze to 54.\nThe name of this table is Youth Olympics Medal Count, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `Youth Olympic... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Youth Olympics Medal Count",
"sql": "UPDATE `Youth Olympics Medal Count` SET `Bronze` = '54' WHERE `Nation` = 'Japan';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0482 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1992.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Year`) FROM `Actress Filmography` WHERE `Genre` = 'Sci-Fi'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX_error_recovery",
"table_name": "Actress Filmography",
"sql": "SELECT MAX(`Year`) FROM `Actress Filmography` WHERE `Genre` = 'Sci-Fi';",
"label": [
"1992.0"
],
"wrong_sql": "SELECT MAX(Year) FROM `Actress Filmography` WHERE `Genre` = 'Sci-Fi';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0840 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Actress Filmography` WHERE `Release` = 'August 27, 2018'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Actress Filmography",
"sql": "SELECT COUNT(*) FROM `Actress Filmography` WHERE `Release` = 'August 27, 2018';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Actress Filmography` WHERE `Release` = 'august 27, 2018';",
"wrong_val": "august 27, 2018",
"correct_val": "August 27, 2018",
"where_col": "Release",
"error_col": null,
"error_reason": null
} | dbbench_sft_1055 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Address', '42' for 'Price', '6' for 'Area\n(sq ft)', '34' for 'Year', '35' for 'Level'.\nThe name of this table is Real Estate 2023, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Real Estate 2023",
"sql": "INSERT INTO `Real Estate 2023` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Delta', '42', '6', '34', '35');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0732 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(97.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`No`) FROM `F1 Melbourne Grand Prix Results`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "F1 Melbourne Grand Prix Results",
"sql": "SELECT MAX(`No`) FROM `F1 Melbourne Grand Prix Results`;",
"label": [
"97.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1028 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Dorothy Martin': set Votes to 100.\nThe name of this table is California Election Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assistant",
"content": "Final: UPDATE `Califor... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "California Election Results",
"sql": "UPDATE `California Election Results` SET `Votes` = '100' WHERE `Name` = 'Dorothy Martin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1122 |
[
{
"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 `Intelsat Satellite Fleet` SET `Downl... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Intelsat Satellite Fleet",
"sql": "UPDATE `Intelsat Satellite Fleet` SET `Downlink (MHz)` = '26.6', `Uplink (MHz)` = '44.2' WHERE `Name` = 'SES-27';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Intelsat Satellite Fleet` SET `Downlink (MHz)` = '26.6', `Uplink (MHz)` = '44.2' WHERE Name = 'SES-27';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0008 |
[
{
"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 'Status' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Intelsat_Satellite_Fleet` (`N... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Intelsat_Satellite_Fleet",
"sql": "INSERT INTO `Intelsat_Satellite_Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Alpha', '100.0', '86.5', 'Beta', 'Pakistan');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Intelsat_Satellite_Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, Status) VALUES ('Alpha', '100.0', '86.5', 'Beta', 'Pakistan');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Status",
"error_reason": "reserved"
} | dbbench_sft_1091 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#97': set Rank to 98, Laps to 45.\nThe name of this table is Rick Mears Career Stats, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Rick Mears ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Rick Mears Career Stats",
"sql": "UPDATE `Rick Mears Career Stats` SET `Rank` = '98', `Laps` = '45' WHERE `Car` = '#97';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0319 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'June 4, 1962': set No to 56.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `Music Releases` SET `No` = '... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Music Releases",
"sql": "UPDATE `Music Releases` SET `No` = '56' WHERE `Release` = 'June 4, 1962';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0274 |
[
{
"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: INSERT INTO `Football Matches 2016` (`Date`,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Football Matches 2016",
"sql": "INSERT INTO `Football Matches 2016` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Gamma', 'Gamma', 'Ronald Turner', 'Austria', 'Gamma');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Football Matches 2016` (Date, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Gamma', 'Gamma', 'Ronald Turner', 'Austria', 'Gamma');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_0237 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(30688.4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Students`) FROM `University Rankings 2022`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "University Rankings 2022",
"sql": "SELECT AVG(`Students`) FROM `University Rankings 2022`;",
"label": [
"30688.4"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0405 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Address', '25' for 'Price', '20' for 'Area\n(sq ft)', '93' for 'Year', '15' for 'Level'.\nThe name of this table is Toronto Property Listings, and the headers of this table are Address,Price,Area\n(sq ft),Ye... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Toronto Property Listings",
"sql": "INSERT INTO `Toronto Property Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Gamma', '25', '20', '93', '15');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0351 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Islands of Caribbean` WHERE `Country/Region` = 'France'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting_retry",
"table_name": "Islands of Caribbean",
"sql": "SELECT COUNT(*) FROM `Islands of Caribbean` WHERE `Country/Region` = 'France';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Islands of Caribbean` WHERE `Country/Region` = 'FRANCE';",
"wrong_val": "FRANCE",
"correct_val": "France",
"where_col": "Country/Region",
"error_col": null,
"error_reason": null
} | dbbench_sft_0675 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Championship 2010 Season Standings` WHERE `Result` = 'Draw'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Championship 2010 Season Standings",
"sql": "SELECT COUNT(*) FROM `Championship 2010 Season Standings` WHERE `Result` = 'Draw';",
"label": [
"6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0130 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Thomas Walker' for 'Athlete', 'Epsilon' for 'Event', '7.0' for 'Race 1\nTime', '35.1' for 'Race 2\nTime', '39.7' for 'Total\nTime', '60' for 'Total\nRank'.\nThe name of this table is World Championships Competition Reco... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "World Championships Competition Records",
"sql": "INSERT INTO `World Championships Competition Records` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Thomas Walker', 'Epsilon', '7.0', '35.1', '39.7', '60');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0895 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Metformin': set Number to 82.\nThe name of this table is FDA_Approved_Medications, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assistant",
"content": "Final: UPDATE `FDA_Approved_Med... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "FDA_Approved_Medications",
"sql": "UPDATE `FDA_Approved_Medications` SET `Number` = '82' WHERE `Name` = 'Metformin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0620 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'City Link': set Platforms to 12.\nThe name of this table is Indian_Railways_Train_Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content": "Final: UPDATE `I... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indian_Railways_Train_Schedule",
"sql": "UPDATE `Indian_Railways_Train_Schedule` SET `Platforms` = '12' WHERE `Name` = 'City Link';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0176 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Matthew Flores' for 'Release', 'Ronald Miller' for 'Title', 'Beta' for 'Format', 'Delta' for 'Label', '90' for 'No'.\nThe name of this table is Classical_Album_Chart, and the headers of this table are Release,Title,Form... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Classical_Album_Chart",
"sql": "INSERT INTO `Classical_Album_Chart` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Matthew Flores', 'Ronald Miller', 'Beta', 'Delta', '90');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0686 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Major League 2006 Season Standi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Major League 2006 Season Standings",
"sql": "INSERT INTO `Major League 2006 Season Standings` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Lisa Brown', 'Alpha', 'Canada', 'Dublin', '8', '75');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Major League 2006 Season Standings` (`Date`, `Opponent`, `Result`, `Score`, Rank, `Attendance`) VALUES ('Lisa Brown', 'Alpha', 'Canada', 'Dublin', '8', '75');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_1187 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Turkey' for 'Address', '2' for 'Price', '100' for 'Area\n(sq ft)', '1' for 'Year', '59' for 'Level'.\nThe name of this table is Real Estate 2018, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level.... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Real Estate 2018",
"sql": "INSERT INTO `Real Estate 2018` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Turkey', '2', '100', '1', '59');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0424 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(3,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Railway_Stations_Japan` 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": "counting",
"table_name": "Railway_Stations_Japan",
"sql": "SELECT COUNT(*) FROM `Railway_Stations_Japan` WHERE `Name` = 'Central Express';",
"label": [
"3"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0224 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'April 14, 2024': set Format to New Entry.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `Music Releases`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "UPDATE `Music Releases` SET `Format` = 'New Entry' WHERE `Release` = 'April 14, 2024';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0285 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Netherlands': set Total to 41.\nThe name of this table is 1984 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `1984 Olymp... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "1984 Olympic Medal Tally",
"sql": "UPDATE `1984 Olympic Medal Tally` SET `Total` = '41' WHERE `Nation` = 'Netherlands';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1068 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Brazil_Match_History` WHERE `Score` = '0-0'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting_retry",
"table_name": "Brazil_Match_History",
"sql": "SELECT COUNT(*) FROM `Brazil_Match_History` WHERE `Score` = '0-0';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Brazil_Match_History` WHERE `Score` = '0-0 ';",
"wrong_val": "0-0 ",
"correct_val": "0-0",
"where_col": "Score",
"error_col": null,
"error_reason": null
} | dbbench_sft_1179 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'September 26, 1977': set Venue to New Entry.\nThe name of this table is Football Matches 2014, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"content": "Final: UPDATE `... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Football Matches 2014",
"sql": "UPDATE `Football Matches 2014` SET `Venue` = 'New Entry' WHERE `Date` = 'September 26, 1977';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0222 |
[
{
"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: UPDATE `Mathematics Research Papers` SET `Ye... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE_error_recovery",
"table_name": "Mathematics Research Papers",
"sql": "UPDATE `Mathematics Research Papers` SET `Year` = '67' WHERE `Title` = 'Improving Deep Learning';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Mathematics Research Papers` SET Year = '67' WHERE `Title` = 'Improving Deep Learning';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0379 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Thomas Anderson' for 'Date', 'Epsilon' for 'Opponent', 'Epsilon' for 'Result', 'Norway' for 'Score', '71' for 'Rank', '88' for 'Attendance'.\nThe name of this table is Division One 2014 Season Standings, and the headers... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Division One 2014 Season Standings",
"sql": "INSERT INTO `Division One 2014 Season Standings` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Thomas Anderson', 'Epsilon', 'Epsilon', 'Norway', '71', '88');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1120 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Nizhny Novgorod': set Population to 64.\nThe name of this table is Population by Age Group and Region in France, and the headers of this table are Region,Population,15 to 17,18 to 19,20 to 24."
},
{
"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": "Population by Age Group and Region in France",
"sql": "UPDATE `Population by Age Group and Region in France` SET `Population` = '64' 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_0802 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Omsk': set 15 to 17 to 73, 20 to 24 to 32, Population to 19.\nThe name of this table is Southern Census Data, and the headers of this table are Region,Population,15 to 17,18 to 19,20 to 24."
},
{
"role": "assistant",
"co... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Southern Census Data",
"sql": "UPDATE `Southern Census Data` SET `15 to 17` = '73', `20 to 24` = '32', `Population` = '19' WHERE `Region` = 'Omsk';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0452 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Ku-Band',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `System` FROM `Viasat Satellite Fleet` ORDER BY `Downlink (MHz)` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Viasat Satellite Fleet",
"sql": "SELECT `System` FROM `Viasat Satellite Fleet` ORDER BY `Downlink (MHz)` DESC LIMIT 1;",
"label": [
"Ku-Band"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1169 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Indian_Railways_Train_Schedule` WHERE `Name` = 'Coastal Line'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indian_Railways_Train_Schedule",
"sql": "SELECT COUNT(*) FROM `Indian_Railways_Train_Schedule` WHERE `Name` = 'Coastal Line';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1118 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Kenya': set Silver to 45, Rank to 55.\nThe name of this table is 2008_Olympic_Medal_Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `200... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2008_Olympic_Medal_Tally",
"sql": "UPDATE `2008_Olympic_Medal_Tally` SET `Silver` = '45', `Rank` = '55' WHERE `Nation` = 'Kenya';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0765 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('44',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `No` FROM `Pink Floyd Discography` WHERE `Label` = 'RCA'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Pink Floyd Discography",
"sql": "SELECT `No` FROM `Pink Floyd Discography` WHERE `Label` = 'RCA';",
"label": [
"44"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0888 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `2016 Olympic Medal Tally` (`Ran... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "2016 Olympic Medal Tally",
"sql": "INSERT INTO `2016 Olympic Medal Tally` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('89', 'Houston', '68', '72', '22', '72');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2016 Olympic Medal Tally` (Rank, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('89', 'Houston', '68', '72', '22', '72');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0349 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Silver Ridge',), ('Thunder Road',), ('Last Stand',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `Action Films 2020s` WHERE `Box Office` < 192"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Action Films 2020s",
"sql": "SELECT `Title` FROM `Action Films 2020s` WHERE `Box Office` < 192;",
"label": [
"Silver Ridge",
"Thunder Road",
"Last Stand"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0841 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '354 Lake St': set Area\n(sq ft) to 45.\nThe name of this table is Real Estate 2024, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE `Real Es... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Real Estate 2024",
"sql": "UPDATE `Real Estate 2024` SET `Area\n(sq ft)` = '45' WHERE `Address` = '354 Lake St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0943 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `2002 Formula One Season` WHERE `Time/Retired` = '1:35:54.507'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2002 Formula One Season",
"sql": "SELECT COUNT(*) FROM `2002 Formula One Season` WHERE `Time/Retired` = '1:35:54.507';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0471 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Atlantic',), ('Parlophone',), ('Motown',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Label` FROM `Classical Album Chart` WHERE `No` > 36"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Classical Album Chart",
"sql": "SELECT `Label` FROM `Classical Album Chart` WHERE `No` > 36;",
"label": [
"Atlantic",
"Parlophone",
"Motown"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1070 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(230.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`No`) FROM `Music Releases`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "SELECT SUM(`No`) FROM `Music Releases`;",
"label": [
"230.0"
],
"wrong_sql": "SELECT SUM(No) FROM `Music Releases`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0084 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Islands of Scotland` WHERE `Country/Region` = 'United Kingdom'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Islands of Scotland",
"sql": "SELECT COUNT(*) FROM `Islands of Scotland` WHERE `Country/Region` = 'United Kingdom';",
"label": [
"2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0436 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '20:00': set Duration to 22, Type to Andrew Moore.\nThe name of this table is TV Schedule Spring 2023, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 Spring 2023",
"sql": "UPDATE `TV Schedule Spring 2023` SET `Duration` = '22', `Type` = 'Andrew Moore' WHERE `Time` = '20:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0915 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('2017',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Year` FROM `Journal_of_Economics_Publications` WHERE `Venue` = 'NeurIPS'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Journal_of_Economics_Publications",
"sql": "SELECT `Year` FROM `Journal_of_Economics_Publications` WHERE `Venue` = 'NeurIPS';",
"label": [
"2017"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0210 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Tiree': set Country/Region to New Entry, Area\n(km²) to 30.0, Rank to 67.\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... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = 'New Entry', `Area\n(km²)` = '30.0', `Rank` = '67' WHERE `Island` = 'Tiree';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0141 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '62' for 'Year', 'Alpha' for 'Car', '31' for 'Start', '23.4' for 'Qual', '43' for 'Rank', '56' for 'Finish', '79' for 'Laps'.\nThe name of this table is Rick Mears Career Stats, and the headers of this table are Year,Car... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Rick Mears Career Stats",
"sql": "INSERT INTO `Rick Mears Career Stats` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('62', 'Alpha', '31', '23.4', '43', '56', '79');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0870 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Novosibirsk',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Population by Age Group and Region in Germany` ORDER BY `18 to 19` 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": "Population by Age Group and Region in Germany",
"sql": "SELECT `Region` FROM `Population by Age Group and Region in Germany` ORDER BY `18 to 19` DESC LIMIT 1;",
"label": [
"Novosibirsk"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0881 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6348.2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Uplink (MHz)`) FROM `Telesat 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",
"table_name": "Telesat Satellite Fleet",
"sql": "SELECT MAX(`Uplink (MHz)`) FROM `Telesat Satellite Fleet`;",
"label": [
"6348.2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1116 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Ireland': set Gold to 70.\nThe name of this table is 2004_Olympic_Medal_Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `2004_Olympic_Me... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2004_Olympic_Medal_Tally",
"sql": "UPDATE `2004_Olympic_Medal_Tally` SET `Gold` = '70' WHERE `Nation` = 'Ireland';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0973 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Metformin',), ('Lisinopril',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `FDA_Approved_Medications` WHERE `Dosage (mg)` > 100"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "FDA_Approved_Medications",
"sql": "SELECT `Name` FROM `FDA_Approved_Medications` WHERE `Dosage (mg)` > 100;",
"label": [
"Metformin",
"Lisinopril"
],
"wrong_sql": "SELECT Name FROM `FDA_Approved_Medications` WHERE `Dosage (mg)` > 100;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_1126 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Omeprazole': set Dosage (mg) to 94.3, Date to Updated Value, Type to New Entry.\nThe name of this table is FDA Approved Medications, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"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": "FDA Approved Medications",
"sql": "UPDATE `FDA Approved Medications` SET `Dosage (mg)` = '94.3', `Date` = 'Updated Value', `Type` = 'New Entry' WHERE `Name` = 'Omeprazole';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0202 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(216.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`No`) FROM `Nirvana Discography`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "Nirvana Discography",
"sql": "SELECT SUM(`No`) FROM `Nirvana Discography`;",
"label": [
"216.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0897 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('20:00',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Time` FROM `TV Schedule Fall 2023` WHERE `Title` = 'Late Night'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "TV Schedule Fall 2023",
"sql": "SELECT `Time` FROM `TV Schedule Fall 2023` WHERE `Title` = 'Late Night';",
"label": [
"20:00"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0720 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Neuron': set Effects to Deborah Walker, Activators ligands --> Gq-GPCRs to New Entry.\nThe name of this table is Cell Receptor Database, and the headers of this table are Cell type,Organ/System,Activators ligands --> Gq-GPCRs,Eff... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 `Effects` = 'Deborah Walker', `Activators ligands --> Gq-GPCRs` = 'New Entry' WHERE `Cell type` = 'Neuron';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0054 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('September 24, 2001',), ('November 8, 1979',), ('March 18, 1984',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Date` FROM `Drug Approval Database` WHERE `Dosage (mg)` > 200"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison_error_recovery",
"table_name": "Drug Approval Database",
"sql": "SELECT `Date` FROM `Drug Approval Database` WHERE `Dosage (mg)` > 200;",
"label": [
"September 24, 2001",
"November 8, 1979",
"March 18, 1984"
],
"wrong_sql": "SELECT Date FROM `Drug Approval Database` WHERE `Dosage (mg)` > 200;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_0859 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Germany': set Silver to 52, Rank to 16, Gold to 33.\nThe name of this table is Winter_Olympics_Medal_Count, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"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": "Winter_Olympics_Medal_Count",
"sql": "UPDATE `Winter_Olympics_Medal_Count` SET `Silver` = '52', `Rank` = '16', `Gold` = '33' WHERE `Nation` = 'Germany';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0318 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Timothy Williams': set No to 70, Time/Retired to New Entry.\nThe name of this table is 2012_Formula_One_Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"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": "2012_Formula_One_Season",
"sql": "UPDATE `2012_Formula_One_Season` SET `No` = '70', `Time/Retired` = 'New Entry' WHERE `Driver` = 'Timothy Williams';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1040 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'COL George Ramirez': set Position to Warsaw, To to New Entry.\nThe name of this table is Marine_Corps_Officers_List, and the headers of this table are Name,From,To,Position,Unit."
},
{
"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": "Marine_Corps_Officers_List",
"sql": "UPDATE `Marine_Corps_Officers_List` SET `Position` = 'Warsaw', `To` = 'New Entry' WHERE `Name` = 'COL George Ramirez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0018 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('53',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Total` FROM `2016 Olympic Medal Tally` WHERE `Nation` = 'Greece'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2016 Olympic Medal Tally",
"sql": "SELECT `Total` FROM `2016 Olympic Medal Tally` WHERE `Nation` = 'Greece';",
"label": [
"53"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1036 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('200 Park St',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Address` FROM `Toronto_Property_Listings` ORDER BY `Level` 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": "Toronto_Property_Listings",
"sql": "SELECT `Address` FROM `Toronto_Property_Listings` ORDER BY `Level` DESC LIMIT 1;",
"label": [
"200 Park St"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0270 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'GEN Timothy Stewart': set To to John Hall, From to Lagos, Position to Stephanie Nguyen.\nThe name of this table is Air Force Officers List, and the headers of this table are Name,From,To,Position,Unit."
},
{
"role": "assistant... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Air Force Officers List",
"sql": "UPDATE `Air Force Officers List` SET `To` = 'John Hall', `From` = 'Lagos', `Position` = 'Stephanie Nguyen' WHERE `Name` = 'GEN Timothy Stewart';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0370 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('708 Lake St',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Address` FROM `Real_Estate_2020` ORDER BY `Area (sq ft)` 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": "Real_Estate_2020",
"sql": "SELECT `Address` FROM `Real_Estate_2020` ORDER BY `Area\n(sq ft)` ASC LIMIT 1;",
"label": [
"708 Lake St"
],
"wrong_sql": "SELECT `Address` FROM `Real_Estate_2020` ORDER BY Area\n(sq ft) ASC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Area\n(sq ft)",
"error_reason": "special"
} | dbbench_sft_1013 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Luzon': set Country/Region to Updated Value.\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",
"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": "World Islands Database",
"sql": "UPDATE `World Islands Database` SET `Country/Region` = 'Updated Value' WHERE `Island` = 'Luzon';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0814 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Canada',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Country/Region` FROM `Islands_of_Japan` ORDER BY `Area (sq mi)` 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": "Islands_of_Japan",
"sql": "SELECT `Country/Region` FROM `Islands_of_Japan` ORDER BY `Area\n(sq mi)` DESC LIMIT 1;",
"label": [
"Canada"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0410 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Donna Walker': set Total\nRank to 71, Race 2\nTime to 20.2, Race 1\nTime to 30.2.\nThe name of this table is European Championships Competition Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Tota... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "European Championships Competition Records",
"sql": "UPDATE `European Championships Competition Records` SET `Total\nRank` = '71', `Race 2\nTime` = '20.2', `Race 1\nTime` = '30.2' WHERE `Athlete` = 'Donna Walker';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0457 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Time', 'Delta' for 'Title', '40' for 'Duration', 'Gamma' for 'Type', '90.0' for 'Rating'.\nThe name of this table is TV Schedule Summer 2024, and the headers of this table are Time,Title,Duration,Type,Rating.... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "TV Schedule Summer 2024",
"sql": "INSERT INTO `TV Schedule Summer 2024` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Beta', 'Delta', '40', 'Gamma', '90.0');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0623 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Susan Moore',), ('Dorothy Young',), ('Kimberly Roberts',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Athlete` FROM `World_Cup_Competition_Records` WHERE `Race 2 Time` < 93"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "World_Cup_Competition_Records",
"sql": "SELECT `Athlete` FROM `World_Cup_Competition_Records` WHERE `Race 2\nTime` < 93;",
"label": [
"Susan Moore",
"Dorothy Young",
"Kimberly Roberts"
],
"wrong_sql": "SELECT `Athlete` FROM `World_Cup_Competition_Records` WHERE Race 2\nTime < 93;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Race 2\nTime",
"error_reason": "special"
} | dbbench_sft_0404 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Revisiting Generation': set Venue to Austin.\nThe name of this table is Chemistry Research Papers, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"role": "assistant",
"content": "Final: UPDATE... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Chemistry Research Papers",
"sql": "UPDATE `Chemistry Research Papers` SET `Venue` = 'Austin' WHERE `Title` = 'Revisiting Generation';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0144 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(23.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Finish`) FROM `Indianapolis_500_History` WHERE `Car` = '#46'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indianapolis_500_History",
"sql": "SELECT AVG(`Finish`) FROM `Indianapolis_500_History` WHERE `Car` = '#46';",
"label": [
"23.0"
],
"wrong_sql": "SELECT AVG(`Finish`) FROM `Indianapolis_500_History` WHERE `Car` = '#46 ';",
"wrong_val": "#46 ",
"correct_val": "#46",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_0092 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Arran': set Area\n(sq mi) to 92.0, Country/Region to James Perez.\nThe name of this table is Islands of Philippines, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
"role": "assi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Islands of Philippines",
"sql": "UPDATE `Islands of Philippines` SET `Area\n(sq mi)` = '92.0', `Country/Region` = 'James Perez' WHERE `Island` = 'Arran';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0019 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('April 5, 1984',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Release` FROM `Action Films 2020s` ORDER BY `Rating` 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": "Action Films 2020s",
"sql": "SELECT `Release` FROM `Action Films 2020s` ORDER BY `Rating` ASC LIMIT 1;",
"label": [
"April 5, 1984"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1049 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('March 14, 2012',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Date` FROM `Drug_Approval_Database` ORDER BY `Number` 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": "Drug_Approval_Database",
"sql": "SELECT `Date` FROM `Drug_Approval_Database` ORDER BY `Number` ASC LIMIT 1;",
"label": [
"March 14, 2012"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0953 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Withdrawn',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Status` FROM `2022_General_Election` ORDER BY `Percentage` 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": "2022_General_Election",
"sql": "SELECT `Status` FROM `2022_General_Election` ORDER BY `Percentage` DESC LIMIT 1;",
"label": [
"Withdrawn"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1052 |
[
{
"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 `2008 General Election` SET `Percenta... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2008 General Election",
"sql": "UPDATE `2008 General Election` SET `Percentage` = '40.2', `Votes` = '56', `Party` = 'Jennifer Martin' WHERE `Name` = 'Matthew Johnson';",
"label": [
"done"
],
"wrong_sql": "UPDATE `2008 General Election` SET `Percentage` = '40.2', `Votes` = '56', `Party` = 'Jennifer Martin' WHERE Name = 'Matthew Johnson';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0203 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '1' for 'Rank', 'Beta' for 'Name', 'Epsilon' for 'Country', '23' for 'Students', '54.9' for 'Score'.\nThe name of this table is University Rankings 2022, and the headers of this table are Rank,Name,Country,Students,Score... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "University Rankings 2022",
"sql": "INSERT INTO `University Rankings 2022` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('1', 'Beta', 'Epsilon', '23', '54.9');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0957 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `University Rankings 2019` WHERE `Country` = 'Saudi Arabia'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "University Rankings 2019",
"sql": "SELECT COUNT(*) FROM `University Rankings 2019` WHERE `Country` = 'Saudi Arabia';",
"label": [
"2"
],
"wrong_sql": "SELECT COUNT(*) FROM `University Rankings 2019` WHERE `Country` = 'saudi arabia';",
"wrong_val": "saudi arabia",
"correct_val": "Saudi Arabia",
"where_col": "Country",
"error_col": null,
"error_reason": null
} | dbbench_sft_0964 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '80' for 'Rank', 'Cairo' for 'Nation', '47' for 'Gold', '31' for 'Silver', '1' for 'Bronze', '8' for 'Total'.\nThe name of this table is Summer Olympics Medal Count, and the headers of this table are Rank,Nation,Gold,Sil... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Summer Olympics Medal Count",
"sql": "INSERT INTO `Summer Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('80', 'Cairo', '47', '31', '1', '8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0635 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(204.2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Box Office`) FROM `Actress_Filmography` WHERE `Release` = 'September 10, 1959'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Actress_Filmography",
"sql": "SELECT MAX(`Box Office`) FROM `Actress_Filmography` WHERE `Release` = 'September 10, 1959';",
"label": [
"204.2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0358 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '44' for 'Rank', 'Jeffrey Jackson' for 'Island', '46.0' for 'Area\n(km²)', '78.2' for 'Area\n(sq mi)', 'Beta' for 'Country/Region'.\nThe name of this table is World Islands Database, and the headers of this table are Ran... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "World Islands Database",
"sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('44', 'Jeffrey Jackson', '46.0', '78.2', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0746 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Drug_Approval_Database` WHERE `Date` = 'May 1, 1973'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Drug_Approval_Database",
"sql": "SELECT COUNT(*) FROM `Drug_Approval_Database` WHERE `Date` = 'May 1, 1973';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Drug_Approval_Database` WHERE `Date` = 'MAY 1, 1973';",
"wrong_val": "MAY 1, 1973",
"correct_val": "May 1, 1973",
"where_col": "Date",
"error_col": null,
"error_reason": null
} | dbbench_sft_0740 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.