Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
int64
0
1.03k
db_id
stringclasses
13 values
prompt
stringlengths
485
3.74k
solution
stringlengths
20
1.32k
top_k_progression
stringlengths
1.29k
63.4k
0
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT COUNT(*) FROM singer;
{"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": "\u0120COUNT", "prob": 0.87359}, {"token": "\u0120DISTINCT", "prob": 0.05822}, {"token": "\u...
1
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT COUNT(*) FROM singer;
{"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": "\u0120COUNT", "prob": 0.88895}, {"token": "\u0120count", "prob": 0.05722}, {"token": "\u012...
2
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT s.Name, s.Country, s.Age FROM Singer s ORDER BY s.Age DESC;
{"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": "\u0120Name", "prob": 0.46426}, {"token": "\u0120s", "prob": 0.26637}, {"token": "\u0120S", ...
3
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT s.Name, s.Country, s.Age FROM singer s ORDER BY s.Age DESC;
{"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": "\u0120s", "prob": 0.50704}, {"token": "\u0120Name", "prob": 0.17892}, {"token": "\u0120\u01...
4
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT -- Average age AVG(age) AS avg_age, -- Minimum age MIN(age) AS min_age, -- Maximum age MAX(age) AS max_age FROM singer WHERE country = 'France';
{"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": "\u0120\u010a", "prob": 0.41934}, {"token": "\u0120AVG", "prob": 0.2579}, {"token": "\u010a"...
5
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT SELECT AVG(`Age`), MIN(`Age`), MAX(`Age`) FROM `singer` WHERE `Country` = 'France';
{"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": "\u0120AVG", "prob": 0.41793}, {"token": "\u0120\u010a", "prob": 0.31656}, {"token": "\u010a...
6
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT s.Name AS Song_Name, s.Song_release_year FROM singer s JOIN singer_in_concert sic ON s.Singer_ID = sic.Singer_ID JOIN concert c ON sic.concert_ID = c.concert_ID WHERE s.Age = (SELECT MAX(s2.Age) FROM singer s2); SELECT s.Name AS Song_Name, s.Song_release_year FROM sing...
{"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": "\u0120s", "prob": 0.87661}, {"token": "\u0120\u010a", "prob": 0.04129}, {"token": "\u0120DI...
7
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT DISTINCT s.Name, s.Song_release_year FROM singer s JOIN ( SELECT Singer_ID FROM singer ORDER BY Age LIMIT 1 ) AS youngest_singer ON s.Singer_ID = youngest_singer.Singer_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": "\u0120s", "prob": 0.78851}, {"token": "\u0120DISTINCT", "prob": 0.10165}, {"token": "\u0120...
8
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT DISTINCT Country FROM singer WHERE Age > 20;
{"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": "\u0120DISTINCT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"...
9
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT DISTINCT c.country FROM singer c WHERE c.age > 20;
{"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": "\u0120DISTINCT", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"...
10
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT c.Country, COUNT(s.Singer_ID) FROM singer s JOIN concert_in_singer c ON s.Singer_ID = c.Singer_ID GROUP BY c.Country;
{"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": "\u0120Country", "prob": 0.41907}, {"token": "\u0120\u010a", "prob": 0.14283}, {"token": "\u...
11
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT `Country`, COUNT(`Singer_ID`) AS `Num_Singers` FROM `singer` GROUP BY `Country`; SELECT `Country`, COUNT(`Singer_ID`) AS `Num_Singers` FROM `singer` GROUP BY `Country`;
{"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": "\u0120Country", "prob": 0.22504}, {"token": "\u0120\u010a", "prob": 0.19586}, {"token": "\u...
12
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT s.Song_Name FROM singer s WHERE s.Age > (SELECT AVG(Age) FROM singer);
{"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": "\u0120s", "prob": 0.60765}, {"token": "\u0120DISTINCT", "prob": 0.33674}, {"token": "\u0120...
13
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT s.Song_Name FROM singer s WHERE s.Age > (SELECT AVG(Age) FROM singer);
{"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": "\u0120DISTINCT", "prob": 0.70906}, {"token": "\u0120s", "prob": 0.27767}, {"token": "\u0120...
14
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT DISTINCT S.Location, S.Name FROM Stadium S WHERE S.Capacity BETWEEN 5000 AND 10000;
{"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": "\u0120DISTINCT", "prob": 0.21513}, {"token": "\u0120\u010a", "prob": 0.18723}, {"token": "\...
15
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT DISTINCT "Location", "Name" FROM "stadium" WHERE "Capacity" BETWEEN 5000 AND 10000; SELECT DISTINCT "Location", "Name" FROM "stadium" WHERE "Capacity" BETWEEN 5000 AND 10000;
{"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": "\u0120\"", "prob": 0.33621}, {"token": "\u0120Location", "prob": 0.24598}, {"token": "\u012...
16
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT MAX(Capacity), AVG(Capacity) FROM stadium;
{"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": "\u0120MAX", "prob": 0.60439}, {"token": "\u0120\u010a", "prob": 0.14556}, {"token": "\u0120...
17
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT AVG(Capacity), MAX(Capacity) FROM stadium;
{"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": "\u0120AVG", "prob": 0.89819}, {"token": "\u0120avg", "prob": 0.04086}, {"token": "\u0120\u0...
18
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT Name, Capacity FROM stadium ORDER BY Average DESC LIMIT 1;
{"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": "\u0120Name", "prob": 0.7435}, {"token": "\u0120s", "prob": 0.10637}, {"token": "\u0120\"", ...
19
concert_singer
Given the SQL schema: PRAGMA foreign_keys = ON; CREATE TABLE "stadium" ( "Stadium_ID" int, "Location" text, "Name" text, "Capacity" int, "Highest" int, "Lowest" int, "Average" int, PRIMARY KEY ("Stadium_ID") ); CREATE TABLE "singer" ( "Singer_ID" int, "Name" text, "Country" text, "Song_Name" text, "Song_release_ye...
SELECT Name, Capacity FROM stadium WHERE Average = (SELECT MAX(Average) FROM stadium);
{"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": "\u0120Name", "prob": 0.71512}, {"token": "\u0120s", "prob": 0.12601}, {"token": "\u0120\"",...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
25