Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
int64
2.46k
3.4k
db_id
stringclasses
14 values
prompt
stringlengths
652
4.26k
solution
stringlengths
23
1.28k
top_k_progression
stringlengths
1.21k
62.4k
2,462
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT AVG(Rating.stars), Movie.title FROM Rating JOIN Movie ON Rating.mID = Movie.mID WHERE Movie.year = (SELECT MIN(year) FROM Movie)
{"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.83027}, {"token": "\u0120m", "prob": 0.08051}, {"token": "\u0120avg",...
2,463
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT AVG(stars), title FROM Movie WHERE year = (SELECT MIN(year) FROM Movie) GROUP BY title;
{"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.69086}, {"token": "\u0120m", "prob": 0.22429}, {"token": "\u0120avg",...
2,464
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT title FROM Movie ORDER BY year 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": "\u0120title", "prob": 0.69698}, {"token": "\u0120name", "prob": 0.26731}, {"token": "\u0120...
2,465
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT title FROM Movie ORDER BY year 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": "\u0120title", "prob": 1.0}, {"token": "#", "prob": 0.0}, {"token": "!", "prob": 0.0}, {"tok...
2,466
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT MAX(stars), year FROM Movie ORDER BY year DESC LIMIT 1; SELECT MAX(stars), year FROM Movie ORDER BY year 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": "\u0120MAX", "prob": 0.95956}, {"token": "\u0120max", "prob": 0.04044}, {"token": "#", "prob...
2,467
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT MAX(stars), year FROM Movie ORDER BY year 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": "\u0120MAX", "prob": 0.90433}, {"token": "\u0120max", "prob": 0.0683}, {"token": "\u0120\u01...
2,468
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT title FROM Movie WHERE year > (SELECT MAX(year) FROM Movie WHERE director = 'Steven Spielberg');
{"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": "\u0120title", "prob": 0.64679}, {"token": "\u0120name", "prob": 0.29305}, {"token": "\u0120...
2,469
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT title FROM Movie WHERE year > (SELECT year FROM Movie WHERE director = 'Steven Spielberg' ORDER BY year 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": "\u0120title", "prob": 0.68739}, {"token": "\u0120name", "prob": 0.23266}, {"token": "\u0120...
2,470
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT title, director FROM Movie WHERE stars > (SELECT AVG(stars) FROM Rating WHERE mID IN (SELECT mID FROM Movie WHERE director = 'James Cameron'))
{"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": "\u0120title", "prob": 0.975}, {"token": "\u0120m", "prob": 0.01786}, {"token": "\u0120M", "...
2,471
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT M.title, M.director FROM Movie M, Rating R WHERE M.mID = R.mID AND R.stars > (SELECT AVG(R2.stars) FROM Rating R2, Movie M2 WHERE M2.director = 'James Cameron' AND R2.mID = M2.mID); Explanation: The SQL query first calculates the average rating for all movies directed by James Cameron using a subquery. Then, it...
{"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": "\u0120title", "prob": 0.90713}, {"token": "\u0120m", "prob": 0.06851}, {"token": "\u0120M",...
2,472
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT r.name, m.title, r.stars, r.ratingDate FROM Reviewer r JOIN Rating rat ON r.rID = rat.rID JOIN Movie m ON rat.mID = m.mID ORDER BY r.name, m.title, r.stars;
{"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": "\u0120Review", "prob": 0.58999}, {"token": "\u0120r", "prob": 0.34324}, {"token": "\u0120\u...
2,473
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT Reviewer.name AS reviewer_name, Movie.title AS film_title, Rating.stars AS movie_rating, Rating.ratingDate AS rating_date FROM Rating JOIN Reviewer ON Rating.rID = Reviewer.rID JOIN Movie ON Rating.mID = Movie.mID ORDER BY Reviewer.name, Movie.title, Rating.stars;
{"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": "\u0120Review", "prob": 0.66541}, {"token": "\u0120r", "prob": 0.21603}, {"token": "\u0120\u...
2,474
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT name FROM Reviewer WHERE rID IN ( SELECT rID FROM Rating GROUP BY rID HAVING COUNT(*) >= 3 );
{"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.97794}, {"token": "\u0120DISTINCT", "prob": 0.02206}, {"token": "#",...
2,475
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT name FROM Reviewer WHERE rID IN (SELECT rID FROM Rating GROUP BY rID HAVING COUNT(mID) >= 3)
{"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.88271}, {"token": "\u0120DISTINCT", "prob": 0.10112}, {"token": "\u0...
2,476
movie_1
Given the SQL schema: -- dbext:type=SQLITE:dbname=movie_rating.db /* Delete the tables if they already exist */ drop table if exists Movie; drop table if exists Reviewer; drop table if exists Rating; /* Create the schema for our tables */ create table Movie( mID int primary key, title text, year int, director ...
SELECT name FROM Reviewer WHERE rID IN (SELECT rID FROM Rating WHERE mID = (SELECT mID FROM Movie WHERE title = 'Gone with the Wind'));
{"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.94823}, {"token": "\u0120DISTINCT", "prob": 0.02634}, {"token": "\u0...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
-