question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
---|---|---|---|
What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "gold"=0 AND "bronze">2 AND "silver">1; | 2-13063126-1 |
What is the total number of silver medals for countries of rank 14, with less than 1 total medals? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_table" WHERE "rank"='14' AND "total"<1; | 2-13063126-1 |
How many tackles for the player with over 0 fumble recovries and 0 forced fumbles? | CREATE TABLE "tackles" (
"player" text,
"solo" real,
"total" real,
"sacks" text,
"fumble_force" real,
"fumble_rec" real
); | SELECT COUNT("total") FROM "tackles" WHERE "fumble_rec">0 AND "fumble_force"=0; | 2-12865696-19 |
How many forced fumbles for jim laney with under 2 solo tackles? | CREATE TABLE "tackles" (
"player" text,
"solo" real,
"total" real,
"sacks" text,
"fumble_force" real,
"fumble_rec" real
); | SELECT COUNT("fumble_force") FROM "tackles" WHERE "solo"<2 AND "player"='jim laney'; | 2-12865696-19 |
What is the high total for players with over 15 solo tackles? | CREATE TABLE "tackles" (
"player" text,
"solo" real,
"total" real,
"sacks" text,
"fumble_force" real,
"fumble_rec" real
); | SELECT MAX("total") FROM "tackles" WHERE "solo">15; | 2-12865696-19 |
How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, and under 2 solo tackles? | CREATE TABLE "tackles" (
"player" text,
"solo" real,
"total" real,
"sacks" text,
"fumble_force" real,
"fumble_rec" real
); | SELECT SUM("fumble_rec") FROM "tackles" WHERE "sacks"='0' AND "fumble_force"=0 AND "player"='scott gajos' AND "solo"<2; | 2-12865696-19 |
Who is the Opponent playing at 20:00 GMT at Camp Nou? | CREATE TABLE "friendly" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
); | SELECT "opponent" FROM "friendly" WHERE "time"='20:00 gmt' AND "ground"='camp nou'; | 2-12200756-16 |
What time was the match played with a score of 3-2? | CREATE TABLE "friendly" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
); | SELECT "time" FROM "friendly" WHERE "score"='3-2'; | 2-12200756-16 |
On which ground did the team play Aston Villa? | CREATE TABLE "friendly" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
); | SELECT "ground" FROM "friendly" WHERE "opponent"='aston villa'; | 2-12200756-16 |
What kind of competition was it at San Siro at 18:30 GMT? | CREATE TABLE "friendly" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
); | SELECT "competition" FROM "friendly" WHERE "ground"='san siro' AND "time"='18:30 gmt'; | 2-12200756-16 |
What is the total number of decile for the redwood school locality? | CREATE TABLE "wellington_city" (
"name" text,
"years" text,
"gender" text,
"locality" text,
"authority" text,
"decile" real
); | SELECT COUNT("decile") FROM "wellington_city" WHERE "name"='redwood school'; | 2-12214488-1 |
Which report includes a Circuit of Tripoli? | CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "report" FROM "other_grands_prix" WHERE "circuit"='tripoli'; | 2-12650456-2 |