question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
---|---|---|---|
Name the score for 10 april 2007 and opponent of selima sfar | CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "singles_titles" WHERE "date"='10 april 2007' AND "opponent"='selima sfar'; | 2-13140232-8 |
How many runners had placings over 8? | CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"prize_k" real,
"runners" real,
"placing" real,
"margin" text,
"jockey" text,
"trainer" text
); | SELECT COUNT("runners") FROM "race_record" WHERE "placing">8; | 2-12934739-1 |
Which course had a jockey of Royston FFrench? | CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"prize_k" real,
"runners" real,
"placing" real,
"margin" text,
"jockey" text,
"trainer" text
); | SELECT "course" FROM "race_record" WHERE "jockey"='royston ffrench'; | 2-12934739-1 |
What is the average prize for the Buttercross Limited Stakes? | CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"prize_k" real,
"runners" real,
"placing" real,
"margin" text,
"jockey" text,
"trainer" text
); | SELECT AVG("prize_k") FROM "race_record" WHERE "race"='buttercross limited stakes'; | 2-12934739-1 |
How many total runners had jockeys of Olivier Peslier with placings under 2? | CREATE TABLE "race_record" (
"race" text,
"dist_f" real,
"course" text,
"prize_k" real,
"runners" real,
"placing" real,
"margin" text,
"jockey" text,
"trainer" text
); | SELECT SUM("runners") FROM "race_record" WHERE "jockey"='olivier peslier' AND "placing"<2; | 2-12934739-1 |
Name the games with marks of 21 | CREATE TABLE "rookie_list" (
"player" text,
"afl_debut" text,
"games" text,
"goals" text,
"kicks" text,
"handballs" text,
"disposals" text,
"marks" text,
"tackles" text
); | SELECT "games" FROM "rookie_list" WHERE "marks"='21'; | 2-12886301-2 |
Name the kicks with goals of 1 | CREATE TABLE "rookie_list" (
"player" text,
"afl_debut" text,
"games" text,
"goals" text,
"kicks" text,
"handballs" text,
"disposals" text,
"marks" text,
"tackles" text
); | SELECT "kicks" FROM "rookie_list" WHERE "goals"='1'; | 2-12886301-2 |
Name the goals with games of 6 | CREATE TABLE "rookie_list" (
"player" text,
"afl_debut" text,
"games" text,
"goals" text,
"kicks" text,
"handballs" text,
"disposals" text,
"marks" text,
"tackles" text
); | SELECT "goals" FROM "rookie_list" WHERE "games"='6'; | 2-12886301-2 |
What game had the date was it with the final score of 7-23 | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "date" FROM "1990" WHERE "final_score"='7-23'; | 2-13193466-5 |
What was the final score of the game at the astrodome? | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "final_score" FROM "1990" WHERE "stadium"='astrodome'; | 2-13193466-5 |
What was the final score for the date of December 30? | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "final_score" FROM "1990" WHERE "date"='december 30'; | 2-13193466-5 |
What was the name of the Visiting team at Jack Murphy Stadium? | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "visiting_team" FROM "1990" WHERE "stadium"='jack murphy stadium'; | 2-13193466-5 |
What was the name of the host team at Texas stadium? | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "host_team" FROM "1990" WHERE "stadium"='texas stadium'; | 2-13193466-5 |
What was the name of the host team dated December 16? | CREATE TABLE "1990" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "host_team" FROM "1990" WHERE "date"='december 16'; | 2-13193466-5 |
Are there any Teams after 1997? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text
); | SELECT "team" FROM "complete_24_hours_of_le_mans_results" WHERE "year">1997; | 2-1235920-4 |
Which class has laps under 77? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text
); | SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"<77; | 2-1235920-4 |
Who boarded first class? | CREATE TABLE "guarantee_group" (
"name" text,
"class" text,
"hometown" text,
"boarded" text,
"position" text
); | SELECT "boarded" FROM "guarantee_group" WHERE "class"='first'; | 2-12542631-7 |
What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury? | CREATE TABLE "2007_08_lincoln_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"away_fans" real
); | SELECT MIN("attendance") FROM "2007_08_lincoln_city_f_c_season" WHERE "away_fans"<151 AND "opponent"='bury'; | 2-12607988-15 |
What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177? | CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "year"=1978 AND "chassis"='ensign n177'; | 2-1226456-2 |
What are the highest number of points with an Entrant of warsteiner brewery? | CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MAX("points") FROM "complete_world_championship_formula_one_" WHERE "entrant"='warsteiner brewery'; | 2-1226456-2 |
What is the D 43 when D 46 is R 6? | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
); | SELECT "d_43" FROM "before_the_elections" WHERE "d_46"='r 6'; | 2-1318870-1 |
What is the D44 when D43 is R 14? | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
); | SELECT "d_44" FROM "before_the_elections" WHERE "d_43"='r 14'; | 2-1318870-1 |
What is the D48 when D 43 is plurality ↑?? | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
); | SELECT "d_48" FROM "before_the_elections" WHERE "d_43"='plurality ↑'; | 2-1318870-1 |
What is the D44 when D41 is D 16? | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
); | SELECT "d_44" FROM "before_the_elections" WHERE "d_41"='d 16'; | 2-1318870-1 |
What gender is the team that has a decile of 5 and in the Dalefield area? | CREATE TABLE "carterton_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "gender" FROM "carterton_district" WHERE "decile"=5 AND "area"='dalefield'; | 2-12214488-7 |
What school in Dalefield has a roll less than 81? | CREATE TABLE "carterton_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "name" FROM "carterton_district" WHERE "roll"<81 AND "area"='dalefield'; | 2-12214488-7 |
What is the lowest Height (m) on the island of Burray? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT MIN("height_m") FROM "main_list" WHERE "island"='burray'; | 2-12283002-1 |
What group on the island of Faray has a Height (m) of 32 and a Population of 0? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT "group" FROM "main_list" WHERE "height_m"=32 AND "population"='0' AND "island"='faray'; | 2-12283002-1 |
What group has a Population of see hoy? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT "group" FROM "main_list" WHERE "population"='see hoy'; | 2-12283002-1 |
What group on the island of Muckle Green Holm has a population of 0? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT "group" FROM "main_list" WHERE "population"='0' AND "island"='muckle green holm'; | 2-12283002-1 |
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT "area_ha" FROM "main_list" WHERE "height_m">7 AND "island"='linga holm'; | 2-12283002-1 |
What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17? | CREATE TABLE "main_list" (
"island" text,
"group" text,
"area_ha" text,
"population" text,
"height_m" real
); | SELECT "population" FROM "main_list" WHERE "height_m"=15 AND "area_ha"='00017 17'; | 2-12283002-1 |
What is the roll number of the school in Aramoho with a decile of 1? | CREATE TABLE "wanganui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "roll" FROM "wanganui_district" WHERE "area"='aramoho' AND "decile"=1; | 2-12197750-2 |
What is the area of Mangamahu primary school? | CREATE TABLE "wanganui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "area" FROM "wanganui_district" WHERE "name"='mangamahu primary school'; | 2-12197750-2 |
What is the area of the coed school with a state authority and a roll number of 122? | CREATE TABLE "wanganui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "area" FROM "wanganui_district" WHERE "authority"='state' AND "gender"='coed' AND "roll"=122; | 2-12197750-2 |
Which result is older than 2007? | CREATE TABLE "nominations_awards" (
"year" real,
"artist" text,
"album_song" text,
"award" text,
"result_category" text
); | SELECT "result_category" FROM "nominations_awards" WHERE "year"<2007; | 2-1239315-2 |
What year was the Album/Song Speaking louder than before? | CREATE TABLE "nominations_awards" (
"year" real,
"artist" text,
"album_song" text,
"award" text,
"result_category" text
); | SELECT SUM("year") FROM "nominations_awards" WHERE "album_song"='speaking louder than before'; | 2-1239315-2 |
What is the most recent year with the Album/Song "the best worst-case scenario"? | CREATE TABLE "nominations_awards" (
"year" real,
"artist" text,
"album_song" text,
"award" text,
"result_category" text
); | SELECT MAX("year") FROM "nominations_awards" WHERE "album_song"='the best worst-case scenario'; | 2-1239315-2 |
What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface? | CREATE TABLE "doubles_24_21" (
"outcome" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "doubles_24_21" WHERE "surface"='clay' AND "partner"='remi tezuka'; | 2-12641767-3 |
What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament? | CREATE TABLE "doubles_24_21" (
"outcome" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "doubles_24_21" WHERE "partner"='ksenia lykina' AND "tournament"='kurume'; | 2-12641767-3 |
What was the score of the final in which Melanie South played with partner Katie O'Brien? | CREATE TABLE "doubles_24_21" (
"outcome" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "doubles_24_21" WHERE "partner"='katie o''brien'; | 2-12641767-3 |
What was the outcome of the tournament in Edinburgh? | CREATE TABLE "doubles_24_21" (
"outcome" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "outcome" FROM "doubles_24_21" WHERE "tournament"='edinburgh'; | 2-12641767-3 |
What is the total decile with an Authority of state, and a Name of newfield park school? | CREATE TABLE "invercargill_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT SUM("decile") FROM "invercargill_city" WHERE "authority"='state' AND "name"='newfield park school'; | 2-12375672-3 |
What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown? | CREATE TABLE "invercargill_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT MAX("decile") FROM "invercargill_city" WHERE "roll">34 AND "gender"='coed' AND "authority"='state integrated' AND "area"='georgetown'; | 2-12375672-3 |
What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2? | CREATE TABLE "invercargill_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT MIN("roll") FROM "invercargill_city" WHERE "authority"='state' AND "name"='newfield park school' AND "decile"<2; | 2-12375672-3 |
Which name has an Area of makarewa? | CREATE TABLE "invercargill_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "name" FROM "invercargill_city" WHERE "area"='makarewa'; | 2-12375672-3 |
Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131? | CREATE TABLE "invercargill_city" (
"name" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "name" FROM "invercargill_city" WHERE "gender"='coed' AND "decile">5 AND "roll"=131; | 2-12375672-3 |
Add up all the Ends columns that have goals smaller than 0. | CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" text,
"goals" real,
"ends" real,
"transfer_fee" text
); | SELECT SUM("ends") FROM "squad_information" WHERE "goals"<0; | 2-12217273-1 |
What was the competition in 2003? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "competition" FROM "achievements" WHERE "year"=2003; | 2-12582968-1 |
What was the competition in 2003? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "competition" FROM "achievements" WHERE "year"=2003; | 2-12582968-1 |
Which position has 50+12 points and fewer than 10 draws? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MAX("position") FROM "final_table" WHERE "points"='50+12' AND "draws"<10; | 2-12253054-2 |
How many positions have goals of fewer than 40 and more than 38 played? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("position") FROM "final_table" WHERE "goals_for"<40 AND "played">38; | 2-12253054-2 |
How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("losses") FROM "final_table" WHERE "goal_difference"<-2 AND "club"='cd sabadell' AND "played">38; | 2-12253054-2 |
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT AVG("played") FROM "final_table" WHERE "goals_for"<43 AND "draws">9 AND "position">17 AND "points"='30-8'; | 2-12253054-2 |
What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126? | CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT COUNT("loss") FROM "rushing" WHERE "avg_g"<-3.3 AND "gain">126; | 2-12796193-30 |
What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had? | CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT COUNT("loss") FROM "rushing" WHERE "gain">27 AND "avg_g"<55.9 AND "name"='jackson, t.' AND "long"<34; | 2-12796193-30 |
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had? | CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT COUNT("long") FROM "rushing" WHERE "loss"=0 AND "gain"<17 AND "avg_g">0 AND "name"='dubose, e.'; | 2-12796193-30 |
What date was the record 20–16? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='20–16'; | 2-12453290-4 |
What was the attendance in the gave versus the Brewers with a score of 9–6? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "opponent"='brewers' AND "score"='9–6'; | 2-12453290-4 |
What was the attendance on May 26? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "date"='may 26'; | 2-12453290-4 |
Matches of 127 has how many total number of inns? | CREATE TABLE "first_class_records" (
"name" text,
"seasons" text,
"matches" real,
"inns" real,
"runs" real
); | SELECT COUNT("inns") FROM "first_class_records" WHERE "matches"=127; | 2-1327390-2 |
Name of clem hill, and Inns larger than 126 has the lowest runs? | CREATE TABLE "first_class_records" (
"name" text,
"seasons" text,
"matches" real,
"inns" real,
"runs" real
); | SELECT MIN("runs") FROM "first_class_records" WHERE "name"='clem hill' AND "inns">126; | 2-1327390-2 |
Runs smaller than 6106, and Inns smaller than 146 has what total number of matches? | CREATE TABLE "first_class_records" (
"name" text,
"seasons" text,
"matches" real,
"inns" real,
"runs" real
); | SELECT COUNT("matches") FROM "first_class_records" WHERE "runs"<6106 AND "inns"<146; | 2-1327390-2 |
Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns? | CREATE TABLE "first_class_records" (
"name" text,
"seasons" text,
"matches" real,
"inns" real,
"runs" real
); | SELECT MAX("inns") FROM "first_class_records" WHERE "seasons"='1987–2007' AND "runs">11622; | 2-1327390-2 |
Name the partner for opponents of františek čermák michal mertiňák | CREATE TABLE "doubles_29_16_titles_13_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "partner" FROM "doubles_29_16_titles_13_runners_up" WHERE "opponents_in_the_final"='františek čermák michal mertiňák'; | 2-12259758-6 |
Name the score in the final for january 12, 2013 | CREATE TABLE "doubles_29_16_titles_13_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "score_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "date"='january 12, 2013'; | 2-12259758-6 |
Name the opponents for outcome of runner-up and date of august 7, 2011 | CREATE TABLE "doubles_29_16_titles_13_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "opponents_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "outcome"='runner-up' AND "date"='august 7, 2011'; | 2-12259758-6 |
Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner | CREATE TABLE "doubles_29_16_titles_13_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "partner" FROM "doubles_29_16_titles_13_runners_up" WHERE "surface"='grass' AND "opponents_in_the_final"='jürgen melzer philipp petzschner'; | 2-12259758-6 |
Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić | CREATE TABLE "doubles_29_16_titles_13_runners_up" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "score_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "outcome"='runner-up' AND "surface"='hard' AND "opponents_in_the_final"='michaël llodra nenad zimonjić'; | 2-12259758-6 |
What date was the ship 'Wyandotte' launched? | CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" text,
"launched" text,
"commissioned_or_completed" text
); | SELECT "launched" FROM "ships" WHERE "ship"='wyandotte'; | 2-12592074-1 |
What was the original name of the ship 'Ajax'? | CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" text,
"launched" text,
"commissioned_or_completed" text
); | SELECT "renamed" FROM "ships" WHERE "ship"='ajax'; | 2-12592074-1 |
What date was the ship named Manhattan completed? | CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" text,
"launched" text,
"commissioned_or_completed" text
); | SELECT "commissioned_or_completed" FROM "ships" WHERE "ship"='manhattan'; | 2-12592074-1 |
What position had fewer than 373 laps and a class position of 1st? | CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "laps"<373 AND "class_pos"='1st'; | 2-1235669-3 |
What class had fewer than 336 laps in 2004? | CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps"<336 AND "year"=2004; | 2-1235669-3 |
What is the average attendance of game 1? | CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
); | SELECT AVG("attendance") FROM "summary" WHERE "game"<1; | 2-1332143-1 |
What is the attendance amount of the race with a time of 2:07? | CREATE TABLE "summary" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
); | SELECT MAX("attendance") FROM "summary" WHERE "time"='2:07'; | 2-1332143-1 |
What club has less than 61 goals for and 55 goals against? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT "club" FROM "final_table" WHERE "goals_for"<61 AND "goals_against"=55; | 2-12138116-2 |
What is the amount of Draws for the game that had a score of 45+7 and a position below 3? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("draws") FROM "final_table" WHERE "points"='45+7' AND "position"<3; | 2-12138116-2 |
What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("draws") FROM "final_table" WHERE "goal_difference">-16 AND "club"='elche cf' AND "played">38; | 2-12138116-2 |
Who was the recipient for Outstanding actress television series prior to 2008? | CREATE TABLE "alma_awards" (
"year" real,
"recipient" text,
"role" text,
"category" text,
"result" text
); | SELECT "recipient" FROM "alma_awards" WHERE "year"<2008; | 2-12372406-1 |
Who was the opponent at the game when the record was 71-78? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='71-78'; | 2-12206243-10 |
What was the date of the game that had a loss of Risley (0-1)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "game_log" WHERE "loss"='risley (0-1)'; | 2-12206243-10 |
What was the date of the game when the record was 70-74? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='70-74'; | 2-12206243-10 |
What player was moving from manchester united? | CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
); | SELECT "name" FROM "in" WHERE "moving_from"='manchester united'; | 2-12666456-6 |
What player costs £210k to transfer? | CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
); | SELECT "name" FROM "in" WHERE "transfer_fee"='£210k'; | 2-12666456-6 |
Who is moving during winter from wal? | CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"ends" real,
"transfer_fee" text
); | SELECT "moving_from" FROM "in" WHERE "transfer_window"='winter' AND "country"='wal'; | 2-12666456-6 |
Which original artist has a Episode of workshop #1? | CREATE TABLE "performances_results" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
); | SELECT "original_artist" FROM "performances_results" WHERE "episode"='workshop #1'; | 2-12175755-1 |
Which theme has a Episode of top 6? | CREATE TABLE "performances_results" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
); | SELECT "theme" FROM "performances_results" WHERE "episode"='top 6'; | 2-12175755-1 |
Which Theme has a Order # of 9? | CREATE TABLE "performances_results" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
); | SELECT "theme" FROM "performances_results" WHERE "order_num"='9'; | 2-12175755-1 |
What was the score on August 19? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"time" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "date"='august 19'; | 2-13113490-6 |
Where the time is 2:46, what is the record? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"time" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "time"='2:46'; | 2-13113490-6 |
What is the Date, when the home team is the NY Rangers? | CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "october" WHERE "home"='ny rangers'; | 2-13135264-3 |
Power of 220kw (299hp) @ 4000 has what torque? | CREATE TABLE "variants" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"redline" real,
"year" real
); | SELECT "torque" FROM "variants" WHERE "power"='220kw (299hp) @ 4000'; | 2-1285530-1 |
What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002? | CREATE TABLE "variants" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"redline" real,
"year" real
); | SELECT "displacement" FROM "variants" WHERE "year">2002 AND "power"='220kw (299hp) @ 4000'; | 2-1285530-1 |
Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine? | CREATE TABLE "variants" (
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"redline" real,
"year" real
); | SELECT "engine" FROM "variants" WHERE "displacement"='4.4l (4423cc/269in³)' AND "power"='220kw (299hp) @ 4000'; | 2-1285530-1 |
What week was the Original artist, the police ? | CREATE TABLE "performances_results" (
"week" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"result" text
); | SELECT "week" FROM "performances_results" WHERE "original_artist"='the police'; | 2-12543751-1 |
Which song garnered an advanced result during top 20 week ? | CREATE TABLE "performances_results" (
"week" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"result" text
); | SELECT "song_choice" FROM "performances_results" WHERE "result"='advanced' AND "week"='top 20'; | 2-12543751-1 |
Which Malaysia Satellite tournaments were played after 1998? | CREATE TABLE "finals_14_9_titles_5_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "finals_14_9_titles_5_runners_up" WHERE "year">1998 AND "tournament"='malaysia satellite'; | 2-12155735-1 |
Who was the runner-up for the Bulgaria Open, before 2007? | CREATE TABLE "finals_14_9_titles_5_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "finals_14_9_titles_5_runners_up" WHERE "year"<2007 AND "outcome"='runner-up' AND "tournament"='bulgaria open'; | 2-12155735-1 |
What was the score of the player who played against Wong Choong Hann in the Dutch Open? | CREATE TABLE "finals_14_9_titles_5_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "finals_14_9_titles_5_runners_up" WHERE "tournament"='dutch open' AND "opponent"='wong choong hann'; | 2-12155735-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.