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
11
1.47k
top_k_progression
stringlengths
1k
98k
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": 0.79274}, {"token": "```", "prob": 0.04009}, {"token": "To", "prob": 0.03947}, {"token": "select", "prob": 0.02888}, {"token": "Answer", "prob": 0.01546}], "pred_entropy": 1.52179}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.53727}, {"token": "\u0120count",...
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 <SQL Query Here>; To find the total number of singers, you can use the `COUNT` function along with the primary key of the `singer` table. The primary key is `Singer_ID`, which uniquely identifies each singer. Therefore, you can count the number of rows in the `singer` table to get the total number of singers. ...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.78563}, {"token": "```", "prob": 0.04868}, {"token": "To", "prob": 0.03243}, {"token": "select", "prob": 0.03192}, {"token": "Answer", "prob": 0.02194}], "pred_entropy": 1.55153}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.55605}, {"token": "\u0120count",...
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": 0.7786}, {"token": "```", "prob": 0.07709}, {"token": "To", "prob": 0.02926}, {"token": "select", "prob": 0.02503}, {"token": "Select", "prob": 0.01319}], "pred_entropy": 1.54051}, "step_1": {"top_k": [{"token": "\u0120Name", "prob": 0.34648}, {"token": "\u0120s", "prob...
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 `Name`,`Country`,`Age` FROM `singer` ORDER BY `Age` DESC;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.78625}, {"token": "```", "prob": 0.10153}, {"token": "select", "prob": 0.02095}, {"token": "To", "prob": 0.01684}, {"token": "Select", "prob": 0.01291}], "pred_entropy": 1.39649}, "step_1": {"top_k": [{"token": "\u0120Name", "prob": 0.22783}, {"token": "\u0120s", "pro...
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 AVG("Age") AS Average_Age, MIN("Age") AS Minimum_Age, MAX("Age") AS Maximum_Age FROM "singer" WHERE "Country" = 'France';
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.75835}, {"token": "```", "prob": 0.09057}, {"token": "select", "prob": 0.02595}, {"token": "--", "prob": 0.02326}, {"token": "Answer", "prob": 0.01574}], "pred_entropy": 1.6389}, "step_1": {"top_k": [{"token": "\u0120\u010a", "prob": 0.23784}, {"token": "\u010a", "pro...
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...
```sql SELECT AVG("Age") AS average_age, MIN("Age") AS minimum_age, MAX("Age") AS maximum_age FROM "singer" WHERE "Country" = 'France'; ```
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.79045}, {"token": "```", "prob": 0.07352}, {"token": "select", "prob": 0.03212}, {"token": "--", "prob": 0.0183}, {"token": "Answer", "prob": 0.01403}], "pred_entropy": 1.47442}, "step_1": {"top_k": [{"token": "sql", "prob": 0.9855}, {"token": "SQL", "prob": 0.0145}, ...
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, s.Song_name, c.Song_release_year FROM singer s ORDER BY s.Age LIMIT 1;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.78716}, {"token": "```", "prob": 0.09401}, {"token": "select", "prob": 0.02867}, {"token": "To", "prob": 0.0257}, {"token": "Select", "prob": 0.01195}], "pred_entropy": 1.37502}, "step_1": {"top_k": [{"token": "\u0120s", "prob": 0.55718}, {"token": "\u0120\u010a", "pr...
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 s.Name, s.Song_release_year FROM singer s INNER JOIN singer_in_concert sc ON s.Singer_ID = sc.Singer_ID INNER JOIN concert c ON sc.concert_ID = c.concert_ID WHERE s.Age = (SELECT MIN(Age) FROM singer); SELECT s.Name, s.Song_release_year FROM singer s INNER JOIN singer_in_concert sc ON s.Singer_ID = sc.Singer_ID ...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.82056}, {"token": "```", "prob": 0.08383}, {"token": "select", "prob": 0.03898}, {"token": "Select", "prob": 0.01049}, {"token": "--", "prob": 0.0094}], "pred_entropy": 1.15632}, "step_1": {"top_k": [{"token": "\u0120s", "prob": 0.46124}, {"token": "\u0120\u010a", "pr...
8
concert_singer
"Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED)
"SELECT DISTINCT Country FROM singer WHERE Age > 20;\nSELECT DISTINCT Country FROM singer WHERE Age (...TRUNCATED)
"{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.8083}, {\"token\": \"```\", \"prob\":(...TRUNCATED)
9
concert_singer
"Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED)
SELECT DISTINCT S.Country FROM singer S WHERE S.Age > 20;
"{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.81915}, {\"token\": \"select\", \"pro(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
22