question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_table" WHERE "silver">0 AND "gold"<5 AND "bronze"<0; | 2-10838914-1 |
What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10? | CREATE TABLE "6401_6500" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT SUM("ngc_number") FROM "6401_6500" WHERE "declination_j2000"='°15′55″' AND "apparent_magnitude">10; | 2-11051842-5 |
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s? | CREATE TABLE "6401_6500" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "object_type" FROM "6401_6500" WHERE "apparent_magnitude">9.6 AND "right_ascension_j2000"='17h59m02.0s'; | 2-11051842-5 |
Which species of bacteria has 5,566 genes? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" text,
"genes" text
); | SELECT "strain" FROM "list_of_sequenced_bacterial_genomes" WHERE "genes"='5,566'; | 2-11664498-14 |
What is the Strain name of Species Thiomicrospira crunogena? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" text,
"genes" text
); | SELECT "strain" FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='thiomicrospira crunogena'; | 2-11664498-14 |
Name the location of record 5-3 | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='5-3'; | 2-11690636-2 |
What's the rank for a team that has a percentage of 56% and a loss smaller than 4? | CREATE TABLE "current_standings" (
"rank" real,
"team" text,
"loss" real,
"sets_won" real,
"sets_lost" real,
"percentage" text
); | SELECT AVG("rank") FROM "current_standings" WHERE "percentage"='56%' AND "loss"<4; | 2-10790799-4 |
Name the average avg for TD's less than 3 for devin wyman and long more than 3 | CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
); | SELECT AVG("avg") FROM "wide_receivers" WHERE "td_s"<3 AND "player"='devin wyman' AND "long">3; | 2-11783707-5 |
Name the lowest yards for 34 long and avg less than 12.6 | CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
); | SELECT MIN("yards") FROM "wide_receivers" WHERE "long"=34 AND "avg"<12.6; | 2-11783707-5 |
What team is sponsored by chameleon sunglasses? | CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
"team" text,
"make" text,
"driver" text,
"sponsor" text,
"car_owner" text
); | SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='chameleon sunglasses'; | 2-11381809-1 |
What team does bobby hillin jr. (r) drive a buick regal for? | CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
"team" text,
"make" text,
"driver" text,
"sponsor" text,
"car_owner" text
); | SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "make"='buick regal' AND "driver"='bobby hillin jr. (r)'; | 2-11381809-1 |
What team is sponsored by w.h. bolin? | CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
"team" text,
"make" text,
"driver" text,
"sponsor" text,
"car_owner" text
); | SELECT "team" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='w.h. bolin'; | 2-11381809-1 |
Who drives for the sponsor w.h. bolin? | CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
"team" text,
"make" text,
"driver" text,
"sponsor" text,
"car_owner" text
); | SELECT "driver" FROM "1983_nascar_winston_cup_series_drivers" WHERE "sponsor"='w.h. bolin'; | 2-11381809-1 |
Who sponsors driver neil bonnett? | CREATE TABLE "1983_nascar_winston_cup_series_drivers" (
"team" text,
"make" text,
"driver" text,
"sponsor" text,
"car_owner" text
); | SELECT "sponsor" FROM "1983_nascar_winston_cup_series_drivers" WHERE "driver"='neil bonnett'; | 2-11381809-1 |
What channel has a description of the public broadcaster? | CREATE TABLE "analogue_terrestrial_television" (
"channel" text,
"description" text,
"financed_by" text,
"owned_by" text,
"launched" real
); | SELECT "channel" FROM "analogue_terrestrial_television" WHERE "description"='public broadcaster'; | 2-11680405-1 |
What was the channel that was financed by commercials? | CREATE TABLE "analogue_terrestrial_television" (
"channel" text,
"description" text,
"financed_by" text,
"owned_by" text,
"launched" real
); | SELECT "channel" FROM "analogue_terrestrial_television" WHERE "financed_by"='commercials'; | 2-11680405-1 |
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "constructor"='minardi - fondmetal' AND "driver"='marc gené' AND "grid">20; | 2-1123395-2 |
What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "race" WHERE "laps">66 AND "driver"='michael schumacher'; | 2-1123395-2 |
Which driver has 62 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "laps"=62; | 2-1123395-2 |
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "race" WHERE "constructor"='mclaren - mercedes' AND "driver"='david coulthard' AND "laps"<66; | 2-1123395-2 |
What is the highest number of laps for grid 17? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "grid"=17; | 2-1123437-2 |
None of the rounds has Roger Williamson as a driver. | CREATE TABLE "championship_drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "rounds" FROM "championship_drivers_and_constructors" WHERE "driver"='roger williamson'; | 2-1140087-2 |
What is the time/retired for alain prost? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "driver"='alain prost'; | 2-1122913-2 |
What is the time/retired for grid 9? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid"=9; | 2-1122913-2 |
Who had to retire due to suspension? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "time_retired"='suspension'; | 2-1122913-2 |
What class is volleyball in 2000? | CREATE TABLE "sports" (
"sport" text,
"year" real,
"class" text,
"coach" text,
"record" text
); | SELECT "class" FROM "sports" WHERE "sport"='volleyball' AND "year"=2000; | 2-11279459-1 |
What is the team's record in 3a volleyball? | CREATE TABLE "sports" (
"sport" text,
"year" real,
"class" text,
"coach" text,
"record" text
); | SELECT "record" FROM "sports" WHERE "class"='3a' AND "sport"='volleyball'; | 2-11279459-1 |
Who was the away team at Melbourne's home game? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_16" WHERE "home_team"='melbourne'; | 2-10790804-16 |
What was the away team score at Corio Oval? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_16" WHERE "venue"='corio oval'; | 2-10790804-16 |
When did the away team score 12.14 (86)? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_16" WHERE "away_team_score"='12.14 (86)'; | 2-10790804-16 |
Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue? | CREATE TABLE "mi_g_credits" (
"date" text,
"pilot" text,
"weapon_systems_officer" text,
"aircraft" text,
"tail_code" text,
"call_sign" text,
"kill" text
); | SELECT "call_sign" FROM "mi_g_credits" WHERE "tail_code"='oy' AND "weapon_systems_officer"='capt charles b. debellevue'; | 2-11431538-1 |
Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue? | CREATE TABLE "mi_g_credits" (
"date" text,
"pilot" text,
"weapon_systems_officer" text,
"aircraft" text,
"tail_code" text,
"call_sign" text,
"kill" text
); | SELECT "tail_code" FROM "mi_g_credits" WHERE "weapon_systems_officer"='capt charles b. debellevue'; | 2-11431538-1 |
Which Aircraft has the Call Sign Paula 01? | CREATE TABLE "mi_g_credits" (
"date" text,
"pilot" text,
"weapon_systems_officer" text,
"aircraft" text,
"tail_code" text,
"call_sign" text,
"kill" text
); | SELECT "aircraft" FROM "mi_g_credits" WHERE "call_sign"='paula 01'; | 2-11431538-1 |
Which Call Sign that has Tail Code ed? | CREATE TABLE "mi_g_credits" (
"date" text,
"pilot" text,
"weapon_systems_officer" text,
"aircraft" text,
"tail_code" text,
"call_sign" text,
"kill" text
); | SELECT "call_sign" FROM "mi_g_credits" WHERE "tail_code"='ed'; | 2-11431538-1 |
Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on? | CREATE TABLE "mi_g_credits" (
"date" text,
"pilot" text,
"weapon_systems_officer" text,
"aircraft" text,
"tail_code" text,
"call_sign" text,
"kill" text
); | SELECT "aircraft" FROM "mi_g_credits" WHERE "weapon_systems_officer"='capt charles b. debellevue'; | 2-11431538-1 |
What is the lowest amount of wins of someone who has 2 losses? | CREATE TABLE "2008_ladder" (
"mid_gippsland_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MIN("wins") FROM "2008_ladder" WHERE "losses"=2; | 2-11562830-3 |
What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17? | CREATE TABLE "2008_ladder" (
"mid_gippsland_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("wins") FROM "2008_ladder" WHERE "against">1249 AND "losses"<17; | 2-11562830-3 |
What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "race_name" FROM "non_championship_race_results" WHERE "winning_driver"='stirling moss' AND "circuit"='oulton park'; | 2-1140108-6 |
Who is the winning driver that has a construction of brm? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "winning_driver" FROM "non_championship_race_results" WHERE "constructor"='brm'; | 2-1140108-6 |
What is the high bronze total for nations ranked 12? | CREATE TABLE "titles_by_country" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "titles_by_country" WHERE "rank"='12'; | 2-11102368-2 |
Who was the away team when Footscray scored 11.14 (80)? | CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_14" WHERE "home_team_score"='11.14 (80)'; | 2-10790099-14 |
What was the winning score on May 3, 1998? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "winning_score" FROM "pga_tour_wins_13" WHERE "date"='may 3, 1998'; | 2-1110732-2 |
What is the role of the aircraft that has a registration of s5-hpg s5-hpc? | CREATE TABLE "helicopters" (
"aircraft" text,
"origin" text,
"role" text,
"registration" text,
"number" text
); | SELECT "role" FROM "helicopters" WHERE "registration"='s5-hpg s5-hpc'; | 2-11208843-1 |
What is the country of origin of the aircraft with a registration s5-hpb? | CREATE TABLE "helicopters" (
"aircraft" text,
"origin" text,
"role" text,
"registration" text,
"number" text
); | SELECT "origin" FROM "helicopters" WHERE "registration"='s5-hpb'; | 2-11208843-1 |
What is the role of the aircraft that originates from the European Union? | CREATE TABLE "helicopters" (
"aircraft" text,
"origin" text,
"role" text,
"registration" text,
"number" text
); | SELECT "role" FROM "helicopters" WHERE "origin"='european union'; | 2-11208843-1 |
What is the role of the aircraft that has a registration of s5-hpb? | CREATE TABLE "helicopters" (
"aircraft" text,
"origin" text,
"role" text,
"registration" text,
"number" text
); | SELECT "role" FROM "helicopters" WHERE "registration"='s5-hpb'; | 2-11208843-1 |
Which Hometown has a Height of 6-10? | CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "hometown" FROM "2010_boys_team" WHERE "height"='6-10'; | 2-11677760-28 |
What is the NBA Draft for the School Bishop O'Connell High School? | CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "2010_boys_team" WHERE "school"='bishop o''connell high school'; | 2-11677760-28 |
Which School is located in Winter Park, FL (Hometown)? | CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "2010_boys_team" WHERE "hometown"='winter park, fl'; | 2-11677760-28 |
When the School is Bishop Luers High School, what is the Hometown? | CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "hometown" FROM "2010_boys_team" WHERE "school"='bishop luers high school'; | 2-11677760-28 |
What is the Hometown for Villanova College? | CREATE TABLE "2010_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "hometown" FROM "2010_boys_team" WHERE "college"='villanova'; | 2-11677760-28 |
Who was the home team at the game when the Thrashers had a record of 18–18–1? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "home" FROM "december" WHERE "record"='18–18–1'; | 2-11870934-5 |
What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "december" WHERE "decision"='lehtonen' AND "attendance">'17,731'; | 2-11870934-5 |
What is the average grid for johnny herbert with a Time/Retired of +1 lap? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "classification" WHERE "time_retired"='+1 lap' AND "driver"='johnny herbert'; | 2-1123333-2 |
Who was the away team at mcg? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_2" WHERE "venue"='mcg'; | 2-10808681-2 |
Who was the home team at princes park? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_2" WHERE "venue"='princes park'; | 2-10808681-2 |
Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″? | CREATE TABLE "2101_2200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "object_type" FROM "2101_2200" WHERE "constellation"='orion' AND "ngc_number">2174 AND "declination_j2000"='°48′06″'; | 2-11097664-2 |
Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171? | CREATE TABLE "2101_2200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "right_ascension_j2000" FROM "2101_2200" WHERE "constellation"='mensa' AND "ngc_number">2171; | 2-11097664-2 |
Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s? | CREATE TABLE "2101_2200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT MAX("ngc_number") FROM "2101_2200" WHERE "object_type"='open cluster' AND "right_ascension_j2000"='06h01m06s'; | 2-11097664-2 |
Which Object type has an NGC number of 2171? | CREATE TABLE "2101_2200" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "object_type" FROM "2101_2200" WHERE "ngc_number"=2171; | 2-11097664-2 |
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889? | CREATE TABLE "lieutenant_governors_of_illinois" (
"lt_governor" text,
"commission_date" text,
"end_date" text,
"governor" text,
"party" text,
"term" text
); | SELECT "end_date" FROM "lieutenant_governors_of_illinois" WHERE "governor"='richard j. oglesby' AND "term"='1885–1889'; | 2-11186436-1 |
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research? | CREATE TABLE "deep_space_rendezvous" (
"date_and_time_utc" text,
"rocket" text,
"site" text,
"orbit" text,
"function" text,
"decay_utc" text
); | SELECT "site" FROM "deep_space_rendezvous" WHERE "orbit"='leo' AND "decay_utc"='still in orbit' AND "function"='magnetosphere research'; | 2-11858050-1 |
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site? | CREATE TABLE "deep_space_rendezvous" (
"date_and_time_utc" text,
"rocket" text,
"site" text,
"orbit" text,
"function" text,
"decay_utc" text
); | SELECT "date_and_time_utc" FROM "deep_space_rendezvous" WHERE "orbit"='sub-orbital' AND "function"='aeronomy research' AND "rocket"='nike orion' AND "site"='poker flat'; | 2-11858050-1 |
what is the tournament when the winning score is 2 and 1? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_up" text
); | SELECT "tournament" FROM "pga_tour_wins_5" WHERE "winning_score"='2 and 1'; | 2-11949127-2 |
what is the margin of victory for the tournament travelers championship? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "tournament"='travelers championship'; | 2-11949127-2 |
what is the margin of victory for the waste management phoenix open tournament? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "tournament"='waste management phoenix open'; | 2-11949127-2 |
who is the runner-up when the winning score is −16 (68-70-65-65=268)? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_up" text
); | SELECT "runner_up" FROM "pga_tour_wins_5" WHERE "winning_score"='−16 (68-70-65-65=268)'; | 2-11949127-2 |
For which Game 4 did Michael O'Connor play wing position? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "game_4" FROM "1987_series" WHERE "position"='wing' AND "game_1"='michael o''connor'; | 2-11215792-8 |
For which Game 4, did David Boyle play in Game 3? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "game_4" FROM "1987_series" WHERE "game_3"='david boyle'; | 2-11215792-8 |
Which Game 1 has a fullback? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "game_1" FROM "1987_series" WHERE "position"='fullback'; | 2-11215792-8 |
For which Game 4 did Michael O'Connor play during Game 1? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "game_4" FROM "1987_series" WHERE "game_1"='michael o''connor'; | 2-11215792-8 |
During Game 2, which position did Andrew Farrar play? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "position" FROM "1987_series" WHERE "game_2"='andrew farrar'; | 2-11215792-8 |
During which Game 4, did Brett Kenny play Game 2? | CREATE TABLE "1987_series" (
"position" text,
"game_1" text,
"game_2" text,
"game_3" text,
"game_4" text
); | SELECT "game_4" FROM "1987_series" WHERE "game_2"='brett kenny'; | 2-11215792-8 |
Where was the former private member that was founded in 1891 and left in 1975? | CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
); | SELECT "location" FROM "former_members" WHERE "left"=1975 AND "type"='private' AND "founded"=1891; | 2-11658094-3 |
what is the places when for the soviet union with a rank more than 11? | CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" real
); | SELECT SUM("places") FROM "men" WHERE "nation"='soviet union' AND "rank">11; | 2-11312764-3 |
what is the name when the nation is soviet union and the points is 185? | CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"sp_fs" real,
"points" real,
"places" real
); | SELECT "name" FROM "men" WHERE "nation"='soviet union' AND "points"=185; | 2-11312764-3 |
What constructor has less than 3 laps and grid 15? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "laps"<3 AND "grid"=15; | 2-1122050-2 |
Which Home team has an Away team of collingwood? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_7" WHERE "away_team"='collingwood'; | 2-10806194-7 |
Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4 | CREATE TABLE "2009_ladder" (
"mid_gippsland_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MIN("against") FROM "2009_ladder" WHERE "losses"=4 AND "draws"=0 AND "wins">14; | 2-11562830-5 |
Name the sum against for byes less than 0 | CREATE TABLE "2009_ladder" (
"mid_gippsland_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT SUM("against") FROM "2009_ladder" WHERE "byes"<0; | 2-11562830-5 |
Name the sum of draws for losses less than 2 and wins of 16 | CREATE TABLE "2009_ladder" (
"mid_gippsland_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT SUM("draws") FROM "2009_ladder" WHERE "wins"=16 AND "losses"<2; | 2-11562830-5 |
How few laps were finished in 17? | CREATE TABLE "indy_500_career" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT MIN("laps") FROM "indy_500_career" WHERE "finish"='17'; | 2-1145778-1 |
What is 1966's Qual rating? | CREATE TABLE "indy_500_career" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "qual" FROM "indy_500_career" WHERE "year"='1966'; | 2-1145778-1 |
What race has a finish time of 10? | CREATE TABLE "indy_500_career" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "start" FROM "indy_500_career" WHERE "finish"='10'; | 2-1145778-1 |
What is the lowest lap with a rank of 30? | CREATE TABLE "indy_500_career" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT MIN("laps") FROM "indy_500_career" WHERE "rank"='30'; | 2-1145778-1 |
What finish time started at 32? | CREATE TABLE "indy_500_career" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "finish" FROM "indy_500_career" WHERE "start"='32'; | 2-1145778-1 |
Who is the lowest ranked player from the United States that has less than 3 Wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT MIN("rank") FROM "leaders" WHERE "country"='united states' AND "wins"<3; | 2-11622006-3 |
What is the score of the game that had a visiting team of Edmonton? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "visitor"='edmonton'; | 2-11945691-6 |
What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "home"='colorado' AND "visitor"='winnipeg'; | 2-11945691-6 |
What team was visiting on February 15? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "game_log" WHERE "date"='february 15'; | 2-11945691-6 |
What theme had an issue price of $489.95 after 2005? | CREATE TABLE "canadian_commerce" (
"year" real,
"theme" text,
"artist" text,
"mintage" real,
"issue_price" text
); | SELECT "theme" FROM "canadian_commerce" WHERE "issue_price"='$489.95' AND "year">2005; | 2-11916083-64 |
What year was the timber trade? | CREATE TABLE "canadian_commerce" (
"year" real,
"theme" text,
"artist" text,
"mintage" real,
"issue_price" text
); | SELECT SUM("year") FROM "canadian_commerce" WHERE "theme"='timber trade'; | 2-11916083-64 |
What year has an issue price of $697.95? | CREATE TABLE "canadian_commerce" (
"year" real,
"theme" text,
"artist" text,
"mintage" real,
"issue_price" text
); | SELECT COUNT("year") FROM "canadian_commerce" WHERE "issue_price"='$697.95'; | 2-11916083-64 |
What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4? | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "drivers_and_constructors" WHERE "driver"='jean-pierre jarier' AND "chassis"='pc4'; | 2-1140083-1 |
What Season had Dundee United as a Winner? | CREATE TABLE "results" (
"season" text,
"winners" text,
"score" text,
"runners_up" text,
"venue" text
); | SELECT "season" FROM "results" WHERE "winners"='dundee united'; | 2-10929673-2 |
What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park? | CREATE TABLE "results" (
"season" text,
"winners" text,
"score" text,
"runners_up" text,
"venue" text
); | SELECT "score" FROM "results" WHERE "venue"='hampden park' AND "runners_up"='rangers' AND "winners"='hibernian'; | 2-10929673-2 |
What Runners-up have a Venue in Broadwood Stadium? | CREATE TABLE "results" (
"season" text,
"winners" text,
"score" text,
"runners_up" text,
"venue" text
); | SELECT "runners_up" FROM "results" WHERE "venue"='broadwood stadium'; | 2-10929673-2 |
When is the completed date of the destroyer with a pennant number h63? | CREATE TABLE "g_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
); | SELECT "completed" FROM "g_class" WHERE "pennant_number"='h63'; | 2-1210297-1 |
When is the completed date of the destroyer with a pennant number h59? | CREATE TABLE "g_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
); | SELECT "completed" FROM "g_class" WHERE "pennant_number"='h59'; | 2-1210297-1 |
What ship has a pennant number h05? | CREATE TABLE "g_class" (
"ship" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"completed" text
); | SELECT "ship" FROM "g_class" WHERE "pennant_number"='h05'; | 2-1210297-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.