task_id int64 0 1.03k | db_id stringclasses 13
values | prompt stringlengths 485 3.74k | solution stringlengths 11 5.08k | top_k_progression stringlengths 942 192k |
|---|---|---|---|---|
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;
Complete the the following question. | {"step_0": {"top_k": [{"token": "SELECT", "prob": 0.45215}, {"token": "```", "prob": 0.09717}, {"token": "To", "prob": 0.07857}, {"token": "select", "prob": 0.03275}, {"token": "Answer", "prob": 0.03235}], "pred_entropy": 3.50659}, "step_1": {"top_k": [{"token": "\u0120COUNT", "prob": 0.25495}, {"token": "\u0120\u010a"... |
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... | To determine the total number of singers in your table named "singer", you can use a SELECT statement combined with an SQL aggregation function COUNT(). The query should be:
```SQL
SELECT COUNT(*)
FROM singer;
```
This SQL command retrieves each record contained within the table, and because a COUNT function is used,... | {"step_0": {"top_k": [{"token": "SELECT", "prob": 0.44336}, {"token": "```", "prob": 0.10531}, {"token": "To", "prob": 0.07148}, {"token": "Answer", "prob": 0.04913}, {"token": "select", "prob": 0.02834}], "pred_entropy": 3.55164}, "step_1": {"top_k": [{"token": "\u0120find", "prob": 0.57145}, {"token": "\u0120determin... |
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... | ``` sql
select name , country, age
from singer
where 2 = (select count(1) from singer t where t.age > singer.age );
```
To achieve your goal of retrieving the name, country, and age of all singers arranged by their ages starting from oldest singers to youngest ones we can use ordering and no conditional filtering.... | {"step_0": {"top_k": [{"token": "SELECT", "prob": 0.46039}, {"token": "```", "prob": 0.10402}, {"token": "To", "prob": 0.04674}, {"token": "select", "prob": 0.04282}, {"token": "``", "prob": 0.03133}], "pred_entropy": 3.5006}, "step_1": {"top_k": [{"token": "sql", "prob": 0.79454}, {"token": "SQL", "prob": 0.0973}, {"t... |
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... | BEGIN Select "Singer.Name", "Singer.Country, "Singer.Age" FROM "Singer" ORDER
BY Age DESc
END;
Answer:
BEGIN
SELECT
`Name`,
`Country`,
`Age`
FROM
( `singer`)
ORDER BY (`Age`)
; | {"step_0": {"top_k": [{"token": "SELECT", "prob": 0.45947}, {"token": "```", "prob": 0.14189}, {"token": "To", "prob": 0.03965}, {"token": "``", "prob": 0.03916}, {"token": "select", "prob": 0.03287}], "pred_entropy": 3.37411}, "step_1": {"top_k": [{"token": "\u010a", "prob": 0.34699}, {"token": ";\u010a", "prob": 0.10... |
4 | concert_singer | "Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED) | "SELECT\n CASE WHEN \n <condition_is_here_1>\n \n THEN \n SELECT <column_name_returned(...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.4386}, {\"token\": \"```\", \"prob\":(...TRUNCATED) |
5 | concert_singer | "Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED) | "SELECT \"French_age_average\", \"French_age_maximum\", \"French_age_minimum\" FROM (SELECT avg(\"S(...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.46828}, {\"token\": \"```\", \"prob\"(...TRUNCATED) |
6 | concert_singer | "Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED) | "```sql\nSELECT s.Name, s.'Song_release_year'\nFROM singe\ninner join\n( select s.*\n from (\n (...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.41765}, {\"token\": \"```\", \"prob\"(...TRUNCATED) |
7 | concert_singer | "Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED) | "SELECT DISTINCT s.Name, s.\n FROM singer s\nLEFT JOIN \"concert\" c\nON c.Stadium_ID IS ?\nWHERE s.(...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.49137}, {\"token\": \"```\", \"prob\"(...TRUNCATED) |
8 | concert_singer | "Given the SQL schema:\nPRAGMA foreign_keys = ON;\n\n\nCREATE TABLE \"stadium\" (\n\"Stadium_ID\" in(...TRUNCATED) | "[SELECT DISTINCT S.country\r\nFROM concerts AS S]\r\nYou do not need the WHERE clause with \"age > (...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.41055}, {\"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 c.Country \nFROM singer s \nLeft Outer Join singer_in_concert xcon\n on xcon.S(...TRUNCATED) | "{\"step_0\": {\"top_k\": [{\"token\": \"SELECT\", \"prob\": 0.48448}, {\"token\": \"```\", \"prob\"(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 15