messages listlengths 2 2 | metadata dict | id stringlengths 16 16 |
|---|---|---|
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Silent Echo': set Genre to New Entry, Release to Nancy Williams, Box Office to 12.7.\nThe name of this table is Romance_Films_2020s, and the headers of this table are Year,Title,Genre,Box Office,Rating,Release."
},
{
"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": "Romance_Films_2020s",
"sql": "UPDATE `Romance_Films_2020s` SET `Genre` = 'New Entry', `Release` = 'Nancy Williams', `Box Office` = '12.7' 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_0472 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '71' for 'Year', 'Beta' for 'Car', '2' for 'Start', '98.3' for 'Qual', '54' for 'Rank', '10' for 'Finish', '27' for 'Laps'.\nThe name of this table is Indianapolis 500 History, and the headers of this table are Year,Car,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('71', 'Beta', '2', '98.3', '54', '10', '27');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0044 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'March 9, 1961': set No to 40, Format to Melissa Sanchez, Label to Updated Value.\nThe name of this table is Music_Releases, and the headers of this table are Release,Title,Format,Label,No."
},
{
"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": "Music_Releases",
"sql": "UPDATE `Music_Releases` SET `No` = '40', `Format` = 'Melissa Sanchez', `Label` = 'Updated Value' WHERE `Release` = 'March 9, 1961';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0531 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '13:00': set Rating to 46.6.\nThe name of this table is TV Schedule Fall 2023, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"role": "assistant",
"content": "Final: UPDATE `TV Schedule Fall 2023` ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "TV Schedule Fall 2023",
"sql": "UPDATE `TV Schedule Fall 2023` SET `Rating` = '46.6' WHERE `Time` = '13:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0255 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Time is '17:00': set Duration to 51, Type to New Entry, Title to Updated Value.\nThe name of this table is TV Schedule Spring 2023, and the headers of this table are Time,Title,Duration,Type,Rating."
},
{
"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": "TV Schedule Spring 2023",
"sql": "UPDATE `TV Schedule Spring 2023` SET `Duration` = '51', `Type` = 'New Entry', `Title` = 'Updated Value' WHERE `Time` = '17:00';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0484 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(3.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Rank`) FROM `First Division 2001 Season Standings` WHERE `Date` = 'August 12, 1966'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "First Division 2001 Season Standings",
"sql": "SELECT SUM(`Rank`) FROM `First Division 2001 Season Standings` WHERE `Date` = 'August 12, 1966';",
"label": [
"3.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1077 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('4',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `Islands_of_Japan` WHERE `Country/Region` = 'Japan'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Islands_of_Japan",
"sql": "SELECT `Rank` FROM `Islands_of_Japan` WHERE `Country/Region` = 'Japan';",
"label": [
"4"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0649 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Car is '#17': set Qual to 25.2, Year to 62.\nThe name of this table is Scott Dixon Career Stats, and the headers of this table are Year,Car,Start,Qual,Rank,Finish,Laps."
},
{
"role": "assistant",
"content": "Final: UPDATE `Scott Di... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Scott Dixon Career Stats",
"sql": "UPDATE `Scott Dixon Career Stats` SET `Qual` = '25.2', `Year` = '62' WHERE `Car` = '#17';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0711 |
[
{
"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 'Level' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `New York Property Listings` (`... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "New York Property Listings",
"sql": "INSERT INTO `New York Property Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Delta', '3', '74', '63', '65');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `New York Property Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, Level) VALUES ('Delta', '3', '74', '63', '65');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Level",
"error_reason": "reserved"
} | dbbench_sft_0226 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '8' for 'Rank', 'Epsilon' for 'Nation', '3' for 'Gold', '75' for 'Silver', '25' for 'Bronze', '34' for 'Total'.\nThe name of this table is Summer 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": "Summer Olympics Medal Count",
"sql": "INSERT INTO `Summer Olympics Medal Count` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('8', 'Epsilon', '3', '75', '25', '34');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0230 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Address is '937 Hill St': set Level to 5, Price to 73.\nThe name of this table is Real Estate 2024, and the headers of this table are Address,Price,Area\n(sq ft),Year,Level."
},
{
"role": "assistant",
"content": "Final: UPDATE `Rea... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Real Estate 2024",
"sql": "UPDATE `Real Estate 2024` SET `Level` = '5', `Price` = '73' WHERE `Address` = '937 Hill St';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0418 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('June 12, 1975',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Release` FROM `Quentin Tarantino Filmography` ORDER BY `Year` DESC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking_error_recovery",
"table_name": "Quentin Tarantino Filmography",
"sql": "SELECT `Release` FROM `Quentin Tarantino Filmography` ORDER BY `Year` DESC LIMIT 1;",
"label": [
"June 12, 1975"
],
"wrong_sql": "SELECT Release FROM `Quentin Tarantino Filmography` ORDER BY `Year` DESC LIMIT 1;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Release",
"error_reason": "reserved"
} | dbbench_sft_0448 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Acetaminophen': set Dosage (mg) to 23.3.\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 Ap... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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)` = '23.3' WHERE `Name` = 'Acetaminophen';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0363 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Loss',), ('Draw',), ('Draw',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Result` FROM `Wolves Season Results` 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": "Wolves Season Results",
"sql": "SELECT `Result` FROM `Wolves Season Results` WHERE `Rank` > 6;",
"label": [
"Loss",
"Draw",
"Draw"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0276 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Argentina': set Bronze to 50.\nThe name of this table is 2004 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `2004 Olympi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2004 Olympic Medal Tally",
"sql": "UPDATE `2004 Olympic Medal Tally` SET `Bronze` = '50' 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_0077 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Region', '4' for 'Population', '52' for '15 to 17', '2' for '18 to 19', '76' for '20 to 24'.\nThe name of this table is Population_by_Age_Group_and_Region_in_Russia, and the headers of this table are Region,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Population_by_Age_Group_and_Region_in_Russia",
"sql": "INSERT INTO `Population_by_Age_Group_and_Region_in_Russia` (`Region`, `Population`, `15 to 17`, `18 to 19`, `20 to 24`) VALUES ('Gamma', '4', '52', '2', '76');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0085 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Indianapolis 500 History` (`Yea... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Indianapolis 500 History",
"sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, `Rank`, `Finish`, `Laps`) VALUES ('50', 'Osaka', '31', '62.0', '4', '32', '87');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Indianapolis 500 History` (`Year`, `Car`, `Start`, `Qual`, Rank, `Finish`, `Laps`) VALUES ('50', 'Osaka', '31', '62.0', '4', '32', '87');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0433 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'George Robinson' for 'Name', 'Gamma' for 'Party', '97' for 'Votes', '41.1' for 'Percentage', 'Delta' for 'Status'.\nThe name of this table is 2000 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": "2000 General Election",
"sql": "INSERT INTO `2000 General Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('George Robinson', 'Gamma', '97', '41.1', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0907 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('August 22, 1966',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Release` FROM `Music Releases` ORDER BY `No` ASC LIMIT 1"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "ranking",
"table_name": "Music Releases",
"sql": "SELECT `Release` FROM `Music Releases` ORDER BY `No` ASC LIMIT 1;",
"label": [
"August 22, 1966"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0254 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Mexico' for 'Cell type', 'Michelle Harris' for 'Organ/System', 'Alpha' for 'Activators ligands --> Gq-GPCRs', 'Delta' for 'Effects'.\nThe name of this table is Cell Receptor Database, and the headers of this table are C... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Cell Receptor Database",
"sql": "INSERT INTO `Cell Receptor Database` (`Cell type`, `Organ/System`, `Activators ligands --> Gq-GPCRs`, `Effects`) VALUES ('Mexico', 'Michelle Harris', 'Alpha', 'Delta');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0534 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Downlink (MHz)' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Telesat Satellite Fle... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Telesat Satellite Fleet",
"sql": "INSERT INTO `Telesat Satellite Fleet` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Stockholm', '19.3', '54.5', 'Germany', 'Ireland');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Telesat Satellite Fleet` (`Name`, `Uplink (MHz)`, Downlink (MHz), `System`, `Status`) VALUES ('Stockholm', '19.3', '54.5', 'Germany', 'Ireland');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Downlink (MHz)",
"error_reason": "special"
} | dbbench_sft_0642 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Telesat_Satellite_Fleet` WHERE `Name` = 'Telesat-25'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "Telesat_Satellite_Fleet",
"sql": "SELECT COUNT(*) FROM `Telesat_Satellite_Fleet` WHERE `Name` = 'Telesat-25';",
"label": [
"1"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0308 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('SES-17',), ('Telesat-8',), ('Intelsat-23',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Satellite Communications Data` WHERE `Uplink (MHz)` > 5969"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "comparison_error_recovery",
"table_name": "Satellite Communications Data",
"sql": "SELECT `Name` FROM `Satellite Communications Data` WHERE `Uplink (MHz)` > 5969;",
"label": [
"SES-17",
"Telesat-8",
"Intelsat-23"
],
"wrong_sql": "SELECT Name FROM `Satellite Communications Data` WHERE `Uplink (MHz)` > 5969;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Name",
"error_reason": "reserved"
} | dbbench_sft_0137 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Eutelsat-25': set Uplink (MHz) to 81.3, System to Dubai, Status to Prague.\nThe name of this table is Telesat_Satellite_Fleet, and the headers of this table are Name,Uplink (MHz),Downlink (MHz),System,Status."
},
{
"role": "as... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Telesat_Satellite_Fleet",
"sql": "UPDATE `Telesat_Satellite_Fleet` SET `Uplink (MHz)` = '81.3', `System` = 'Dubai', `Status` = 'Prague' WHERE `Name` = 'Eutelsat-25';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0178 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Moscow',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `From` FROM `Deutsche Bahn Train Schedule` WHERE `Name` = 'Coastal Line'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_error_recovery",
"table_name": "Deutsche Bahn Train Schedule",
"sql": "SELECT `From` FROM `Deutsche Bahn Train Schedule` WHERE `Name` = 'Coastal Line';",
"label": [
"Moscow"
],
"wrong_sql": "SELECT From FROM `Deutsche Bahn Train Schedule` WHERE `Name` = 'Coastal Line';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "From",
"error_reason": "reserved"
} | dbbench_sft_0936 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('14',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `University_Rankings_2023` WHERE `Name` = 'Yale'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "University_Rankings_2023",
"sql": "SELECT `Rank` FROM `University_Rankings_2023` WHERE `Name` = 'Yale';",
"label": [
"14"
],
"wrong_sql": "SELECT `Rank` FROM `University_Rankings_2023` WHERE `Name` = 'yale';",
"wrong_val": "yale",
"correct_val": "Yale",
"where_col": "Name",
"error_col": null,
"error_reason": null
} | dbbench_sft_0682 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Island is 'Sumatra': set Rank to 28, Country/Region to New Entry, Area\n(km²) to 18.0.\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."
},
{
"ro... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "World Islands Database",
"sql": "UPDATE `World Islands Database` SET `Rank` = '28', `Country/Region` = 'New Entry', `Area\n(km²)` = '18.0' WHERE `Island` = 'Sumatra';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0827 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('EMNLP',), ('CVPR',), ('ICML',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Venue` FROM `Journal of Mathematics Publications` WHERE `Citations` < 267"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Journal of Mathematics Publications",
"sql": "SELECT `Venue` FROM `Journal of Mathematics Publications` WHERE `Citations` < 267;",
"label": [
"EMNLP",
"CVPR",
"ICML"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0710 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('A Novel Approach Detection',), ('Revisiting Classification',), ('Revisiting Regression',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `Journal of Biology Publications` WHERE `Citations` > 282"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Journal of Biology Publications",
"sql": "SELECT `Title` FROM `Journal of Biology Publications` WHERE `Citations` > 282;",
"label": [
"A Novel Approach Detection",
"Revisiting Classification",
"Revisiting Regression"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1033 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Rank`) FROM `World_Higher_Education_Data` WHERE `Country` = 'Colombia'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "World_Higher_Education_Data",
"sql": "SELECT MAX(`Rank`) FROM `World_Higher_Education_Data` WHERE `Country` = 'Colombia';",
"label": [
"1.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0388 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(30170.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Year`) FROM `Journal of Psychology Publications`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Journal of Psychology Publications",
"sql": "SELECT SUM(`Year`) FROM `Journal of Psychology Publications`;",
"label": [
"30170.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0536 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'October 19, 1961': set Label to New Entry, Title to Mary Baker.\nThe name of this table is Led_Zeppelin_Discography, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content":... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Led_Zeppelin_Discography",
"sql": "UPDATE `Led_Zeppelin_Discography` SET `Label` = 'New Entry', `Title` = 'Mary Baker' WHERE `Release` = 'October 19, 1961';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0853 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('7295',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Number` FROM `FDA Approved Medications` WHERE `Type` = 'Injection'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_error_recovery",
"table_name": "FDA Approved Medications",
"sql": "SELECT `Number` FROM `FDA Approved Medications` WHERE `Type` = 'Injection';",
"label": [
"7295"
],
"wrong_sql": "SELECT `Number` FROM `FDA Approved Medications` WHERE Type = 'Injection';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Type",
"error_reason": "reserved"
} | dbbench_sft_0545 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Carol Wilson' for 'Time', 'Greece' for 'Title', '46' for 'Duration', 'Dubai' for 'Type', '11.2' for 'Rating'.\nThe name of this table is ITV_Programming, and the headers of this table are Time,Title,Duration,Type,Rating... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "ITV_Programming",
"sql": "INSERT INTO `ITV_Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Carol Wilson', 'Greece', '46', 'Dubai', '11.2');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0251 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Sarah Williams': set No to 56.\nThe name of this table is 2017 Formula One Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistant",
"content": "Final: UPDATE `2017 Formula ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "2017 Formula One Season",
"sql": "UPDATE `2017 Formula One Season` SET `No` = '56' WHERE `Driver` = 'Sarah Williams';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1045 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Date', 'Delta' for 'Venue', 'Beta' for 'Opponent', 'Delta' for 'Score', 'Gamma' for 'Competition'.\nThe name of this table is Brazil_Match_History, and the headers of this table are Date,Venue,Opponent,Score... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Brazil_Match_History",
"sql": "INSERT INTO `Brazil_Match_History` (`Date`, `Venue`, `Opponent`, `Score`, `Competition`) VALUES ('Alpha', 'Delta', 'Beta', 'Delta', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0506 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Comedy',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Genre` FROM `Sci-Fi Films 2000s` ORDER BY `Box Office` 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": "Sci-Fi Films 2000s",
"sql": "SELECT `Genre` FROM `Sci-Fi Films 2000s` ORDER BY `Box Office` DESC LIMIT 1;",
"label": [
"Comedy"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0091 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Afternoon Live',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Title` FROM `TV Schedule Summer 2024` WHERE `Time` = '10:00'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "TV Schedule Summer 2024",
"sql": "SELECT `Title` FROM `TV Schedule Summer 2024` WHERE `Time` = '10:00';",
"label": [
"Afternoon Live"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0338 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Athlete', 'Alpha' for 'Event', '39.5' for 'Race 1\nTime', '87.6' for 'Race 2\nTime', '98.9' for 'Total\nTime', '24' for 'Total\nRank'.\nThe name of this table is World Championships Competition Records, an... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "World Championships Competition Records",
"sql": "INSERT INTO `World Championships Competition Records` (`Athlete`, `Event`, `Race 1\nTime`, `Race 2\nTime`, `Total\nTime`, `Total\nRank`) VALUES ('Epsilon', 'Alpha', '39.5', '87.6', '98.9', '24');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0138 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Los Angeles' for 'Cell type', 'San Jose' for 'Organ/System', 'Kevin Martinez' for 'Activators ligands --> Gq-GPCRs', 'Epsilon' for 'Effects'.\nThe name of this table is Cell Receptor Database, and the headers of this ta... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 ('Los Angeles', 'San Jose', 'Kevin Martinez', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0714 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Jacksonville' for 'Release', 'Osaka' for 'Title', 'Warsaw' for 'Format', 'Istanbul' for 'Label', '77' for 'No'.\nThe name of this table is Music Releases, and the headers of this table are Release,Title,Format,Label,No.... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Music Releases",
"sql": "INSERT INTO `Music Releases` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Jacksonville', 'Osaka', 'Warsaw', 'Istanbul', '77');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0306 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Indonesia': set Bronze to 62, Silver to 85.\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: 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": "Summer Olympics Medal Count",
"sql": "UPDATE `Summer Olympics Medal Count` SET `Bronze` = '62', `Silver` = '85' WHERE `Nation` = 'Indonesia';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0959 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Musical',), ('Drama',), ('History',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Genre` FROM `Steven_Spielberg_Filmography` WHERE `Box Office` < 253"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Steven_Spielberg_Filmography",
"sql": "SELECT `Genre` FROM `Steven_Spielberg_Filmography` WHERE `Box Office` < 253;",
"label": [
"Musical",
"Drama",
"History"
],
"wrong_sql": "SELECT `Genre` FROM `Steven_Spielberg_Filmography` WHERE Box Office < 253;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Box Office",
"error_reason": "special"
} | dbbench_sft_0792 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Time', 'Vienna' for 'Title', '56' for 'Duration', 'Gamma' for 'Type', '32.8' for 'Rating'.\nThe name of this table is Channel 4 Programming, and the headers of this table are Time,Title,Duration,Type,Rating.... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Channel 4 Programming",
"sql": "INSERT INTO `Channel 4 Programming` (`Time`, `Title`, `Duration`, `Type`, `Rating`) VALUES ('Alpha', 'Vienna', '56', 'Gamma', '32.8');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1144 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Dubai',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `To` FROM `Railway_Stations_Germany` WHERE `Name` = 'Mountain Route'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_retry",
"table_name": "Railway_Stations_Germany",
"sql": "SELECT `To` FROM `Railway_Stations_Germany` WHERE `Name` = 'Mountain Route';",
"label": [
"Dubai"
],
"wrong_sql": "SELECT `To` FROM `Railway_Stations_Germany` WHERE `Name` = 'MOUNTAIN ROUTE';",
"wrong_val": "MOUNTAIN ROUTE",
"correct_val": "Mountain Route",
"where_col": "Name",
"error_col": null,
"error_reason": null
} | dbbench_sft_0660 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('2979.8',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Area (km²)` FROM `World Islands Database` WHERE `Country/Region` = 'Austria'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "World Islands Database",
"sql": "SELECT `Area\n(km²)` FROM `World Islands Database` WHERE `Country/Region` = 'Austria';",
"label": [
"2979.8"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0797 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Date is 'June 10, 2009': set Opponent to Updated Value, Venue to Updated Value.\nThe name of this table is Brazil Match History, and the headers of this table are Date,Venue,Opponent,Score,Competition."
},
{
"role": "assistant",
"c... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Brazil Match History",
"sql": "UPDATE `Brazil Match History` SET `Opponent` = 'Updated Value', `Venue` = 'Updated Value' WHERE `Date` = 'June 10, 2009';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0148 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Status' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Satellite Communications Data... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Satellite Communications Data",
"sql": "INSERT INTO `Satellite Communications Data` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, `Status`) VALUES ('Sydney', '55.0', '43.8', 'Epsilon', 'Melissa Carter');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Satellite Communications Data` (`Name`, `Uplink (MHz)`, `Downlink (MHz)`, `System`, Status) VALUES ('Sydney', '55.0', '43.8', 'Epsilon', 'Melissa Carter');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Status",
"error_reason": "reserved"
} | dbbench_sft_0088 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Release is 'May 25, 1952': set Format to Sarah White, Title to Updated Value.\nThe name of this table is Nirvana Discography, and the headers of this table are Release,Title,Format,Label,No."
},
{
"role": "assistant",
"content": "F... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Nirvana Discography",
"sql": "UPDATE `Nirvana Discography` SET `Format` = 'Sarah White', `Title` = 'Updated Value' WHERE `Release` = 'May 25, 1952';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0221 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '25' for 'Rank', 'Steven Evans' for 'Nation', '21' for 'Gold', '9' for 'Silver', '32' for 'Bronze', '56' for 'Total'.\nThe name of this table is 1980 Olympic Medal Tally, and the headers of this table are Rank,Nation,Gol... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "1980 Olympic Medal Tally",
"sql": "INSERT INTO `1980 Olympic Medal Tally` (`Rank`, `Nation`, `Gold`, `Silver`, `Bronze`, `Total`) VALUES ('25', 'Steven Evans', '21', '9', '32', '56');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1041 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Win',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Result` FROM `Falcons Season Results` ORDER BY `Attendance` 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": "Falcons Season Results",
"sql": "SELECT `Result` FROM `Falcons Season Results` ORDER BY `Attendance` ASC LIMIT 1;",
"label": [
"Win"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0458 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Norway': set Rank to 17, Total to 13.\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: 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": "Summer Olympics Medal Count",
"sql": "UPDATE `Summer Olympics Medal Count` SET `Rank` = '17', `Total` = '13' WHERE `Nation` = 'Norway';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0684 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Epsilon' for 'Title', '41' for 'Year', '84' for 'Citations', 'Gamma' for 'Authors', 'Epsilon' for 'Venue'.\nThe name of this table is Physics_Research_Papers, and the headers of this table are Title,Year,Citations,Autho... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Physics_Research_Papers",
"sql": "INSERT INTO `Physics_Research_Papers` (`Title`, `Year`, `Citations`, `Authors`, `Venue`) VALUES ('Epsilon', '41', '84', 'Gamma', 'Epsilon');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0696 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Yale',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Name` FROM `Europe Higher Education Data` ORDER BY `Students` 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": "Europe Higher Education Data",
"sql": "SELECT `Name` FROM `Europe Higher Education Data` ORDER BY `Students` ASC LIMIT 1;",
"label": [
"Yale"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0676 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Efficient Methods Optimization': set Citations to 93, Year to 45.\nThe name of this table is Computer Science Research Papers, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"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": "Computer Science Research Papers",
"sql": "UPDATE `Computer Science Research Papers` SET `Citations` = '93', `Year` = '45' WHERE `Title` = 'Efficient Methods Optimization';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1152 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Journal of Mathematics Publications` WHERE `Authors` = 'Michelle Rodriguez 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": "Journal of Mathematics Publications",
"sql": "SELECT COUNT(*) FROM `Journal of Mathematics Publications` WHERE `Authors` = 'Michelle Rodriguez et al.';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Journal of Mathematics Publications` WHERE `Authors` = 'Michelle-Rodriguez-et-al.';",
"wrong_val": "Michelle-Rodriguez-et-al.",
"correct_val": "Michelle Rodriguez et al.",
"where_col": "Authors",
"error_col": null,
"error_reason": null
} | dbbench_sft_0911 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(24.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Rank`) FROM `1984_Olympic_Medal_Tally` WHERE `Nation` = 'Hungary'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "1984_Olympic_Medal_Tally",
"sql": "SELECT SUM(`Rank`) FROM `1984_Olympic_Medal_Tally` WHERE `Nation` = 'Hungary';",
"label": [
"24.0"
],
"wrong_sql": "SELECT SUM(`Rank`) FROM `1984_Olympic_Medal_Tally` WHERE `Nation` = 'hungary';",
"wrong_val": "hungary",
"correct_val": "Hungary",
"where_col": "Nation",
"error_col": null,
"error_reason": null
} | dbbench_sft_1190 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Delta' for 'Release', 'Gamma' for 'Title', 'Timothy Flores' for 'Format', 'Beta' for 'Label', '19' for 'No'.\nThe name of this table is R&B Album Chart, and the headers of this table are Release,Title,Format,Label,No."
... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "R&B Album Chart",
"sql": "INSERT INTO `R&B Album Chart` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('Delta', 'Gamma', 'Timothy Flores', 'Beta', '19');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1160 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Cell type is 'Lymphocyte': set Organ/System to New Entry, Activators ligands --> Gq-GPCRs to Budapest.\nThe name of this table is Pharmacological Data Table, and the headers of this table are Cell type,Organ/System,Activators ligands --> Gq-GP... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Pharmacological Data Table",
"sql": "UPDATE `Pharmacological Data Table` SET `Organ/System` = 'New Entry', `Activators ligands --> Gq-GPCRs` = 'Budapest' WHERE `Cell type` = 'Lymphocyte';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0932 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(93.5,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Score`) FROM `University Rankings 2020` WHERE `Country` = 'Philippines'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG_retry",
"table_name": "University Rankings 2020",
"sql": "SELECT AVG(`Score`) FROM `University Rankings 2020` WHERE `Country` = 'Philippines';",
"label": [
"93.5"
],
"wrong_sql": "SELECT AVG(`Score`) FROM `University Rankings 2020` WHERE `Country` = 'philippines';",
"wrong_val": "philippines",
"correct_val": "Philippines",
"where_col": "Country",
"error_col": null,
"error_reason": null
} | dbbench_sft_0461 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(28.5,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`No`) FROM `Music Releases`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG",
"table_name": "Music Releases",
"sql": "SELECT AVG(`No`) FROM `Music Releases`;",
"label": [
"28.5"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0728 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Gamma' for 'Address', '6' for 'Price', '34' for 'Area\n(sq ft)', '94' for 'Year', '96' for 'Level'.\nThe name of this table is London_Property_Listings, and the headers of this table are Address,Price,Area\n(sq ft),Year... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "London_Property_Listings",
"sql": "INSERT INTO `London_Property_Listings` (`Address`, `Price`, `Area\n(sq ft)`, `Year`, `Level`) VALUES ('Gamma', '6', '34', '94', '96');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0347 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '57' for 'No', 'Austria' for 'Name', 'Donna Campbell' for 'From', 'Alpha' for 'To', '91' for 'Distance (km)', '24' for 'Platforms'.\nThe name of this table is Railway Stations France, and the headers of this table are No... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Railway Stations France",
"sql": "INSERT INTO `Railway Stations France` (`No`, `Name`, `From`, `To`, `Distance (km)`, `Platforms`) VALUES ('57', 'Austria', 'Donna Campbell', 'Alpha', '91', '24');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1017 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Copenhagen',), ('Oslo',), ('Los Angeles',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `To` FROM `Amtrak Train Schedule` WHERE `Distance (km)` < 953"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Amtrak Train Schedule",
"sql": "SELECT `To` FROM `Amtrak Train Schedule` WHERE `Distance (km)` < 953;",
"label": [
"Copenhagen",
"Oslo",
"Los Angeles"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1155 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '45' for 'Rank', 'Rebecca Stewart' for 'Island', '16.4' for 'Area\n(km²)', '98.6' for 'Area\n(sq mi)', 'Gamma' for 'Country/Region'.\nThe name of this table is Islands_of_Caribbean, and the headers of this table are Rank... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Islands_of_Caribbean",
"sql": "INSERT INTO `Islands_of_Caribbean` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('45', 'Rebecca Stewart', '16.4', '98.6', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0924 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Comedy',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Type` FROM `TV Schedule Winter 2024` ORDER BY `Rating` 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": "TV Schedule Winter 2024",
"sql": "SELECT `Type` FROM `TV Schedule Winter 2024` ORDER BY `Rating` DESC LIMIT 1;",
"label": [
"Comedy"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0809 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Steven Roberts': set Status to Updated Value, Percentage to 5.4.\nThe name of this table is Pennsylvania Election Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assistant",
"c... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Pennsylvania Election Results",
"sql": "UPDATE `Pennsylvania Election Results` SET `Status` = 'Updated Value', `Percentage` = '5.4' WHERE `Name` = 'Steven Roberts';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0934 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '62' for 'Rank', 'Delta' for 'Island', '38.8' for 'Area\n(km²)', '78.1' for 'Area\n(sq mi)', 'Gamma' for 'Country/Region'.\nThe name of this table is World Islands Database, and the headers of this table are Rank,Island,... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "World Islands Database",
"sql": "INSERT INTO `World Islands Database` (`Rank`, `Island`, `Area\n(km²)`, `Area\n(sq mi)`, `Country/Region`) VALUES ('62', 'Delta', '38.8', '78.1', 'Gamma');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0500 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Alpha' for 'Name', 'Alpha' for 'Party', '45' for 'Votes', '58.6' for 'Percentage', 'Alpha' for 'Status'.\nThe name of this table is 2020_General_Election, and the headers of this table are Name,Party,Votes,Percentage,St... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "2020_General_Election",
"sql": "INSERT INTO `2020_General_Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Alpha', 'Alpha', '45', '58.6', 'Alpha');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0194 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '80' for 'Year', 'Stockholm' for 'Title', 'Gamma' for 'Genre', '84.5' for 'Box Office', '49.3' for 'Rating', 'Alpha' for 'Release'.\nThe name of this table is Quentin Tarantino Filmography, 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": "Quentin Tarantino Filmography",
"sql": "INSERT INTO `Quentin Tarantino Filmography` (`Year`, `Title`, `Genre`, `Box Office`, `Rating`, `Release`) VALUES ('80', 'Stockholm', 'Gamma', '84.5', '49.3', 'Alpha');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0976 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('June 28, 1961',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Release` FROM `R&B_Album_Chart` WHERE `Title` = 'Crystals'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "R&B_Album_Chart",
"sql": "SELECT `Release` FROM `R&B_Album_Chart` WHERE `Title` = 'Crystals';",
"label": [
"June 28, 1961"
],
"wrong_sql": "SELECT `Release` FROM `R&B_Album_Chart` WHERE `Title` = 'Crystals ';",
"wrong_val": "Crystals ",
"correct_val": "Crystals",
"where_col": "Title",
"error_col": null,
"error_reason": null
} | dbbench_sft_0811 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Thailand': set Rank to 53.\nThe name of this table is 2004_Olympic_Medal_Tally, and the headers of this table are Rank,Nation,Gold,Silver,Bronze,Total."
},
{
"role": "assistant",
"content": "Final: UPDATE `2004_Olympic_M... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2004_Olympic_Medal_Tally",
"sql": "UPDATE `2004_Olympic_Medal_Tally` SET `Rank` = '53' WHERE `Nation` = 'Thailand';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0736 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Population_by_Age_Group_and_Region_in_Brazil` WHERE `Region` = 'Nizhny Novgorod'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Population_by_Age_Group_and_Region_in_Brazil",
"sql": "SELECT COUNT(*) FROM `Population_by_Age_Group_and_Region_in_Brazil` WHERE `Region` = 'Nizhny Novgorod';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Population_by_Age_Group_and_Region_in_Brazil` WHERE `Region` = 'Nizhny Novgorod ';",
"wrong_val": "Nizhny Novgorod ",
"correct_val": "Nizhny Novgorod",
"where_col": "Region",
"error_col": null,
"error_reason": null
} | dbbench_sft_0307 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Nation is 'Nigeria': set Silver to 58, Total to 17, Gold to 20.\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": "... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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` = '58', `Total` = '17', `Gold` = '20' WHERE `Nation` = 'Nigeria';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0900 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Chhatisgarh Express': set From to Margaret Baker.\nThe name of this table is Railway_Stations_France, and the headers of this table are No,Name,From,To,Distance (km),Platforms."
},
{
"role": "assistant",
"content": "Final:... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "Railway_Stations_France",
"sql": "UPDATE `Railway_Stations_France` SET `From` = 'Margaret Baker' WHERE `Name` = 'Chhatisgarh Express';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0573 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Simvastatin': set Dosage (mg) to 14.9.\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 Appr... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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)` = '14.9' WHERE `Name` = 'Simvastatin';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0851 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('1043255',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Population` FROM `Western Census Data` WHERE `Region` = 'St. Petersburg'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other",
"table_name": "Western Census Data",
"sql": "SELECT `Population` FROM `Western Census Data` WHERE `Region` = 'St. Petersburg';",
"label": [
"1043255"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1103 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Marine Corps Officers List` WHERE `To` = 'December 25, 1981'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Marine Corps Officers List",
"sql": "SELECT COUNT(*) FROM `Marine Corps Officers List` WHERE `To` = 'December 25, 1981';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Marine Corps Officers List` WHERE `To` = 'december 25, 1981';",
"wrong_val": "december 25, 1981",
"correct_val": "December 25, 1981",
"where_col": "To",
"error_col": null,
"error_reason": null
} | dbbench_sft_1175 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Beta' for 'Name', 'Dallas' for 'Party', '36' for 'Votes', '10.2' for 'Percentage', 'Osaka' for 'Status'.\nThe name of this table is 2014 General Election, and the headers of this table are Name,Party,Votes,Percentage,St... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "2014 General Election",
"sql": "INSERT INTO `2014 General Election` (`Name`, `Party`, `Votes`, `Percentage`, `Status`) VALUES ('Beta', 'Dallas', '36', '10.2', 'Osaka');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0614 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1215.6,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Area (sq mi)`) FROM `World Islands Database`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-AVG",
"table_name": "World Islands Database",
"sql": "SELECT AVG(`Area\n(sq mi)`) FROM `World Islands Database`;",
"label": [
"1215.6"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0239 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Driver is 'Rebecca Thompson': set Time/Retired to Edward Harris.\nThe name of this table is 2008 Formula One Season, and the headers of this table are No,Driver,Time/Retired,Laps,Points."
},
{
"role": "assistant",
"content": "Final... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2008 Formula One Season",
"sql": "UPDATE `2008 Formula One Season` SET `Time/Retired` = 'Edward Harris' WHERE `Driver` = 'Rebecca Thompson';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0768 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2800.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT SUM(`Citations`) FROM `Economics Research Papers`"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-SUM",
"table_name": "Economics Research Papers",
"sql": "SELECT SUM(`Citations`) FROM `Economics Research Papers`;",
"label": [
"2800.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0241 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Title is 'Analysis of Neural Networks': set Year to 57.\nThe name of this table is Economics Research Papers, and the headers of this table are Title,Year,Citations,Authors,Venue."
},
{
"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": "Economics Research Papers",
"sql": "UPDATE `Economics Research Papers` SET `Year` = '57' WHERE `Title` = 'Analysis of Neural Networks';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0124 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(10.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MIN(`Dosage (mg)`) FROM `FDA Approved Medications` WHERE `Type` = 'Patch'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "FDA Approved Medications",
"sql": "SELECT MIN(`Dosage (mg)`) FROM `FDA Approved Medications` WHERE `Type` = 'Patch';",
"label": [
"10.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0291 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('6293.7',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Uplink (MHz)` FROM `SES Satellite Fleet` WHERE `Name` = 'Eutelsat-2'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "SES Satellite Fleet",
"sql": "SELECT `Uplink (MHz)` FROM `SES Satellite Fleet` WHERE `Name` = 'Eutelsat-2';",
"label": [
"6293.7"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0709 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1.0,)]"
},
{
"role": "assistant",
"content": "Final: SELECT MAX(`Points`) FROM `F1 Monza Grand Prix Results` WHERE `Time/Retired` = '1:34:35.766'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "aggregation-MAX",
"table_name": "F1 Monza Grand Prix Results",
"sql": "SELECT MAX(`Points`) FROM `F1 Monza Grand Prix Results` WHERE `Time/Retired` = '1:34:35.766';",
"label": [
"1.0"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0916 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'David Nguyen': set Percentage to 83.4, Status to Updated Value, Votes to 21.\nThe name of this table is North Carolina Election Results, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assi... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "North Carolina Election Results",
"sql": "UPDATE `North Carolina Election Results` SET `Percentage` = '83.4', `Status` = 'Updated Value', `Votes` = '21' WHERE `Name` = 'David Nguyen';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0367 |
[
{
"role": "user",
"content": "[TASK=DB]\n1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'To' at line 1"
},
{
"role": "assistant",
"content": "Final: INSERT INTO `Military Leaders Table` (`Name`, ... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT_error_recovery",
"table_name": "Military Leaders Table",
"sql": "INSERT INTO `Military Leaders Table` (`Name`, `From`, `To`, `Position`, `Unit`) VALUES ('Epsilon', 'Gamma', 'Delta', 'Gamma', 'Gamma');",
"label": [
"done"
],
"wrong_sql": "INSERT INTO `Military Leaders Table` (`Name`, `From`, To, `Position`, `Unit`) VALUES ('Epsilon', 'Gamma', 'Delta', 'Gamma', 'Gamma');",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "To",
"error_reason": "reserved"
} | dbbench_sft_0167 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '88' for 'No', 'Gamma' for 'Driver', 'Chicago' for 'Time/Retired', '84' for 'Laps', '67.5' for 'Points'.\nThe name of this table is F1 Monaco Grand Prix Results, and the headers of this table are No,Driver,Time/Retired,L... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "F1 Monaco Grand Prix Results",
"sql": "INSERT INTO `F1 Monaco Grand Prix Results` (`No`, `Driver`, `Time/Retired`, `Laps`, `Points`) VALUES ('88', 'Gamma', 'Chicago', '84', '67.5');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0513 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values '76' for 'Rank', 'Bangkok' for 'Name', 'Gamma' for 'Country', '41' for 'Students', '48.0' for 'Score'.\nThe name of this table is University Rankings 2021, and the headers of this table are Rank,Name,Country,Students,Sco... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 2021",
"sql": "INSERT INTO `University Rankings 2021` (`Rank`, `Name`, `Country`, `Students`, `Score`) VALUES ('76', 'Bangkok', 'Gamma', '41', '48.0');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1101 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Chelyabinsk',), ('Omsk',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Region` FROM `Northern Census Data` WHERE `20 to 24` > 47205"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Northern Census Data",
"sql": "SELECT `Region` FROM `Northern Census Data` WHERE `20 to 24` > 47205;",
"label": [
"Chelyabinsk",
"Omsk"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0101 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'San Diego' for 'Release', 'Jennifer Torres' for 'Title', 'Betty King' for 'Format', 'Linda Carter' for 'Label', '64' for 'No'.\nThe name of this table is Rock Album Chart, and the headers of this table are Release,Title... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "INSERT",
"table_name": "Rock Album Chart",
"sql": "INSERT INTO `Rock Album Chart` (`Release`, `Title`, `Format`, `Label`, `No`) VALUES ('San Diego', 'Jennifer Torres', 'Betty King', 'Linda Carter', '64');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0364 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(2,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `University Rankings 2020` WHERE `Name` = 'Imperial College'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "counting",
"table_name": "University Rankings 2020",
"sql": "SELECT COUNT(*) FROM `University Rankings 2020` WHERE `Name` = 'Imperial College';",
"label": [
"2"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0074 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Michael Lopez': set Votes to 34, Party to Daniel Gonzalez, Status to Updated Value.\nThe name of this table is 2020 General Election, and the headers of this table are Name,Party,Votes,Percentage,Status."
},
{
"role": "assista... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "2020 General Election",
"sql": "UPDATE `2020 General Election` SET `Votes` = '34', `Party` = 'Daniel Gonzalez', `Status` = 'Updated Value' WHERE `Name` = 'Michael Lopez';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_1170 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT COUNT(*) FROM `Indian Railways Train Schedule` WHERE `From` = 'Berlin'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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": "Indian Railways Train Schedule",
"sql": "SELECT COUNT(*) FROM `Indian Railways Train Schedule` WHERE `From` = 'Berlin';",
"label": [
"1"
],
"wrong_sql": "SELECT COUNT(*) FROM `Indian Railways Train Schedule` WHERE `From` = 'Berlin ';",
"wrong_val": "Berlin ",
"correct_val": "Berlin",
"where_col": "From",
"error_col": null,
"error_reason": null
} | dbbench_sft_0808 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('Super-G',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Event` FROM `World Cup Competition Records` ORDER BY `Total Time` 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": "World Cup Competition Records",
"sql": "SELECT `Event` FROM `World Cup Competition Records` ORDER BY `Total\nTime` DESC LIMIT 1;",
"label": [
"Super-G"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0422 |
[
{
"role": "user",
"content": "[TASK=DB]\n[('15',)]"
},
{
"role": "assistant",
"content": "Final: SELECT `Rank` FROM `Summer_Olympics_Medal_Count` WHERE `Nation` = 'Kenya'"
}
] | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "other_error_recovery",
"table_name": "Summer_Olympics_Medal_Count",
"sql": "SELECT `Rank` FROM `Summer_Olympics_Medal_Count` WHERE `Nation` = 'Kenya';",
"label": [
"15"
],
"wrong_sql": "SELECT Rank FROM `Summer_Olympics_Medal_Count` WHERE `Nation` = 'Kenya';",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Rank",
"error_reason": "reserved"
} | dbbench_sft_0299 |
[
{
"role": "user",
"content": "[TASK=DB]\nInsert a new record into the table with values 'Austria' for 'Date', 'Epsilon' for 'Venue', 'Alpha' for 'Opponent', 'Ireland' for 'Score', 'James Roberts' for 'Competition'.\nThe name of this table is Football Matches 2016, and the headers of this table are Date,Venu... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": 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 ('Austria', 'Epsilon', 'Alpha', 'Ireland', 'James Roberts');",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0823 |
[
{
"role": "user",
"content": "[TASK=DB]\nUpdate the record where Name is 'Chicago': set Country to New Entry.\nThe name of this table is University_Rankings_2022, and the headers of this table are Rank,Name,Country,Students,Score."
},
{
"role": "assistant",
"content": "Final: UPDATE `University_... | {
"task_type": null,
"description": null,
"room_type": null,
"difficulty": null,
"num_steps": null,
"has_recovery_steps": null,
"has_close_open": null,
"has_admissible": null,
"num_actions": null,
"num_observations": null,
"num_detours": null,
"num_recovery_steps": null,
"has_open_action": null,
"subgoals": null,
"total_chars": null,
"trajectory_outcome": null,
"failure_reason": null,
"type": "UPDATE",
"table_name": "University_Rankings_2022",
"sql": "UPDATE `University_Rankings_2022` SET `Country` = 'New Entry' WHERE `Name` = 'Chicago';",
"label": [
"done"
],
"wrong_sql": null,
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": null,
"error_reason": null
} | dbbench_sft_0439 |
[
{
"role": "user",
"content": "[TASK=DB]\n[(121.1,)]"
},
{
"role": "assistant",
"content": "Final: SELECT AVG(`Dosage (mg)`) 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-AVG_error_recovery",
"table_name": "FDA_Approved_Medications",
"sql": "SELECT AVG(`Dosage (mg)`) FROM `FDA_Approved_Medications`;",
"label": [
"121.1"
],
"wrong_sql": "SELECT AVG(Dosage (mg)) FROM `FDA_Approved_Medications`;",
"wrong_val": null,
"correct_val": null,
"where_col": null,
"error_col": "Dosage (mg)",
"error_reason": "special"
} | dbbench_sft_0566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.