Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
int64
1.05k
1.84k
db_id
stringclasses
17 values
prompt
stringlengths
511
3.17k
solution
stringlengths
22
1.44k
top_k_progression
stringlengths
1.33k
63.6k
1,051
phone_1
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "chip_model" ( "Model_name" text, "Launch_year" real, "RAM_MiB" real, "ROM_MiB" real, "Slots" text, "WiFi" text, "Bluetooth" text, PRIMARY KEY ("Model_name") ); CREATE TABLE IF NOT EXISTS "screen_mode" ( "Graphics_mode" real, "C...
SELECT p2.Pixels FROM phone p1, phone p2, screen_mode WHERE p1.Graphics_mode = p2.Graphics_mode AND p1.Accreditation_type = 'Full' AND p2.Accreditation_type = 'Provisional';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.91809}, {"token": "```", "prob": 0.08191}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.40888}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 0.42501}, {"token": "\u0120screen", "prob": 0.331}, {...
1,052
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT COUNT(DISTINCT Country_name) AS Total_Countries FROM country;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.97995}, {"token": "```", "prob": 0.01044}, {"token": "To", "prob": 0.00961}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.16174}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.96577}, {"token": "\u0120count", "prob": 0.02916}...
1,053
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT COUNT(*) FROM country;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98504}, {"token": "```", "prob": 0.01496}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.1121}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.95856}, {"token": "\u0120count", "prob": 0.02776}, {"to...
1,054
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Country_name, Capital FROM country;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.94866}, {"token": "```", "prob": 0.05134}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.29204}, "step_1": {"top_k": [{"token": "\u0120Country", "prob": 0.43516}, {"token": "\u0120c", "prob": 0.19716}, {"tok...
1,055
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT `Country_name`, `Capital` FROM `country`;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98343}, {"token": "```", "prob": 0.01657}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.12173}, "step_1": {"top_k": [{"token": "\u0120Country", "prob": 0.40762}, {"token": "\u0120c", "prob": 0.22747}, {"tok...
1,056
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Official_native_language FROM country WHERE Official_native_language LIKE '%English%';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.96192}, {"token": "```", "prob": 0.03808}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.23343}, "step_1": {"top_k": [{"token": "\u0120Official", "prob": 0.51223}, {"token": "\u0120DISTINCT", "prob": 0.38265...
1,057
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Official_native_language FROM country WHERE Official_native_language LIKE '%English%'; SELECT Official_native_language FROM country WHERE Official_native_language LIKE '%English%';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98594}, {"token": "```", "prob": 0.01406}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.10666}, "step_1": {"top_k": [{"token": "\u0120Official", "prob": 0.46141}, {"token": "\u0120DISTINCT", "prob": 0.39058...
1,058
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT "Position" FROM match_season;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.97794}, {"token": "```", "prob": 0.02206}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.15286}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "pr...
1,059
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT Position FROM match_season;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.99049}, {"token": "```", "prob": 0.00951}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.07753}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 0.96784}, {"token": "\u0120\"", "prob": 0.01324}, {"t...
1,060
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT p.Player FROM player p JOIN match_season ms ON p.Team = ms.Team AND ms.College = 'UCLA' WHERE p.Player IS NOT NULL; Note: The given schema does not contain any information about the colleges of the players or the match seasons. Therefore, we cannot accurately determine the players from UCLA based on the provide...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.97508}, {"token": "```", "prob": 0.02492}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.16826}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 0.36161}, {"token": "\u0120p", "prob": 0.17808}, {"to...
1,061
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT player.Player FROM player JOIN match_season ON player.Team = match_season.Team WHERE match_season.College = 'UCLA';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98967}, {"token": "```", "prob": 0.01033}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.08296}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 0.30749}, {"token": "\u0120player", "prob": 0.16459},...
1,062
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT Position FROM match_season WHERE College IN ('UCLA', 'Duke'); The SQL query you provided is almost correct, but it needs to be adjusted to ensure it correctly identifies the distinct positions of players from the colleges "UCLA" or "Duke". The query should be: ```sql SELECT DISTINCT Position FROM ma...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.97297}, {"token": "```", "prob": 0.02703}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.17928}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "pr...
1,063
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT Team.Position FROM Team, Match_Season WHERE Match_Season.College = 'UCLA' OR Match_Season.College = 'Duke';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98164}, {"token": "```", "prob": 0.01836}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.13212}, "step_1": {"top_k": [{"token": "\u0120DISTINCT", "prob": 0.94183}, {"token": "\u0120\"", "prob": 0.01343}, {"t...
1,064
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT draft_pick_number, draft_class FROM match_season WHERE position = 'Defender';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"token": "$", "prob": 0.0}, {"token": "\"", "prob": 0.0}], "pred_entropy": -0.0}, "step_1": {"top_k": [{"token": "\u0120draft", "prob": 0.25297}, {"token": "\u0120Draft", "prob": 0.15996}, {"token": "\u012...
1,065
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT t.Season, m.Draft_Pick_Number, m.Draft_Class FROM Team t, Match_Sesoin m WHERE t.Position = 'Defender';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"token": "$", "prob": 0.0}, {"token": "\"", "prob": 0.0}], "pred_entropy": -0.0}, "step_1": {"top_k": [{"token": "\u0120draft", "prob": 0.18396}, {"token": "\u0120\"", "prob": 0.14327}, {"token": "\u0120m"...
1,066
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT COUNT(DISTINCT Team) FROM match_season;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.96948}, {"token": "```", "prob": 0.03052}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.197}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.93332}, {"token": "\u0120DISTINCT", "prob": 0.04844}, {"...
1,067
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT COUNT(DISTINCT Team_id) AS "number_of_teams" FROM match_season;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.98376}, {"token": "```", "prob": 0.01624}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.11975}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.97082}, {"token": "\u0120DISTINCT", "prob": 0.01172}, ...
1,068
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT DISTINCT player, years_played FROM player;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.99106}, {"token": "```", "prob": 0.00894}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.07368}, "step_1": {"top_k": [{"token": "\u0120Player", "prob": 0.51292}, {"token": "\u0120\"", "prob": 0.20509}, {"tok...
1,069
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Player, Years_Played FROM player;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"token": "$", "prob": 0.0}, {"token": "\"", "prob": 0.0}], "pred_entropy": -0.0}, "step_1": {"top_k": [{"token": "\u0120Player", "prob": 0.30468}, {"token": "\u0120DISTINCT", "prob": 0.2579}, {"token": "\u...
1,070
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Name FROM team;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.96267}, {"token": "```", "prob": 0.03733}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.2299}, "step_1": {"top_k": [{"token": "\u0120Name", "prob": 0.72785}, {"token": "\u0120DISTINCT", "prob": 0.13747}, {"...
1,071
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT Name FROM team;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.97297}, {"token": "```", "prob": 0.02703}, {"token": "#", "prob": 0.0}, {"token": "\"", "prob": 0.0}, {"token": "!", "prob": 0.0}], "pred_entropy": 0.17928}, "step_1": {"top_k": [{"token": "\u0120Name", "prob": 0.73783}, {"token": "\u0120DISTINCT", "prob": 0.13936}, {...
1,072
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT MS.Season, MS.Player, C.Country_name FROM match_season MS INNER JOIN country C ON MS.Country = C.Country_id;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"token": "$", "prob": 0.0}, {"token": "\"", "prob": 0.0}], "pred_entropy": -0.0}, "step_1": {"top_k": [{"token": "\u0120ms", "prob": 0.37371}, {"token": "\u0120m", "prob": 0.18404}, {"token": "\u0120\u010a...
1,073
match_season
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "country" ( "Country_id" int, "Country_name" text, "Capital" text, "Official_native_language" text, PRIMARY KEY ("Country_id") ); CREATE TABLE `team` ( `Team_id` int, `Name` text, PRIMARY KEY (`Team_id`) ) ; CREATE ...
SELECT p.Player, m.Season, c.Country_name FROM player p JOIN match_season m ON p.Team = m.Team JOIN country c ON m.Country = c.Country_id;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"token": "$", "prob": 0.0}, {"token": "\"", "prob": 0.0}], "pred_entropy": -0.0}, "step_1": {"top_k": [{"token": "\u0120p", "prob": 0.40833}, {"token": "\u0120player", "prob": 0.22786}, {"token": "\u0120\u...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
-