messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '63' for 'No', 'Gamma' for 'Driver', 'Russia' for 'Time/Retired', '6' for 'Laps', '82.3' for 'Points'.\nThe name of this table is F1 Silverstone Grand Prix Results, and the headers of this table are No,Driver,Time/Retire... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "F1 Silverstone Grand Prix Results",
"sql": "INSERT INTO `F1 Silverstone Grand Prix Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('63', 'Gamma', 'Russia', '6', '82.3');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1019 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `2004 Olympic Medal Tally` (`Ran... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "2004 Olympic Medal Tally",
"sql": "INSERT INTO `2004 Olympic Medal Tally` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('57', 'Hungary', '22', '50', '43', '46');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2004 Olympic Medal Tally` (Rank, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('57', 'Hungary', '22', '50', '43', '46');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_1018 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Name', 'Alpha' for 'Date', 'Australia' for 'Type', '39' for 'Number', '36.9' for 'Dosage (mg)'.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,Number,Dosa... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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', 'Australia', '39', '36.9');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1136 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Cebu': set Country/Region to New Entry.\nThe name of this table is World_Islands_Database, and the headers of this table are Rank,Island,Area\n(km²),Area\n(sq mi),Country/Region."
},
{
"role": "assistant",
"content": "Fi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "World_Islands_Database",
"sql": "UPDATE `World_Islands_Database` SET `Country/Region` = 'New Entry' WHERE `Island` = 'Cebu';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0095 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'January 14, 2005': set Score to Joseph Young, Opponent to New Entry.\nThe name of this table is Football_Matches_2022, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"co... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Football_Matches_2022",
"sql": "UPDATE `Football_Matches_2022` SET `Score` = 'Joseph Young', `Opponent` = 'New Entry' WHERE `Date` = 'January 14, 2005';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1184 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Name', 'Melissa Clark' for 'Party', '65' for 'Votes', '12.1' for 'Percentage', 'Epsilon' for 'Status'.\nThe name of this table is 2022 General Election, and the headers of this table are Name,Party,Votes,Perc... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "2022 General Election",
"sql": "INSERT INTO `2022 General Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Beta', 'Melissa Clark', '65', '12.1', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0561 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#88': set Rank to 50, Start to 55.\nThe name of this table is Helio Castroneves Career Stats, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Hel... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Helio Castroneves Career Stats",
"sql": "UPDATE `Helio Castroneves Career Stats` SET `Rank` = '50', `Start` = '55' WHERE `Car` = '#88';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0694 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Metformin': set Dosage (mg) to 18.9, Type to Updated Value, Date to Updated Value.\nThe name of this table is FDA Approved Medications, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assist... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "FDA Approved Medications",
"sql": "UPDATE `FDA Approved Medications` SET `Dosage (mg)` = '18.9', `Type` = 'Updated Value', `Date` = 'Updated Value' WHERE `Name` = 'Metformin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0454 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'July 25, 1956': set Title to New York.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "Final: UPDATE `Music Releases` SE... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Music Releases",
"sql": "UPDATE `Music Releases` SET `Title` = 'New York' WHERE `Release` = 'July 25, 1956';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0687 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '869 River St': set Level to 39, Price to 30.\nThe name of this table is Tokyo Property Listings, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UP... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Tokyo Property Listings",
"sql": "UPDATE `Tokyo Property Listings` SET `Level` = '39', `Price` = '30' WHERE `Address` = '869 River St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0991 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(200.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Distance (km)`) FROM `Railway Stations UK` 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": "aggregation-MIN",
"table_name": "Railway Stations UK",
"sql": "SELECT MIN(`Distance (km)`) FROM `Railway Stations UK` WHERE `Name` = 'City Link';",
"label": [
"200.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0099 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#89': set Rank to 87.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Indianapolis 500 Histo... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indianapolis 500 History",
"sql": "UPDATE `Indianapolis 500 History` SET `Rank` = '87' WHERE `Car` = '#89';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0654 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Mountain Route': set Platforms to 74.\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: UPDATE `Rail... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 `Platforms` = '74' 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_0200 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Date' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `First_Division_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": "UPDATE_error_recovery",
"table_name": "First_Division_2012_Season_Standings",
"sql": "UPDATE `First_Division_2012_Season_Standings` SET `Score` = 'Oslo', `Opponent` = 'New Entry', `Result` = 'Updated Value' WHERE `Date` = 'June 19, 1993';",
"label": [
"done"
],
"wrong_sql": "UPDATE `First_Division_2012_Season_Standings` SET `Score` = 'Oslo', `Opponent` = 'New Entry', `Result` = 'Updated Value' WHERE Date = 'June 19, 1993';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_0906 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '28' for 'Rank', 'Delta' for 'Nation', '44' for 'Gold', '69' for 'Silver', '100' for 'Bronze', '63' for 'Total'.\nThe name of this table is Youth_Olympics_Medal_Count, and the headers of this table are Rank,Nation,Gold,S... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Youth_Olympics_Medal_Count",
"sql": "INSERT INTO `Youth_Olympics_Medal_Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('28', 'Delta', '44', '69', '100', '63');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0745 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '59' for 'Year', 'James Campbell' for 'Car', '14' for 'Start', '19.9' for 'Qual', '84' for 'Rank', '87' for 'Finish', '80' for 'Laps'.\nThe name of this table is Indianapolis 500 History, and the headers of this table 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": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('59', 'James Campbell', '14', '19.9', '84', '87', '80');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0596 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '93' for 'Rank', 'Epsilon' for 'Nation', '50' for 'Gold', '19' for 'Silver', '40' for 'Bronze', '19' for 'Total'.\nThe name of this table is Winter_Olympics_Medal_Count, and the headers of this table are Rank,Nation,Gold... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Winter_Olympics_Medal_Count",
"sql": "INSERT INTO `Winter_Olympics_Medal_Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('93', 'Epsilon', '50', '19', '40', '19');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0040 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Telesat-14': set Status to Houston.\nThe name of this table is Eutelsat_Satellite_Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"role": "assistant",
"content": "Final: UPDAT... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Eutelsat_Satellite_Fleet",
"sql": "UPDATE `Eutelsat_Satellite_Fleet` SET `Status` = 'Houston' WHERE `Name` = 'Telesat-14';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0403 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Elected',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Status` FROM `Florida Election Results` ORDER BY `Percentage` 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": "Florida Election Results",
"sql": "SELECT `Status` FROM `Florida Election Results` ORDER BY `Percentage` ASC LIMIT 1;",
"label": [
"Elected"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0756 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'BG Stephanie Moore': set Unit to Updated Value, Position to Updated Value.\nThe name of this table is Command History 2000-2020, and the headers of this table are Name,From,To,Position,Unit."
},
{
"role": "assistant",
"con... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Command History 2000-2020",
"sql": "UPDATE `Command History 2000-2020` SET `Unit` = 'Updated Value', `Position` = 'Updated Value' WHERE `Name` = 'BG Stephanie Moore';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0295 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Levothyroxine': set Dosage (mg) to 29.2, Date to Cairo, Number to 96.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assistant",
"cont... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Drug Approval Database",
"sql": "UPDATE `Drug Approval Database` SET `Dosage (mg)` = '29.2', `Date` = 'Cairo', `Number` = '96' WHERE `Name` = 'Levothyroxine';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0438 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'October 11, 1950': set Venue to San Diego, Opponent to Sao Paulo, Score to Timothy Hall.\nThe name of this table is Brazil Match History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Brazil Match History",
"sql": "UPDATE `Brazil Match History` SET `Venue` = 'San Diego', `Opponent` = 'Sao Paulo', `Score` = 'Timothy Hall' WHERE `Date` = 'October 11, 1950';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0879 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Silent Echo': set Rating to 30.5, Box Office to 90.1.\nThe name of this table is Ridley Scott Filmography, and the headers of this table are Year,Title,Genre,Box Office,Rating,Release."
},
{
"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": "Ridley Scott Filmography",
"sql": "UPDATE `Ridley Scott Filmography` SET `Rating` = '30.5', `Box Office` = '90.1' WHERE `Title` = 'Silent Echo';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0639 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Finland': set Rank to 80.\nThe name of this table is 2012 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `2012 Olympic Me... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2012 Olympic Medal Tally",
"sql": "UPDATE `2012 Olympic Medal Tally` SET `Rank` = '80' WHERE `Nation` = 'Finland';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0893 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Joshua Collins',), ('Patricia Miller',), ('Jennifer Roberts',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `2018 General Election` WHERE `Percentage` > 44"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "2018 General Election",
"sql": "SELECT `Name` FROM `2018 General Election` WHERE `Percentage` > 44;",
"label": [
"Joshua Collins",
"Patricia Miller",
"Jennifer Roberts"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0883 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Russia' for 'Date', 'Philippines' for 'Venue', 'Epsilon' for 'Opponent', 'Gamma' for 'Score', 'Gamma' for 'Competition'.\nThe name of this table is Germany Match History, and the headers of this table are Date,Venue,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": "Germany Match History",
"sql": "INSERT INTO `Germany Match History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Russia', 'Philippines', 'Epsilon', 'Gamma', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0420 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Shadows',), ('Horizons',), ('Echoes',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `Music Releases` WHERE `No` < 31"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music Releases",
"sql": "SELECT `Title` FROM `Music Releases` WHERE `No` < 31;",
"label": [
"Shadows",
"Horizons",
"Echoes"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0866 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Jessica Carter' for 'Address', '86' for 'Price', '50' for 'Area\n(sq ft)', '26' for 'Year', '42' for 'Level'.\nThe name of this table is Tokyo_Property_Listings, and the headers of this table are Address,Price,Area\n(sq... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Tokyo_Property_Listings",
"sql": "INSERT INTO `Tokyo_Property_Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Jessica Carter', '86', '50', '26', '42');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0760 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Peru': set Silver to 90, Total to 91, Rank to 70.\nThe name of this table is Winter Olympics Medal Count, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "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": "Winter Olympics Medal Count",
"sql": "UPDATE `Winter Olympics Medal Count` SET `Silver` = '90', `Total` = '91', `Rank` = '70' WHERE `Nation` = 'Peru';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1048 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Region', '87' for 'Population', '9' for '15 to 17', '38' for '18 to 19', '99' for '20 to 24'.\nThe name of this table is Population_by_Age_Group_and_Region_in_Germany, and the headers of this table are Regio... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Population_by_Age_Group_and_Region_in_Germany",
"sql": "INSERT INTO `Population_by_Age_Group_and_Region_in_Germany` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Alpha', '87', '9', '38', '99');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0933 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '91' for 'Year', 'Alpha' for 'Title', 'Beta' for 'Genre', '77.4' for 'Box Office', '49.1' for 'Rating', 'Delta' for 'Release'.\nThe name of this table is Ridley Scott Filmography, and the headers of this table are Year,T... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Ridley Scott Filmography",
"sql": "INSERT INTO `Ridley Scott Filmography` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('91', 'Alpha', 'Beta', '77.4', '49.1', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0926 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '96' for 'Rank', 'Lagos' for 'Nation', '3' for 'Gold', '8' for 'Silver', '97' for 'Bronze', '90' for 'Total'.\nThe name of this table is Youth Olympics Medal Count, and the headers of this table are Rank,Nation,Gold,Silv... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 ('96', 'Lagos', '3', '8', '97', '90');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0794 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Aspirin': set Date to Emily Martinez.\nThe name of this table is Drug_Approval_Database, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assistant",
"content": "Final: UPDATE `Drug_Appro... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Drug_Approval_Database",
"sql": "UPDATE `Drug_Approval_Database` SET `Date` = 'Emily Martinez' WHERE `Name` = 'Aspirin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0611 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Name' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Georgia Election Results` SET `Perce... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Georgia Election Results",
"sql": "UPDATE `Georgia Election Results` SET `Percentage` = '50.7', `Party` = 'New Entry', `Votes` = '25' WHERE `Name` = 'Sarah Anderson';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Georgia Election Results` SET `Percentage` = '50.7', `Party` = 'New Entry', `Votes` = '25' WHERE Name = 'Sarah Anderson';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0041 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '79' for 'No', 'Poland' for 'Driver', 'Timothy Ramirez' for 'Time/Retired', '35' for 'Laps', '6.9' for 'Points'.\nThe name of this table is F1 Spa Grand Prix Results, and the headers of this table are No,Driver,Time/Reti... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "F1 Spa Grand Prix Results",
"sql": "INSERT INTO `F1 Spa Grand Prix Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('79', 'Poland', 'Timothy Ramirez', '35', '6.9');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1073 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#11': set Rank to 86, Laps to 36, Finish to 58.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDA... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Indianapolis 500 History",
"sql": "UPDATE `Indianapolis 500 History` SET `Rank` = '86', `Laps` = '36', `Finish` = '58' WHERE `Car` = '#11';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0435 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Neuron': set Activators ligands --> Gq-GPCRs to Seoul.\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."
},
{
"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": "Pharmacological_Data_Table",
"sql": "UPDATE `Pharmacological_Data_Table` SET `Activators ligands --> Gq-GPCRs` = 'Seoul' WHERE `Cell type` = 'Neuron';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0417 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Atlantic',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Label` FROM `Hip-Hop Album Chart` 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": "Hip-Hop Album Chart",
"sql": "SELECT `Label` FROM `Hip-Hop Album Chart` ORDER BY `No` DESC LIMIT 1;",
"label": [
"Atlantic"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0563 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'COL Nancy Scott': set From to Mexico City.\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 Lea... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 `From` = 'Mexico City' WHERE `Name` = 'COL Nancy Scott';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0793 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Omeprazole': set Dosage (mg) to 34.4, Date to Updated Value, Number to 68.\nThe name of this table is Drug Approval Database, and the headers of this table are Name,Date,Type,Number,Dosage (mg)."
},
{
"role": "assistant",
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Drug Approval Database",
"sql": "UPDATE `Drug Approval Database` SET `Dosage (mg)` = '34.4', `Date` = 'Updated Value', `Number` = '68' WHERE `Name` = 'Omeprazole';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0228 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Paris' for 'Date', 'Gamma' for 'Opponent', 'Mary Scott' for 'Result', 'Delta' for 'Score', '99' for 'Rank', '57' for 'Attendance'.\nThe name of this table is Wolves Season Results, and the headers of this table are Date... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Wolves Season Results",
"sql": "INSERT INTO `Wolves Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Paris', 'Gamma', 'Mary Scott', 'Delta', '99', '57');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0806 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#70': set Finish to 75, Qual to 76.4, Year to 97.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UP... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indianapolis 500 History",
"sql": "UPDATE `Indianapolis 500 History` SET `Finish` = '75', `Qual` = '76.4', `Year` = '97' WHERE `Car` = '#70';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0567 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '75' for 'Rank', 'Epsilon' for 'Name', 'Beta' for 'Country', '43' for 'Students', '81.9' for 'Score'.\nThe name of this table is University Rankings 2018, and the headers of this table are Rank,Name,Country,Students,Scor... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "University Rankings 2018",
"sql": "INSERT INTO `University Rankings 2018` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('75', 'Epsilon', 'Beta', '43', '81.9');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0541 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(3817.2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Downlink (MHz)`) FROM `Telesat Satellite Fleet` WHERE `System` = 'Ka-Band'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG",
"table_name": "Telesat Satellite Fleet",
"sql": "SELECT AVG(`Downlink (MHz)`) FROM `Telesat Satellite Fleet` WHERE `System` = 'Ka-Band';",
"label": [
"3817.2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0842 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Silent Echo': set Box Office to 7.0.\nThe name of this table is Actress Filmography, and the headers of this table are Year,Title,Genre,Box Office,Rating,Release."
},
{
"role": "assistant",
"content": "Final: UPDATE `Actr... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 `Box Office` = '7.0' WHERE `Title` = 'Silent Echo';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0119 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '91' for 'Year', 'Finland' for 'Title', 'Epsilon' for 'Genre', '44.3' for 'Box Office', '91.9' for 'Rating', 'Andrew Rodriguez' for 'Release'.\nThe name of this table is Sci-Fi Films 2020s, and the headers of this table ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Sci-Fi Films 2020s",
"sql": "INSERT INTO `Sci-Fi Films 2020s` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('91', 'Finland', 'Epsilon', '44.3', '91.9', 'Andrew Rodriguez');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1134 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Cell_Receptor_Database` WHERE `Effects` = 'Excitation'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = 'Excitation';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Cell_Receptor_Database` WHERE `Effects` = 'Excitation ';",
"wrong_val": "Excitation ",
"correct_val": "Excitation",
"where_col": "Effects",
"error_col": null,
"error_reason": null
} | dbbench_sft_0537 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'South Africa': set Bronze to 19.\nThe name of this table is 2012 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `2012 Oly... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2012 Olympic Medal Tally",
"sql": "UPDATE `2012 Olympic Medal Tally` SET `Bronze` = '19' WHERE `Nation` = 'South Africa';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0833 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(192365.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Votes`) FROM `North Carolina Election Results` WHERE `Party` = 'Libertarian'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "North Carolina Election Results",
"sql": "SELECT SUM(`Votes`) FROM `North Carolina Election Results` WHERE `Party` = 'Libertarian';",
"label": [
"192365.0"
],
"wrong_sql": "SELECT SUM(`Votes`) FROM `North Carolina Election Results` WHERE `Party` = 'LIBERTARIAN';",
"wrong_val": "LIBERTARIAN",
"correct_val": "Libertarian",
"where_col": "Party",
"error_col": null,
"error_reason": null
} | dbbench_sft_0766 |
[
{
"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 `Scott_Dixon_Career_Stats` SET `Start... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Scott_Dixon_Career_Stats",
"sql": "UPDATE `Scott_Dixon_Career_Stats` SET `Start` = '92', `Finish` = '90', `Year` = '26' WHERE `Car` = '#5';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Scott_Dixon_Career_Stats` SET `Start` = '92', `Finish` = '90', Year = '26' WHERE `Car` = '#5';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0395 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Imperial College',), ('Princeton',), ('Harvard',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `University Rankings 2018` WHERE `Rank` > 6"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "University Rankings 2018",
"sql": "SELECT `Name` FROM `University Rankings 2018` WHERE `Rank` > 6;",
"label": [
"Imperial College",
"Princeton",
"Harvard"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0109 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Netherlands',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Opponent` FROM `Football_Matches_2013` WHERE `Competition` = 'Friendly'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "Football_Matches_2013",
"sql": "SELECT `Opponent` FROM `Football_Matches_2013` WHERE `Competition` = 'Friendly';",
"label": [
"Netherlands"
],
"wrong_sql": "SELECT `Opponent` FROM `Football_Matches_2013` WHERE `Competition` = 'friendly';",
"wrong_val": "friendly",
"correct_val": "Friendly",
"where_col": "Competition",
"error_col": null,
"error_reason": null
} | dbbench_sft_0257 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Argentina': set Silver to 95, Rank to 52.\nThe name of this table is Summer_Olympics_Medal_Count, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDA... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Summer_Olympics_Medal_Count",
"sql": "UPDATE `Summer_Olympics_Medal_Count` SET `Silver` = '95', `Rank` = '52' WHERE `Nation` = 'Argentina';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0421 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Name' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `2022_General_Election` (`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": "2022_General_Election",
"sql": "INSERT INTO `2022_General_Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Gamma', 'Dorothy Hall', '60', '45.8', 'Alpha');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `2022_General_Election` (Name, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Gamma', 'Dorothy Hall', '60', '45.8', 'Alpha');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0412 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Chemistry Research Papers` WHERE `Authors` = 'Paul Martin 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": "counting_retry",
"table_name": "Chemistry Research Papers",
"sql": "SELECT COUNT(*) FROM `Chemistry Research Papers` WHERE `Authors` = 'Paul Martin et al.';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Chemistry Research Papers` WHERE `Authors` = 'PAUL MARTIN ET AL.';",
"wrong_val": "PAUL MARTIN ET AL.",
"correct_val": "Paul Martin et al.",
"where_col": "Authors",
"error_col": null,
"error_reason": null
} | dbbench_sft_0354 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Date', 'Beta' for 'Opponent', 'Mumbai' for 'Result', 'Gamma' for 'Score', '32' for 'Rank', '40' for 'Attendance'.\nThe name of this table is Hawks Season Results, and the headers of this table are Date,Oppone... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Hawks Season Results",
"sql": "INSERT INTO `Hawks Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Beta', 'Beta', 'Mumbai', 'Gamma', '32', '40');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0824 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(21.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Total Rank`) FROM `Alpine_Skiing_Athletes_Results` WHERE `Event` = 'Slalom'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "Alpine_Skiing_Athletes_Results",
"sql": "SELECT MAX(`Total\nRank`) FROM `Alpine_Skiing_Athletes_Results` WHERE `Event` = 'Slalom';",
"label": [
"21.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1135 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `F1_Spa_Grand_Prix_Results` WHERE `Driver` = 'Dorothy Brown'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "F1_Spa_Grand_Prix_Results",
"sql": "SELECT COUNT(*) FROM `F1_Spa_Grand_Prix_Results` WHERE `Driver` = 'Dorothy Brown';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0052 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Date' at line 1"
},
{
"role": "assistant",
"content": "Final: UPDATE `Football Matches 2024` SET `Competit... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Football Matches 2024",
"sql": "UPDATE `Football Matches 2024` SET `Competition` = 'New Entry', `Score` = 'George Miller' WHERE `Date` = 'January 15, 1994';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Football Matches 2024` SET `Competition` = 'New Entry', `Score` = 'George Miller' WHERE Date = 'January 15, 1994';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_1159 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(6,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Michigan Election Results` WHERE `Party` = 'Libertarian'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Michigan Election Results",
"sql": "SELECT COUNT(*) FROM `Michigan Election Results` WHERE `Party` = 'Libertarian';",
"label": [
"6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1088 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Fox Programming` WHERE `Type` = 'Reality'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Fox Programming",
"sql": "SELECT COUNT(*) FROM `Fox Programming` WHERE `Type` = 'Reality';",
"label": [
"4"
],
"wrong_sql": "SELECT COUNT(*) FROM `Fox Programming` WHERE `Type` = 'REALITY';",
"wrong_val": "REALITY",
"correct_val": "Reality",
"where_col": "Type",
"error_col": null,
"error_reason": null
} | dbbench_sft_1066 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Date' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Spain Match History` (`Date`, `... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Spain Match History",
"sql": "INSERT INTO `Spain Match History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Gamma', 'Alpha', 'Richard Perez', 'Gamma', 'Greece');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Spain Match History` (Date, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Gamma', 'Alpha', 'Richard Perez', 'Gamma', 'Greece');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Date",
"error_reason": "reserved"
} | dbbench_sft_0815 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Amanda King' for 'Time', 'Epsilon' for 'Title', '56' for 'Duration', 'Alpha' for 'Type', '1.7' for 'Rating'.\nThe name of this table is TV_Schedule_Summer_2024, and the headers of this table are Time,Title,Duration,Type... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "TV_Schedule_Summer_2024",
"sql": "INSERT INTO `TV_Schedule_Summer_2024` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Amanda King', 'Epsilon', '56', 'Alpha', '1.7');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1056 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Neuron': set Organ/System to Sydney.\nThe name of this table is Cell Receptor Database, and the headers of this table are Cell type,Organ/System,Activators ligands --> Gq-GPCRs,Effects."
},
{
"role": "assistant",
"con... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Cell Receptor Database",
"sql": "UPDATE `Cell Receptor Database` SET `Organ/System` = 'Sydney' WHERE `Cell type` = 'Neuron';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0946 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#10': set Start to 62, Year to 78, Laps to 4.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"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": "Indianapolis 500 History",
"sql": "UPDATE `Indianapolis 500 History` SET `Start` = '62', `Year` = '78', `Laps` = '4' WHERE `Car` = '#10';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0150 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'March 6, 1984': set Rank to 44, Result to Copenhagen.\nThe name of this table is Falcons Season Results, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"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": "Falcons Season Results",
"sql": "UPDATE `Falcons Season Results` SET `Rank` = '44', `Result` = 'Copenhagen' WHERE `Date` = 'March 6, 1984';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0449 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(0.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Points`) FROM `2005 Formula One Season` WHERE `Driver` = 'David Roberts'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MIN_retry",
"table_name": "2005 Formula One Season",
"sql": "SELECT MIN(`Points`) FROM `2005 Formula One Season` WHERE `Driver` = 'David Roberts';",
"label": [
"0.0"
],
"wrong_sql": "SELECT MIN(`Points`) FROM `2005 Formula One Season` WHERE `Driver` = 'david roberts';",
"wrong_val": "david roberts",
"correct_val": "David Roberts",
"where_col": "Driver",
"error_col": null,
"error_reason": null
} | dbbench_sft_0527 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('1:32:48.339',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Time/Retired` FROM `F1_Spa_Grand_Prix_Results` ORDER BY `Points` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "F1_Spa_Grand_Prix_Results",
"sql": "SELECT `Time/Retired` FROM `F1_Spa_Grand_Prix_Results` ORDER BY `Points` ASC LIMIT 1;",
"label": [
"1:32:48.339"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0268 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Slalom',), ('Combined',), ('Downhill',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Event` FROM `Biathlon Athletes Results` WHERE `Race 2 Time` > 93"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison",
"table_name": "Biathlon Athletes Results",
"sql": "SELECT `Event` FROM `Biathlon Athletes Results` WHERE `Race 2\nTime` > 93;",
"label": [
"Slalom",
"Combined",
"Downhill"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0353 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '12' for 'Rank', 'Alpha' for 'Island', '68.8' for 'Area\n(km²)', '86.7' 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,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": "World Islands Database",
"sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('12', 'Alpha', '68.8', '86.7', 'Beta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0922 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Carol Moore': set No to 36, Points to 67.4, Time/Retired to Updated Value.\nThe name of this table is F1 Monza Grand Prix Results, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistan... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "F1 Monza Grand Prix Results",
"sql": "UPDATE `F1 Monza Grand Prix Results` SET `No` = '36', `Points` = '67.4', `Time/Retired` = 'Updated Value' WHERE `Driver` = 'Carol Moore';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0902 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'January 25, 2023': set Score to New Entry, Opponent to Patricia Gonzalez.\nThe name of this table is France Match History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"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": "France Match History",
"sql": "UPDATE `France Match History` SET `Score` = 'New Entry', `Opponent` = 'Patricia Gonzalez' WHERE `Date` = 'January 25, 2023';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0407 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Sharon Lee' for 'Date', 'Carol Harris' for 'Venue', 'Delta' for 'Opponent', 'Matthew Brown' for 'Score', 'Italy' for 'Competition'.\nThe name of this table is Football Matches 2022, and the headers of this table are Dat... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Football Matches 2022",
"sql": "INSERT INTO `Football Matches 2022` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Sharon Lee', 'Carol Harris', 'Delta', 'Matthew Brown', 'Italy');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0432 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(38557.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`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-SUM",
"table_name": "FDA Approved Medications",
"sql": "SELECT SUM(`Number`) FROM `FDA Approved Medications`;",
"label": [
"38557.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0981 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Athlete is 'Sarah Hill': set Event to Matthew Hernandez.\nThe name of this table is Alpine Skiing Athletes Results, and the headers of this table are Athlete,Event,Race 1\nTime,Race 2\nTime,Total\nTime,Total\nRank."
},
{
"role": "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": "Alpine Skiing Athletes Results",
"sql": "UPDATE `Alpine Skiing Athletes Results` SET `Event` = 'Matthew Hernandez' WHERE `Athlete` = 'Sarah Hill';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0945 |
[
{
"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 `Panthers Season Results` (`Date... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Panthers Season Results",
"sql": "INSERT INTO `Panthers Season Results` (`Date`, `Opponent`, `Result`, `Score`, `Rank`, `Attendance`) VALUES ('Gamma', 'Delta', 'Alpha', 'Houston', '32', '48');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Panthers Season Results` (`Date`, `Opponent`, `Result`, `Score`, Rank, `Attendance`) VALUES ('Gamma', 'Delta', 'Alpha', 'Houston', '32', '48');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_1025 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Michelle Ramirez': set No to 88.\nThe name of this table is 2014 Formula One Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistant",
"content": "Final: UPDATE `2014 Formul... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2014 Formula One Season",
"sql": "UPDATE `2014 Formula One Season` SET `No` = '88' WHERE `Driver` = 'Michelle Ramirez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0192 |
[
{
"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 `TV_Schedule_Fall_2023` (`Time`,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "TV_Schedule_Fall_2023",
"sql": "INSERT INTO `TV_Schedule_Fall_2023` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Gamma', 'Epsilon', '67', 'Gamma', '23.9');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `TV_Schedule_Fall_2023` (`Time`, `Title`, `Duration`, Type, `Rating`) VALUES ('Gamma', 'Epsilon', '67', 'Gamma', '23.9');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Type",
"error_reason": "reserved"
} | dbbench_sft_0171 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Name', 'Richard Allen' for 'Party', '30' for 'Votes', '26.5' for 'Percentage', 'Dubai' for 'Status'.\nThe name of this table is 2010 General Election, and the headers of this table are Name,Party,Votes,Per... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2010 General Election",
"sql": "INSERT INTO `2010 General Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Epsilon', 'Richard Allen', '30', '26.5', 'Dubai');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1199 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Date', 'Epsilon' for 'Venue', 'Philadelphia' for 'Opponent', 'Gamma' for 'Score', 'Romania' for 'Competition'.\nThe name of this table is Football Matches 2016, and the headers of this table are Date,Venue,O... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Football Matches 2016",
"sql": "INSERT INTO `Football Matches 2016` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Alpha', 'Epsilon', 'Philadelphia', 'Gamma', 'Romania');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0001 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '48' for 'No', 'Beta' for 'Driver', 'Beta' for 'Time/Retired', '4' for 'Laps', '46.6' for 'Points'.\nThe name of this table is 2020 Formula One Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2020 Formula One Season",
"sql": "INSERT INTO `2020 Formula One Season` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('48', 'Beta', 'Beta', '4', '46.6');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0838 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'April 1, 1987': set Attendance to 52, Score to New Entry.\nThe name of this table is Panthers Season Results, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"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": "Panthers Season Results",
"sql": "UPDATE `Panthers Season Results` SET `Attendance` = '52', `Score` = 'New Entry' WHERE `Date` = 'April 1, 1987';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0315 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('67',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Total` FROM `2016 Olympic Medal Tally` WHERE `Nation` = 'New Zealand'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "2016 Olympic Medal Tally",
"sql": "SELECT `Total` FROM `2016 Olympic Medal Tally` WHERE `Nation` = 'New Zealand';",
"label": [
"67"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1192 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Region is 'Nizhny Novgorod': set 18 to 19 to 53, 15 to 17 to 91.\nThe name of this table is Population_by_Age_Group_and_Region_in_India, and the headers of this table are Region,Population,15 to 17,18 to 19,20 to 24."
},
{
"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": "Population_by_Age_Group_and_Region_in_India",
"sql": "UPDATE `Population_by_Age_Group_and_Region_in_India` SET `18 to 19` = '53', `15 to 17` = '91' WHERE `Region` = 'Nizhny Novgorod';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1181 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'City Link': set To to Updated Value.\nThe name of this table is SNCF Train Schedule, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content": "Final: UPDATE `SNCF Tra... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "SNCF Train Schedule",
"sql": "UPDATE `SNCF Train Schedule` SET `To` = 'Updated Value' WHERE `Name` = 'City Link';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0702 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('#87',), ('#21',), ('#5',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Car` FROM `Race Results` WHERE `Start` > 8"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Race Results",
"sql": "SELECT `Car` FROM `Race Results` WHERE `Start` > 8;",
"label": [
"#87",
"#21",
"#5"
],
"wrong_sql": "SELECT `Car` FROM `Race Results` WHERE Start > 8;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Start",
"error_reason": "reserved"
} | dbbench_sft_0580 |
[
{
"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 `Actress Filmography` SET `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": "UPDATE_error_recovery",
"table_name": "Actress Filmography",
"sql": "UPDATE `Actress Filmography` SET `Rating` = '28.7', `Year` = '50', `Genre` = 'Sharon Harris' WHERE `Title` = 'Day Break';",
"label": [
"done"
],
"wrong_sql": "UPDATE `Actress Filmography` SET `Rating` = '28.7', Year = '50', `Genre` = 'Sharon Harris' WHERE `Title` = 'Day Break';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Year",
"error_reason": "reserved"
} | dbbench_sft_0698 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(46.4,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Percentage`) FROM `2000_General_Election` WHERE `Status` = 'Third'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX_retry",
"table_name": "2000_General_Election",
"sql": "SELECT MAX(`Percentage`) FROM `2000_General_Election` WHERE `Status` = 'Third';",
"label": [
"46.4"
],
"wrong_sql": "SELECT MAX(`Percentage`) FROM `2000_General_Election` WHERE `Status` = 'Third ';",
"wrong_val": "Third ",
"correct_val": "Third",
"where_col": "Status",
"error_col": null,
"error_reason": null
} | dbbench_sft_1002 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1291.8,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Area (sq mi)`) FROM `Islands of Japan` WHERE `Country/Region` = 'Egypt'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG",
"table_name": "Islands of Japan",
"sql": "SELECT AVG(`Area\n(sq mi)`) FROM `Islands of Japan` WHERE `Country/Region` = 'Egypt';",
"label": [
"1291.8"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0759 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '14:00': set Type to Edinburgh, Duration to 87, Rating to 19.3.\nThe name of this table is CBS Programming, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UP... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "CBS Programming",
"sql": "UPDATE `CBS Programming` SET `Type` = 'Edinburgh', `Duration` = '87', `Rating` = '19.3' WHERE `Time` = '14:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0415 |
[
{
"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 'Country/Region' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `World Islands Databas... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "World Islands Database",
"sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('64', 'Israel', '64.6', '75.6', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, Country/Region) VALUES ('64', 'Israel', '64.6', '75.6', 'Epsilon');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Country/Region",
"error_reason": "special"
} | dbbench_sft_0117 |
[
{
"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 `Deutsche Bahn Train Schedule` (`N... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Deutsche Bahn Train Schedule",
"sql": "INSERT INTO `Deutsche Bahn Train Schedule` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('34', 'Beta', 'Epsilon', 'Beta', '71', '86');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Deutsche Bahn Train Schedule` (No, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('34', 'Beta', 'Epsilon', 'Beta', '71', '86');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "No",
"error_reason": "reserved"
} | dbbench_sft_0103 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'June 13, 1984': set Result to New Entry, Attendance to 15, Rank to 60.\nThe name of this table is Lions Season Results, and the headers of this table are Date,Opponent,Result,Score,Rank,Attendance."
},
{
"role": "assistant",
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Lions Season Results",
"sql": "UPDATE `Lions Season Results` SET `Result` = 'New Entry', `Attendance` = '15', `Rank` = '60' WHERE `Date` = 'June 13, 1984';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0149 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Turkey' for 'Cell type', 'Beta' for 'Organ/System', 'India' for 'Activators ligands --> Gq-GPCRs', 'Italy' for 'Effects'.\nThe name of this table is Cell_Receptor_Database, and the headers of this table are Cell type,Or... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Cell_Receptor_Database",
"sql": "INSERT INTO `Cell_Receptor_Database` (`Cell type`, `Organ/System`, `Activators ligands --> Gq-GPCRs`, `Effects`) VALUES ('Turkey', 'Beta', 'India', 'Italy');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0229 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('18',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Silver` FROM `2000 Olympic Medal Tally` WHERE `Nation` = 'Nigeria'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2000 Olympic Medal Tally",
"sql": "SELECT `Silver` FROM `2000 Olympic Medal Tally` WHERE `Nation` = 'Nigeria';",
"label": [
"18"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0501 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('James Jackson',), ('Joshua Scott',), ('Rebecca Thomas',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Athlete` FROM `World_Cup_Competition_Records` WHERE `Race 2 Time` > 88"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "World_Cup_Competition_Records",
"sql": "SELECT `Athlete` FROM `World_Cup_Competition_Records` WHERE `Race 2\nTime` > 88;",
"label": [
"James Jackson",
"Joshua Scott",
"Rebecca Thomas"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0749 |
[
{
"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 'Country/Region' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Islands of Indonesia`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Islands of Indonesia",
"sql": "INSERT INTO `Islands of Indonesia` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('29', 'Gamma', '8.0', '32.8', 'Malaysia');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Islands of Indonesia` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, Country/Region) VALUES ('29', 'Gamma', '8.0', '32.8', 'Malaysia');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Country/Region",
"error_reason": "special"
} | dbbench_sft_0048 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('3',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `No` FROM `Music_Releases` WHERE `Format` = 'Cassette'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Music_Releases",
"sql": "SELECT `No` FROM `Music_Releases` WHERE `Format` = 'Cassette';",
"label": [
"3"
],
"wrong_sql": "SELECT `No` FROM `Music_Releases` WHERE `Format` = 'cassette';",
"wrong_val": "cassette",
"correct_val": "Cassette",
"where_col": "Format",
"error_col": null,
"error_reason": null
} | dbbench_sft_0396 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Hepatocyte': set Activators ligands --> Gq-GPCRs to Updated Value.\nThe name of this table is Pharmacological Data Table, and the headers of this table are Cell type,Organ/System,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` = 'Updated Value' WHERE `Cell type` = 'Hepatocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0679 |
[
{
"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 `NBC Programming` (`Time`, `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_error_recovery",
"table_name": "NBC Programming",
"sql": "INSERT INTO `NBC Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Epsilon', 'Nancy Young', '72', 'Philippines', '99.1');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `NBC Programming` (`Time`, `Title`, `Duration`, Type, `Rating`) VALUES ('Epsilon', 'Nancy Young', '72', 'Philippines', '99.1');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Type",
"error_reason": "reserved"
} | dbbench_sft_0671 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.