Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
int64
0
1.05k
db_id
stringclasses
14 values
prompt
stringlengths
451
3.66k
solution
stringlengths
20
1.58k
top_k_progression
stringlengths
1.47k
74.6k
0
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
SELECT COUNT(*) FROM head WHERE age > 56;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.76317}, {"token": "```", "prob": 0.06072}, {"token": "To", "prob": 0.02913}, {"token": "<", "prob": 0.02341}, {"token": "{", "prob": 0.0166}], "pred_entropy": 1.7385}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.54534}, {"token": "\u0120count", "prob": 0.1...
1
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
SELECT head.name, head.born_state, head.age FROM head ORDER BY head.age;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.79227}, {"token": "```", "prob": 0.06503}, {"token": "To", "prob": 0.02628}, {"token": "BEGIN", "prob": 0.01834}, {"token": "Answer", "prob": 0.01474}], "pred_entropy": 1.5211}, "step_1": {"top_k": [{"token": "\u0120name", "prob": 0.44821}, {"token": "\u0120head", "pr...
2
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
Select creation,budget,name from department; To list the creation year, name, and budget of each department, you need to adjust the SQL query to include the correct column names and ensure they match the schema provided. The correct column names are `Creation` for the creation year and `Budget_in_Billions` for the budg...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.80497}, {"token": "```", "prob": 0.06404}, {"token": "To", "prob": 0.02469}, {"token": "Answer", "prob": 0.01474}, {"token": "BEGIN", "prob": 0.01407}], "pred_entropy": 1.44074}, "step_1": {"top_k": [{"token": "\u0120Creation", "prob": 0.2552}, {"token": "\u0120creati...
3
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
SELECT min(`Budget_in_Billions`) min_budget, max(`Budget_in_Billions`) max_budget FROM `department`;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.73685}, {"token": "```", "prob": 0.07296}, {"token": "To", "prob": 0.04495}, {"token": "BEGIN", "prob": 0.02769}, {"token": "Answer", "prob": 0.02026}], "pred_entropy": 1.82806}, "step_1": {"top_k": [{"token": "\u0120MAX", "prob": 0.2297}, {"token": "\u0120MIN", "prob...
4
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
SELECT avg(Num_Employees) FROM department WHERE Ranking BETWEEN 10 and 15;
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.77178}, {"token": "```", "prob": 0.05504}, {"token": "Answer", "prob": 0.02641}, {"token": "<", "prob": 0.02294}, {"token": "To", "prob": 0.02189}], "pred_entropy": 1.6844}, "step_1": {"top_k": [{"token": "\u0120AVG", "prob": 0.67932}, {"token": "\u0120avg", "prob": 0...
5
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
Select * from head where born_state NOT IN ('California');
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.82089}, {"token": "```", "prob": 0.07062}, {"token": "Answer", "prob": 0.01306}, {"token": "To", "prob": 0.01266}, {"token": "BEGIN", "prob": 0.01135}], "pred_entropy": 1.31656}, "step_1": {"top_k": [{"token": "\u0120name", "prob": 0.43146}, {"token": "\u0120head", "p...
6
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
[ ] SELECT DISTINCT department_Creation FROM department WHERE Department_ID IN (SELECT Department_ID FROM department CROSS JOIN head CROSS JOIN management WHERE head.born_state = 'Alabama') The provided SQL schema defines three tables: `department`, `head`, and `management`. Each table contains certain ...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.78831}, {"token": "```", "prob": 0.08845}, {"token": "To", "prob": 0.01883}, {"token": "[", "prob": 0.01715}, {"token": "{", "prob": 0.01294}], "pred_entropy": 1.44086}, "step_1": {"top_k": [{"token": "sql", "prob": 0.51557}, {"token": "SELECT", "prob": 0.24354}, {"to...
7
department_management
Given the SQL schema: PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "department" ( "Department_ID" int, "Name" text, "Creation" text, "Ranking" int, "Budget_in_Billions" real, "Num_Employees" real, PRIMARY KEY ("Department_ID") ); CREATE TABLE IF NOT EXISTS "head" ( "head_ID" int, "name" text, "...
SELECT DISTINCT born_state FROM head WHERE born_state IN ( SELECT born_state FROM head GROUP BY born_state HAVING COUNT(*) > 1 ); This SQL query selects the distinct `born_state` values from the `head` table where the number of heads born in each state is greater than 1. The subquery groups the he...
{"step_0": {"top_k": [{"token": "SELECT", "prob": 0.82527}, {"token": "```", "prob": 0.0744}, {"token": "To", "prob": 0.01055}, {"token": "[", "prob": 0.00946}, {"token": "``", "prob": 0.00889}], "pred_entropy": 1.26926}, "step_1": {"top_k": [{"token": "\u0120born", "prob": 0.40527}, {"token": "\u0120DISTINCT", "prob":...
8
department_management
"Given the SQL schema:\nPRAGMA foreign_keys=ON;\nBEGIN TRANSACTION;\nCREATE TABLE IF NOT EXISTS \"de(...TRUNCATED)
"SELECT department.Creation, count(department.Department_ID) as Num_departments\nFROM department\nGR(...TRUNCATED)
"{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.73313}, {\"token\": \"```\", \"prob\"(...TRUNCATED)
9
department_management
"Given the SQL schema:\nPRAGMA foreign_keys=ON;\nBEGIN TRANSACTION;\nCREATE TABLE IF NOT EXISTS \"de(...TRUNCATED)
"BEGIN;\nSELECT head.name, department.Num_Employees\nFROM department\nJOIN management ON department.(...TRUNCATED)
"{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.78352}, {\"token\": \"```\", \"prob\"(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4