messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'July 6, 1988': set Result to Edinburgh, Rank to 27, Score to Lisa Wright.\nThe name of this table is Division One 2010 Season Standings, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"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": "Division One 2010 Season Standings",
"sql": "UPDATE `Division One 2010 Season Standings` SET `Result` = 'Edinburgh', `Rank` = '27', `Score` = 'Lisa Wright' WHERE `Date` = 'July 6, 1988';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0496 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Malaysia',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Country` FROM `University Rankings 2018` ORDER BY `Rank` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking_error_recovery",
"table_name": "University Rankings 2018",
"sql": "SELECT `Country` FROM `University Rankings 2018` ORDER BY `Rank` DESC LIMIT 1;",
"label": [
"Malaysia"
],
"wrong_sql": "SELECT `Country` FROM `University Rankings 2018` ORDER BY Rank DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0272 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Name', 'Houston' for 'Party', '69' for 'Votes', '28.2' for 'Percentage', 'Epsilon' for 'Status'.\nThe name of this table is 2002_General_Election, and the headers of this table are Name,Party,Votes,Percentage... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "2002_General_Election",
"sql": "INSERT INTO `2002_General_Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Beta', 'Houston', '69', '28.2', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0672 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Name', 'Alpha' for 'Date', 'Alpha' for 'Type', '98' for 'Number', '55.6' for 'Dosage (mg)'.\nThe name of this table is FDA_Approved_Medications, and the headers of this table are Name,Date,Type,Number,Dosage ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "FDA_Approved_Medications",
"sql": "INSERT INTO `FDA_Approved_Medications` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Beta', 'Alpha', 'Alpha', '98', '55.6');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1195 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(29.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Silver`) FROM `1996 Olympic Medal Tally` WHERE `Nation` = 'Belgium'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "1996 Olympic Medal Tally",
"sql": "SELECT MAX(`Silver`) FROM `1996 Olympic Medal Tally` WHERE `Nation` = 'Belgium';",
"label": [
"29.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0743 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Dorothy Taylor',), ('Carol White',), ('James Lee',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Ohio Election Results` WHERE `Percentage` < 29"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Ohio Election Results",
"sql": "SELECT `Name` FROM `Ohio Election Results` WHERE `Percentage` < 29;",
"label": [
"Dorothy Taylor",
"Carol White",
"James Lee"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0723 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Israel': set Gold to 13, Total to 98.\nThe name of this table is 2016_Olympic_Medal_Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `201... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2016_Olympic_Medal_Tally",
"sql": "UPDATE `2016_Olympic_Medal_Tally` SET `Gold` = '13', `Total` = '98' WHERE `Nation` = 'Israel';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1130 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Position' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Marine_Corps_Officers_List`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Marine_Corps_Officers_List",
"sql": "INSERT INTO `Marine_Corps_Officers_List` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Istanbul', 'Dallas', 'Alpha', 'Epsilon', 'Hungary');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Marine_Corps_Officers_List` (`Name`, `From`, `To`, Position, `Unit`) VALUES ('Istanbul', 'Dallas', 'Alpha', 'Epsilon', 'Hungary');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Position",
"error_reason": "reserved"
} | dbbench_sft_0009 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Denmark',), ('Germany',), ('Italy',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Nation` FROM `Summer Olympics Medal Count` WHERE `Bronze` > 20"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Summer Olympics Medal Count",
"sql": "SELECT `Nation` FROM `Summer Olympics Medal Count` WHERE `Bronze` > 20;",
"label": [
"Denmark",
"Germany",
"Italy"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0697 |
[
{
"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 'Release' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Music Releases` SET `Title` = 'Sa... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "UPDATE `Music Releases` SET `Title` = 'San Antonio' WHERE `Release` = 'February 8, 1970';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Music Releases` SET `Title` = 'San Antonio' WHERE Release = 'February 8, 1970';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Release",
"error_reason": "reserved"
} | dbbench_sft_0610 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Sandra Green': set No to 97, Time/Retired to Taipei, Points to 84.1.\nThe name of this table is F1_Monaco_Grand_Prix_Results, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistant",
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "F1_Monaco_Grand_Prix_Results",
"sql": "UPDATE `F1_Monaco_Grand_Prix_Results` SET `No` = '97', `Time/Retired` = 'Taipei', `Points` = '84.1' WHERE `Driver` = 'Sandra Green';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0273 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(292400.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`20 to 24`) FROM `Southern Census Data`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "Southern Census Data",
"sql": "SELECT SUM(`20 to 24`) FROM `Southern Census Data`;",
"label": [
"292400.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0863 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Nigeria': set Gold to 51, Bronze to 90, Rank to 19.\nThe name of this table is 1992 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Fina... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "1992 Olympic Medal Tally",
"sql": "UPDATE `1992 Olympic Medal Tally` SET `Gold` = '51', `Bronze` = '90', `Rank` = '19' WHERE `Nation` = 'Nigeria';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0605 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `A.J. Foyt Career Stats` WHERE `Car` = '#32'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "A.J. Foyt Career Stats",
"sql": "SELECT COUNT(*) FROM `A.J. Foyt Career Stats` WHERE `Car` = '#32';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0890 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Lewis': set Country/Region to New Entry, Area\n(sq mi) to 51.8, Area\n(km²) to 3.6.\nThe name of this table is Islands_of_Indonesia, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Islands_of_Indonesia",
"sql": "UPDATE `Islands_of_Indonesia` SET `Country/Region` = 'New Entry', `Area\n(sq mi)` = '51.8', `Area\n(km²)` = '3.6' WHERE `Island` = 'Lewis';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0289 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Mexico' for 'Date', 'Epsilon' for 'Venue', 'Gamma' for 'Opponent', 'Delta' for 'Score', 'John Nelson' for 'Competition'.\nThe name of this table is Spain Match History, and the headers of this table are Date,Venue,Oppon... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Spain Match History",
"sql": "INSERT INTO `Spain Match History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Mexico', 'Epsilon', 'Gamma', 'Delta', 'John Nelson');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0275 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('25',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Total` FROM `1980 Olympic Medal Tally` WHERE `Nation` = 'Czech Republic'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "1980 Olympic Medal Tally",
"sql": "SELECT `Total` FROM `1980 Olympic Medal Tally` WHERE `Nation` = 'Czech Republic';",
"label": [
"25"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0821 |
[
{
"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 'Dosage (mg)' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Drug Approval Database` ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Drug Approval Database",
"sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Beta', 'Berlin', 'Steven Evans', '15', '95.7');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, Dosage (mg)) VALUES ('Beta', 'Berlin', 'Steven Evans', '15', '95.7');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Dosage (mg)",
"error_reason": "special"
} | dbbench_sft_0136 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '14:30': set Duration to 46.\nThe name of this table is TV Schedule Winter 2024, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE `TV Schedule Winter 20... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 Winter 2024",
"sql": "UPDATE `TV Schedule Winter 2024` SET `Duration` = '46' WHERE `Time` = '14:30';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0725 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Coastal Line': set Platforms to 73, No to 17, To to Joseph Turner.\nThe name of this table is JR East Train Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"c... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "JR East Train Schedule",
"sql": "UPDATE `JR East Train Schedule` SET `Platforms` = '73', `No` = '17', `To` = 'Joseph Turner' WHERE `Name` = 'Coastal Line';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0683 |
[
{
"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 `Indianapolis 500 History` (`Yea... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('98', 'Edinburgh', '11', '57.7', '54', '94', '100');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, Rank, `Finish`, `Laps`) VALUES ('98', 'Edinburgh', '11', '57.7', '54', '94', '100');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0382 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Ku-Band',), ('C-Band',), ('Ku-Band',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `System` FROM `Satellite Communications Data` WHERE `Downlink (MHz)` > 4018"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Satellite Communications Data",
"sql": "SELECT `System` FROM `Satellite Communications Data` WHERE `Downlink (MHz)` > 4018;",
"label": [
"Ku-Band",
"C-Band",
"Ku-Band"
],
"wrong_sql": "SELECT System FROM `Satellite Communications Data` WHERE `Downlink (MHz)` > 4018;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "System",
"error_reason": "reserved"
} | dbbench_sft_0451 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Mountain Route': set Distance (km) to 63, To to New Entry.\nThe name of this table is Railway_Stations_Germany, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Railway_Stations_Germany",
"sql": "UPDATE `Railway_Stations_Germany` SET `Distance (km)` = '63', `To` = 'New Entry' WHERE `Name` = 'Mountain Route';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0780 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Last Stand': set Year to 32, Genre to Updated Value.\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": "Fin... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 `Year` = '32', `Genre` = 'Updated Value' WHERE `Title` = 'Last Stand';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0871 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('20',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Start` FROM `Indianapolis 500 History` WHERE `Car` = '#43'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Indianapolis 500 History",
"sql": "SELECT `Start` FROM `Indianapolis 500 History` WHERE `Car` = '#43';",
"label": [
"20"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0277 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'United Arab Emirates' for 'Address', '53' for 'Price', '16' for 'Area\n(sq ft)', '9' for 'Year', '14' for 'Level'.\nThe name of this table is Real Estate 2021, and the headers of this table are Address,Price,Area\n(sq 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": "INSERT",
"table_name": "Real Estate 2021",
"sql": "INSERT INTO `Real Estate 2021` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('United Arab Emirates', '53', '16', '9', '14');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0033 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Intelsat-9': set Uplink (MHz) to 78.8, Downlink (MHz) to 86.0, System to New Entry.\nThe name of this table is Telesat Satellite Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"r... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Telesat Satellite Fleet",
"sql": "UPDATE `Telesat Satellite Fleet` SET `Uplink (MHz)` = '78.8', `Downlink (MHz)` = '86.0', `System` = 'New Entry' WHERE `Name` = 'Intelsat-9';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0456 |
[
{
"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 'Type' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Drug Approval Database` (`Name`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Drug Approval Database",
"sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Colombia', 'Beta', 'Betty Wright', '65', '96.6');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, Type, `Number`, `Dosage (mg)`) VALUES ('Colombia', 'Beta', 'Betty Wright', '65', '96.6');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Type",
"error_reason": "reserved"
} | dbbench_sft_0874 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'James Harris' for 'Title', '14' for 'Year', '53' for 'Citations', 'Margaret Gonzalez' for 'Authors', 'Copenhagen' for 'Venue'.\nThe name of this table is Chemistry Research Papers, and the headers of this table are Titl... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Chemistry Research Papers",
"sql": "INSERT INTO `Chemistry Research Papers` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('James Harris', '14', '53', 'Margaret Gonzalez', 'Copenhagen');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0191 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Sarah Davis': set Total\nTime to 59.8, Total\nRank to 33, Race 2\nTime to 90.3.\nThe name of this table is European Championships Competition Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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\nTime` = '59.8', `Total\nRank` = '33', `Race 2\nTime` = '90.3' WHERE `Athlete` = 'Sarah Davis';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0350 |
[
{
"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: UPDATE `University Rankings 2019` SET `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": "UPDATE_error_recovery",
"table_name": "University Rankings 2019",
"sql": "UPDATE `University Rankings 2019` SET `Score` = '14.1', `Rank` = '64' WHERE `Name` = 'Chicago';",
"label": [
"done"
],
"wrong_sql": "UPDATE `University Rankings 2019` SET `Score` = '14.1', Rank = '64' WHERE `Name` = 'Chicago';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_1082 |
[
{
"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 `2018 Formula One Season... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "2018 Formula One Season",
"sql": "INSERT INTO `2018 Formula One Season` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('30', 'Vietnam', 'Delta', '4', '13.2');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2018 Formula One Season` (`No`, `Driver`, Time/Retired, `Laps`, `Points`) VALUES ('30', 'Vietnam', 'Delta', '4', '13.2');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time/Retired",
"error_reason": "special"
} | dbbench_sft_0570 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Time' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `TV_Schedule_Summer_2024` (`Time... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "TV_Schedule_Summer_2024",
"sql": "INSERT INTO `TV_Schedule_Summer_2024` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Beta', 'Beta', '2', 'Alpha', '55.0');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `TV_Schedule_Summer_2024` (Time, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Beta', 'Beta', '2', 'Alpha', '55.0');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Time",
"error_reason": "reserved"
} | dbbench_sft_0989 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Emily Scott': set Total\nTime to 46.3, Total\nRank to 80, Event to Oslo.\nThe name of this table is European Championships Competition Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,T... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "European Championships Competition Records",
"sql": "UPDATE `European Championships Competition Records` SET `Total\nTime` = '46.3', `Total\nRank` = '80', `Event` = 'Oslo' WHERE `Athlete` = 'Emily Scott';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0659 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('#77',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Car` FROM `Rick Mears Career Stats` ORDER BY `Rank` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking_error_recovery",
"table_name": "Rick Mears Career Stats",
"sql": "SELECT `Car` FROM `Rick Mears Career Stats` ORDER BY `Rank` DESC LIMIT 1;",
"label": [
"#77"
],
"wrong_sql": "SELECT `Car` FROM `Rick Mears Career Stats` ORDER BY Rank DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0051 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(9.6,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rating`) FROM `TV Schedule Winter 2024`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "TV Schedule Winter 2024",
"sql": "SELECT MAX(`Rating`) FROM `TV Schedule Winter 2024`;",
"label": [
"9.6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0789 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '936 Main St': set Area\n(sq ft) to 95.\nThe name of this table is Toronto_Property_Listings, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Toronto_Property_Listings",
"sql": "UPDATE `Toronto_Property_Listings` SET `Area\n(sq ft)` = '95' WHERE `Address` = '936 Main St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0777 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Summer Olympics Medal Count` (`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Summer Olympics Medal Count",
"sql": "INSERT INTO `Summer Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('87', 'Gamma', '90', '2', '65', '87');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Summer Olympics Medal Count` (Rank, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('87', 'Gamma', '90', '2', '65', '87');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_1047 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `World Islands Database` WHERE `Country/Region` = 'United States'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "World Islands Database",
"sql": "SELECT COUNT(*) FROM `World Islands Database` WHERE `Country/Region` = 'United States';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0185 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '3' for 'Rank', 'Alpha' for 'Island', '77.7' for 'Area\n(km²)', '55.1' 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 Rank,Island,Ar... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 ('3', 'Alpha', '77.7', '55.1', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0163 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Lisa Phillips' for 'Name', 'Delta' for 'Date', 'Donna Green' for 'Type', '80' for 'Number', '42.5' for 'Dosage (mg)'.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,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",
"table_name": "Drug Approval Database",
"sql": "INSERT INTO `Drug Approval Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Lisa Phillips', 'Delta', 'Donna Green', '80', '42.5');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0070 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Shatabdi Express': set From to New Entry, Platforms to 85, To to New Entry.\nThe name of this table is Deutsche_Bahn_Train_Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "ass... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Deutsche_Bahn_Train_Schedule",
"sql": "UPDATE `Deutsche_Bahn_Train_Schedule` SET `From` = 'New Entry', `Platforms` = '85', `To` = 'New Entry' WHERE `Name` = 'Shatabdi Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0213 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Central Express': set No to 23, To to New Entry.\nThe name of this table is Railway Stations Japan, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content": "Final: U... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Railway Stations Japan",
"sql": "UPDATE `Railway Stations Japan` SET `No` = '23', `To` = 'New Entry' WHERE `Name` = 'Central Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1003 |
[
{
"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 `Journal_of_Computer_Science_Publicat... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE_error_recovery",
"table_name": "Journal_of_Computer_Science_Publications",
"sql": "UPDATE `Journal_of_Computer_Science_Publications` SET `Year` = '62', `Citations` = '89', `Authors` = 'Los Angeles' WHERE `Title` = 'Analysis of Clustering';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Journal_of_Computer_Science_Publications` SET Year = '62', `Citations` = '89', `Authors` = 'Los Angeles' WHERE `Title` = 'Analysis of Clustering';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_1080 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '43' for 'Year', 'Gamma' for 'Title', 'Delta' for 'Genre', '19.2' for 'Box Office', '28.8' for 'Rating', 'Delta' for 'Release'.\nThe name of this table is Ridley Scott Filmography, and the headers of this table are Year,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Ridley Scott Filmography",
"sql": "INSERT INTO `Ridley Scott Filmography` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('43', 'Gamma', 'Delta', '19.2', '28.8', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1050 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Cell_Receptor_Database` WHERE `Effects` = 'Relaxation'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Cell_Receptor_Database",
"sql": "SELECT COUNT(*) FROM `Cell_Receptor_Database` WHERE `Effects` = 'Relaxation';",
"label": [
"2"
],
"wrong_sql": "SELECT COUNT(*) FROM `Cell_Receptor_Database` WHERE `Effects` = 'Relaxation ';",
"wrong_val": "Relaxation ",
"correct_val": "Relaxation",
"where_col": "Effects",
"error_col": null,
"error_reason": null
} | dbbench_sft_0966 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Address', '16' for 'Price', '37' for 'Area\n(sq ft)', '80' for 'Year', '58' for 'Level'.\nThe name of this table is Real_Estate_2024, 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_2024",
"sql": "INSERT INTO `Real_Estate_2024` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Gamma', '16', '37', '80', '58');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0267 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'To' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Command_History_1940-1960` (`Name... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Command_History_1940-1960",
"sql": "INSERT INTO `Command_History_1940-1960` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Bangkok', 'San Antonio', 'Beta', 'Sandra Lopez', 'Sharon Gonzalez');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Command_History_1940-1960` (`Name`, `From`, To, `Position`, `Unit`) VALUES ('Bangkok', 'San Antonio', 'Beta', 'Sandra Lopez', 'Sharon Gonzalez');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "To",
"error_reason": "reserved"
} | dbbench_sft_0885 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'GEN Lisa Turner': set To to Hong Kong.\nThe name of this table is Military Leaders Table, and the headers of this table are Name,From,To,Position,Unit."
},
{
"role": "assistant",
"content": "Final: UPDATE `Military Leaders... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Military Leaders Table",
"sql": "UPDATE `Military Leaders Table` SET `To` = 'Hong Kong' WHERE `Name` = 'GEN Lisa Turner';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0220 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(22.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rank`) FROM `Asia_Higher_Education_Data`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "Asia_Higher_Education_Data",
"sql": "SELECT MAX(`Rank`) FROM `Asia_Higher_Education_Data`;",
"label": [
"22.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0020 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '95' for 'Rank', 'Mary Robinson' for 'Island', '73.4' for 'Area\n(km²)', '73.6' for 'Area\n(sq mi)', 'Michael Rodriguez' for 'Country/Region'.\nThe name of this table is Islands of Caribbean, and the headers of this tabl... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Islands of Caribbean",
"sql": "INSERT INTO `Islands of Caribbean` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('95', 'Mary Robinson', '73.4', '73.6', 'Michael Rodriguez');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0550 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('8',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Points` FROM `2023 Formula One Season` WHERE `Driver` = 'Mary Rodriguez'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "2023 Formula One Season",
"sql": "SELECT `Points` FROM `2023 Formula One Season` WHERE `Driver` = 'Mary Rodriguez';",
"label": [
"8"
],
"wrong_sql": "SELECT `Points` FROM `2023 Formula One Season` WHERE `Driver` = 'Mary Rodriguez ';",
"wrong_val": "Mary Rodriguez ",
"correct_val": "Mary Rodriguez",
"where_col": "Driver",
"error_col": null,
"error_reason": null
} | dbbench_sft_0302 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Rajdhani Express': set To to Updated Value, Platforms to 54.\nThe name of this table is JR_East_Train_Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "JR_East_Train_Schedule",
"sql": "UPDATE `JR_East_Train_Schedule` SET `To` = 'Updated Value', `Platforms` = '54' WHERE `Name` = 'Rajdhani Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0427 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(150.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Duration`) FROM `TV Schedule Winter 2024` 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": "aggregation-SUM_error_recovery",
"table_name": "TV Schedule Winter 2024",
"sql": "SELECT SUM(`Duration`) FROM `TV Schedule Winter 2024` WHERE `Type` = 'News';",
"label": [
"150.0"
],
"wrong_sql": "SELECT SUM(`Duration`) FROM `TV Schedule Winter 2024` WHERE Type = 'News';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Type",
"error_reason": "reserved"
} | dbbench_sft_0013 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Hawks Season Results` WHERE `Date` = 'February 1, 1985'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Hawks Season Results",
"sql": "SELECT COUNT(*) FROM `Hawks Season Results` WHERE `Date` = 'February 1, 1985';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0583 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Red Dawn': set Genre to Updated Value, Year to 19.\nThe name of this table is Quentin_Tarantino_Filmography, and the headers of this table are Year,Title,Genre,Box Office,Rating,Release."
},
{
"role": "assistant",
"conten... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Quentin_Tarantino_Filmography",
"sql": "UPDATE `Quentin_Tarantino_Filmography` SET `Genre` = 'Updated Value', `Year` = '19' WHERE `Title` = 'Red Dawn';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0025 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'No' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Railway Stations UK` (`No`, `Name... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Railway Stations UK",
"sql": "INSERT INTO `Railway Stations UK` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('38', 'Alpha', 'Beta', 'Epsilon', '33', '24');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Railway Stations UK` (No, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('38', 'Alpha', 'Beta', 'Epsilon', '33', '24');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_1071 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Time', 'Beta' for 'Title', '52' for 'Duration', 'Epsilon' for 'Type', '2.5' for 'Rating'.\nThe name of this table is NBC_Programming, and the headers of this table are Time,Title,Duration,Type,Rating."
},
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "NBC_Programming",
"sql": "INSERT INTO `NBC_Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Alpha', 'Beta', '52', 'Epsilon', '2.5');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0386 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(3,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Railway Stations Japan` WHERE `Name` = 'City Link'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = 'City Link';",
"label": [
"3"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0411 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Lewis': set Country/Region to David Flores, Area\n(sq mi) to 99.3.\nThe name of this table is Islands of Indonesia, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
"role": "assis... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 Indonesia",
"sql": "UPDATE `Islands of Indonesia` SET `Country/Region` = 'David Flores', `Area\n(sq mi)` = '99.3' WHERE `Island` = 'Lewis';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0850 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Name', 'Gamma' for 'Date', 'Epsilon' for 'Type', '71' for 'Number', '57.8' for 'Dosage (mg)'.\nThe name of this table is Drug_Approval_Database, and the headers of this table are Name,Date,Type,Number,Dosage... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Drug_Approval_Database",
"sql": "INSERT INTO `Drug_Approval_Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Alpha', 'Gamma', 'Epsilon', '71', '57.8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1109 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(9884.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Number`) FROM `FDA Approved Medications`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "FDA Approved Medications",
"sql": "SELECT MAX(`Number`) FROM `FDA Approved Medications`;",
"label": [
"9884.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0849 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Lymphocyte': set Activators ligands --> Gq-GPCRs to Mexico City.\nThe name of this table is Pharmacological Data Table, and the headers of this table are Cell type,Organ/System,Activators ligands --> Gq-GPCRs,Effects."
},
{
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Pharmacological Data Table",
"sql": "UPDATE `Pharmacological Data Table` SET `Activators ligands --> Gq-GPCRs` = 'Mexico City' WHERE `Cell type` = 'Lymphocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0076 |
[
{
"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: UPDATE `Texas Election Results` SET `Statu... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Texas Election Results",
"sql": "UPDATE `Texas Election Results` SET `Status` = 'Lagos', `Votes` = '39' WHERE `Name` = 'Matthew Perez';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Texas Election Results` SET Status = 'Lagos', `Votes` = '39' WHERE `Name` = 'Matthew Perez';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Status",
"error_reason": "reserved"
} | dbbench_sft_0096 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('2014',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Year` FROM `Chemistry Research Papers` WHERE `Authors` = 'Patricia White et al.'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Chemistry Research Papers",
"sql": "SELECT `Year` FROM `Chemistry Research Papers` WHERE `Authors` = 'Patricia White et al.';",
"label": [
"2014"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0673 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Japan',), ('New Zealand',), ('France',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Nation` FROM `2008 Olympic Medal Tally` WHERE `Gold` < 25"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2008 Olympic Medal Tally",
"sql": "SELECT `Nation` FROM `2008 Olympic Medal Tally` WHERE `Gold` < 25;",
"label": [
"Japan",
"New Zealand",
"France"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0250 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Region', '90' for 'Population', '62' for '15 to 17', '50' for '18 to 19', '10' for '20 to 24'.\nThe name of this table is Eastern Census Data, and the headers of this table are Region,Population,15 to 17,18 ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Eastern Census Data",
"sql": "INSERT INTO `Eastern Census Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Delta', '90', '62', '50', '10');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0584 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(445752.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Attendance`) FROM `Championship 2012 Season Standings`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "Championship 2012 Season Standings",
"sql": "SELECT SUM(`Attendance`) FROM `Championship 2012 Season Standings`;",
"label": [
"445752.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0453 |
[
{
"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 'Release' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Music Releases` SET `Format` = 'B... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "UPDATE `Music Releases` SET `Format` = 'Betty Allen', `No` = '68' WHERE `Release` = 'August 7, 1970';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Music Releases` SET `Format` = 'Betty Allen', `No` = '68' WHERE Release = 'August 7, 1970';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Release",
"error_reason": "reserved"
} | dbbench_sft_0615 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Stanford': set Score to 35.0.\nThe name of this table is Americas Higher Education Data, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"role": "assistant",
"content": "Final: UPDATE `Americas Hi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Americas Higher Education Data",
"sql": "UPDATE `Americas Higher Education Data` SET `Score` = '35.0' WHERE `Name` = 'Stanford';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0290 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Netherlands' for 'Time', 'Gamma' for 'Title', '65' for 'Duration', 'Epsilon' for 'Type', '64.0' for 'Rating'.\nThe name of this table is TV Schedule Winter 2024, and the headers of this table are Time,Title,Duration,Typ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 Winter 2024",
"sql": "INSERT INTO `TV Schedule Winter 2024` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Netherlands', 'Gamma', '65', 'Epsilon', '64.0');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0298 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Region', '22' for 'Population', '24' for '15 to 17', '41' for '18 to 19', '24' for '20 to 24'.\nThe name of this table is Eastern_Census_Data, and the headers of this table are Region,Population,15 to 17,18 ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Eastern_Census_Data",
"sql": "INSERT INTO `Eastern_Census_Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Gamma', '22', '24', '41', '24');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0387 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('26398',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `18 to 19` FROM `Western_Census_Data` WHERE `Region` = 'Yekaterinburg'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Western_Census_Data",
"sql": "SELECT `18 to 19` FROM `Western_Census_Data` WHERE `Region` = 'Yekaterinburg';",
"label": [
"26398"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1124 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'From' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Navy Officers List` (`Name`, `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": "INSERT_error_recovery",
"table_name": "Navy Officers List",
"sql": "INSERT INTO `Navy Officers List` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Epsilon', 'Alpha', 'Edinburgh', 'Timothy Lewis', 'Beta');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Navy Officers List` (`Name`, From, `To`, `Position`, `Unit`) VALUES ('Epsilon', 'Alpha', 'Edinburgh', 'Timothy Lewis', 'Beta');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "From",
"error_reason": "reserved"
} | dbbench_sft_0846 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('United States',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Nation` FROM `2000 Olympic Medal Tally` ORDER BY `Total` 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": "2000 Olympic Medal Tally",
"sql": "SELECT `Nation` FROM `2000 Olympic Medal Tally` ORDER BY `Total` ASC LIMIT 1;",
"label": [
"United States"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0498 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Beyond Generation': set Citations to 21, Venue to New Entry, Year to 58.\nThe name of this table is Journal_of_Computer_Science_Publications, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"role":... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Journal_of_Computer_Science_Publications",
"sql": "UPDATE `Journal_of_Computer_Science_Publications` SET `Citations` = '21', `Venue` = 'New Entry', `Year` = '58' WHERE `Title` = 'Beyond Generation';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0529 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Australia',), ('Malaysia',), ('Belgium',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Nation` FROM `Summer Olympics Medal Count` WHERE `Bronze` < 23"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "Summer Olympics Medal Count",
"sql": "SELECT `Nation` FROM `Summer Olympics Medal Count` WHERE `Bronze` < 23;",
"label": [
"Australia",
"Malaysia",
"Belgium"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0034 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Chicago': set Students to 61, Country to Austin, Rank to 44.\nThe name of this table is University Rankings 2019, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"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": "University Rankings 2019",
"sql": "UPDATE `University Rankings 2019` SET `Students` = '61', `Country` = 'Austin', `Rank` = '44' WHERE `Name` = 'Chicago';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0565 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '19' for 'Rank', 'Delta' for 'Name', 'Thomas Davis' for 'Country', '44' for 'Students', '20.4' for 'Score'.\nThe name of this table is University_Rankings_2018, and the headers of this table are Rank,Name,Country,Student... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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_2018",
"sql": "INSERT INTO `University_Rankings_2018` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('19', 'Delta', 'Thomas Davis', '44', '20.4');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1132 |
[
{
"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 '20 to 24' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Northern_Census_Data` (`Reg... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Northern_Census_Data",
"sql": "INSERT INTO `Northern_Census_Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Beta', '32', '29', '11', '47');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Northern_Census_Data` (`Region`, `Population`, `15 to 17`, `18 to 19`, 20 to 24) VALUES ('Beta', '32', '29', '11', '47');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "20 to 24",
"error_reason": "special"
} | dbbench_sft_0790 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(288789.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Attendance`) FROM `Sharks Season Results` 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": "aggregation-SUM_retry",
"table_name": "Sharks Season Results",
"sql": "SELECT SUM(`Attendance`) FROM `Sharks Season Results` WHERE `Result` = 'Draw';",
"label": [
"288789.0"
],
"wrong_sql": "SELECT SUM(`Attendance`) FROM `Sharks Season Results` WHERE `Result` = 'Draw ';",
"wrong_val": "Draw ",
"correct_val": "Draw",
"where_col": "Result",
"error_col": null,
"error_reason": null
} | dbbench_sft_0886 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Dallas' for 'Release', 'Epsilon' for 'Title', 'Gamma' for 'Format', 'Beta' for 'Label', '63' for 'No'.\nThe name of this table is The_Beatles_Discography, 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": "The_Beatles_Discography",
"sql": "INSERT INTO `The_Beatles_Discography` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Dallas', 'Epsilon', 'Gamma', 'Beta', '63');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0287 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'September 4, 2015': set Competition to New Entry.\nThe name of this table is Argentina_Match_History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"content": "Final: U... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Argentina_Match_History",
"sql": "UPDATE `Argentina_Match_History` SET `Competition` = 'New Entry' WHERE `Date` = 'September 4, 2015';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0755 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('United States',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Opponent` FROM `Brazil_Match_History` WHERE `Score` = '1-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": "other_retry",
"table_name": "Brazil_Match_History",
"sql": "SELECT `Opponent` FROM `Brazil_Match_History` WHERE `Score` = '1-5';",
"label": [
"United States"
],
"wrong_sql": "SELECT `Opponent` FROM `Brazil_Match_History` WHERE `Score` = '1-5s';",
"wrong_val": "1-5s",
"correct_val": "1-5",
"where_col": "Score",
"error_col": null,
"error_reason": null
} | dbbench_sft_0569 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '7' for 'Rank', 'Gamma' for 'Nation', '63' for 'Gold', '95' for 'Silver', '70' for 'Bronze', '69' for 'Total'.\nThe name of this table is Youth 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": "Youth Olympics Medal Count",
"sql": "INSERT INTO `Youth Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('7', 'Gamma', '63', '95', '70', '69');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0783 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Date', 'Beta' for 'Opponent', 'Delta' for 'Result', 'Delta' for 'Score', '65' for 'Rank', '54' for 'Attendance'.\nThe name of this table is Tigers Season Results, and the headers of this table are Date,Opp... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Tigers Season Results",
"sql": "INSERT INTO `Tigers Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Epsilon', 'Beta', 'Delta', 'Delta', '65', '54');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0225 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '66' for 'Rank', 'Philippines' for 'Island', '18.1' for 'Area\n(km²)', '6.0' for 'Area\n(sq mi)', 'Beta' for 'Country/Region'.\nThe name of this table is Islands of Greece, and the headers of this table are Rank,Island,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": "INSERT",
"table_name": "Islands of Greece",
"sql": "INSERT INTO `Islands of Greece` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('66', 'Philippines', '18.1', '6.0', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0523 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Address', '28' for 'Price', '12' for 'Area\n(sq ft)', '72' for 'Year', '42' for 'Level'.\nThe name of this table is Real Estate 2020, 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 2020",
"sql": "INSERT INTO `Real Estate 2020` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Gamma', '28', '12', '72', '42');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1167 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'May 7, 1988': set Title to Matthew Flores, No to 60, 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":... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = 'Matthew Flores', `No` = '60', `Format` = 'New Entry' WHERE `Release` = 'May 7, 1988';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0818 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Name', 'Delta' for 'From', 'Alpha' for 'To', 'Peru' for 'Position', 'Epsilon' for 'Unit'.\nThe name of this table is Military Leaders Table, and the headers of this table are Name,From,To,Position,Unit."
}... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Military Leaders Table",
"sql": "INSERT INTO `Military Leaders Table` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Alpha', 'Delta', 'Alpha', 'Peru', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1051 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(499.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Citations`) FROM `Computer_Science_Research_Papers`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Computer_Science_Research_Papers",
"sql": "SELECT MAX(`Citations`) FROM `Computer_Science_Research_Papers`;",
"label": [
"499.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0884 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Release', 'Delta' for 'Title', 'Epsilon' for 'Format', 'Beta' for 'Label', '32' 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 ('Beta', 'Delta', 'Epsilon', 'Beta', '32');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0703 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Journal of Mathematics Publications` WHERE `Title` = 'Advances in Classification'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Journal of Mathematics Publications",
"sql": "SELECT COUNT(*) FROM `Journal of Mathematics Publications` WHERE `Title` = 'Advances in Classification';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0437 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Release', 'Amsterdam' for 'Title', 'Beta' for 'Format', 'Alpha' for 'Label', '22' for 'No'.\nThe name of this table is The Beatles Discography, 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": "The Beatles Discography",
"sql": "INSERT INTO `The Beatles Discography` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Alpha', 'Amsterdam', 'Beta', 'Alpha', '22');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0831 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'James Green': set Race 2\nTime to 15.5.\nThe name of this table is European Championships Competition Records, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total\nRank."
},
{
"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": "European Championships Competition Records",
"sql": "UPDATE `European Championships Competition Records` SET `Race 2\nTime` = '15.5' WHERE `Athlete` = 'James Green';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0444 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '16' for 'No', 'Beta' for 'Name', 'Pakistan' for 'From', 'Beta' for 'To', '1' for 'Distance (km)', '63' for 'Platforms'.\nThe name of this table is Railway Stations UK, and the headers of this table are No,Name,From,To,D... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Railway Stations UK",
"sql": "INSERT INTO `Railway Stations UK` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('16', 'Beta', 'Pakistan', 'Beta', '1', '63');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0503 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Seoul',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Indian Railways Train Schedule` ORDER BY `No` 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": "Indian Railways Train Schedule",
"sql": "SELECT `From` FROM `Indian Railways Train Schedule` ORDER BY `No` DESC LIMIT 1;",
"label": [
"Seoul"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0316 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Name', 'Alpha' for 'Date', 'Budapest' for 'Type', '89' for 'Number', '40.2' for 'Dosage (mg)'.\nThe name of this table is Drug_Approval_Database, and the headers of this table are Name,Date,Type,Number,Dosag... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Drug_Approval_Database",
"sql": "INSERT INTO `Drug_Approval_Database` (`Name`, `Date`, `Type`, `Number`, `Dosage (mg)`) VALUES ('Alpha', 'Alpha', 'Budapest', '89', '40.2');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1069 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Nigeria',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Country/Region` FROM `World_Islands_Database` WHERE `Island` = 'Skye'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "World_Islands_Database",
"sql": "SELECT `Country/Region` FROM `World_Islands_Database` WHERE `Island` = 'Skye';",
"label": [
"Nigeria"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0261 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Indianapolis 500 History` WHERE `Car` = '#84'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indianapolis 500 History",
"sql": "SELECT COUNT(*) FROM `Indianapolis 500 History` WHERE `Car` = '#84';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Indianapolis 500 History` WHERE `Car` = '#84s';",
"wrong_val": "#84s",
"correct_val": "#84",
"where_col": "Car",
"error_col": null,
"error_reason": null
} | dbbench_sft_1164 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.