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 Home Team on April 13 with a Road Team of St. Louis? | CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
); | SELECT "home_team" FROM "nba_finals" WHERE "road_team"='st. louis' AND "date"='april 13'; | 2-17164298-4 |
What is Score, when Date is greater than 7, and when Game is "82"? | CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "date">7 AND "game"=82; | 2-17360752-10 |
What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"? | CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "location_attendance"='mellon arena - 17,132'; | 2-17360752-10 |
What is Score, when Game is greater than 78, and when Date is "4"? | CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "game">78 AND "date"=4; | 2-17360752-10 |
What is Score, when Opponent is "Tampa Bay Lightning"? | CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "opponent"='tampa bay lightning'; | 2-17360752-10 |
What is Location/Attendance, when Score is "4-5 (OT)"? | CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
); | SELECT "location_attendance" FROM "game_log" WHERE "score"='4-5 (ot)'; | 2-17360752-10 |
What driving wheels are on the m1 original NER class? | CREATE TABLE "classification" (
"original_ner_class" text,
"1914_ner_class" text,
"lner_class" text,
"cylinders" text,
"driving_wheels" text
); | SELECT "driving_wheels" FROM "classification" WHERE "original_ner_class"='m1'; | 2-17181920-1 |
What is the LNER class with an m 1914 NER class? | CREATE TABLE "classification" (
"original_ner_class" text,
"1914_ner_class" text,
"lner_class" text,
"cylinders" text,
"driving_wheels" text
); | SELECT "lner_class" FROM "classification" WHERE "1914_ner_class"='m'; | 2-17181920-1 |
What is the 1914 NER class with a d17/2 LNER class? | CREATE TABLE "classification" (
"original_ner_class" text,
"1914_ner_class" text,
"lner_class" text,
"cylinders" text,
"driving_wheels" text
); | SELECT "1914_ner_class" FROM "classification" WHERE "lner_class"='d17/2'; | 2-17181920-1 |
What was Lew Worsham's score? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
); | SELECT "score" FROM "final_leaderboard" WHERE "player"='lew worsham'; | 2-17290176-1 |
Which Points have a Time/Retired of +49.222 secs? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT MAX("points") FROM "race" WHERE "time_retired"='+49.222 secs'; | 2-16874390-2 |
What are grid 4's average points? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT AVG("points") FROM "race" WHERE "grid"=4; | 2-16874390-2 |
Who was the owner of Give a Toast after 1985? | CREATE TABLE "winners" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text
); | SELECT "owner" FROM "winners" WHERE "year">1985 AND "winner"='give a toast'; | 2-17155695-1 |
What is the earliest year Stuart Janney III was an owner? | CREATE TABLE "winners" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text
); | SELECT MIN("year") FROM "winners" WHERE "owner"='stuart janney iii'; | 2-17155695-1 |
Who was the winner after 1989 when Stronach Stable was the owner? | CREATE TABLE "winners" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text
); | SELECT "winner" FROM "winners" WHERE "year">1989 AND "owner"='stronach stable'; | 2-17155695-1 |
Who was the trainer when Mckaymackenna won? | CREATE TABLE "winners" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text
); | SELECT "trainer" FROM "winners" WHERE "winner"='mckaymackenna'; | 2-17155695-1 |
What Tunnel has an Imperial Length of 307 yd? | CREATE TABLE "northern_ireland" (
"county" text,
"tunnel" text,
"type" text,
"length_imperial" text,
"date_of_opening" text
); | SELECT "tunnel" FROM "northern_ireland" WHERE "length_imperial"='307 yd'; | 2-166444-3 |
What Type of Tunnel is the Downhill Tunnel? | CREATE TABLE "northern_ireland" (
"county" text,
"tunnel" text,
"type" text,
"length_imperial" text,
"date_of_opening" text
); | SELECT "type" FROM "northern_ireland" WHERE "tunnel"='downhill'; | 2-166444-3 |
What did United States score in the place t6? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT "score" FROM "final_leaderboard" WHERE "country"='united states' AND "place"='t6'; | 2-16514337-1 |
Which country has the player Ted Schulz? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT "country" FROM "final_leaderboard" WHERE "player"='ted schulz'; | 2-16514337-1 |
Which country scored 69-67-69-70=275? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT "country" FROM "final_leaderboard" WHERE "score"='69-67-69-70=275'; | 2-16514337-1 |
What is the Date, when Game is 17? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "game"=17; | 2-17001658-6 |
What day was the away team Cardiff City? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='cardiff city'; | 2-17054550-5 |
What home team had an away team of Aston Villa? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='aston villa'; | 2-17054550-5 |
What was the score when York City was home? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='york city'; | 2-17054550-5 |
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals? | CREATE TABLE "past_champions_in_the_field" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT SUM("total") FROM "past_champions_in_the_field" WHERE "to_par">7 AND "player"='corey pavin'; | 2-17162199-2 |
What is the round for the ufc on fox: velasquez vs. dos santos event? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc on fox: velasquez vs. dos santos'; | 2-17624940-2 |
Where was the game played when 71,060 people attended? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "game_site" FROM "schedule" WHERE "attendance"='71,060'; | 2-17386115-2 |
When the game was played at Mile High Stadium before week 9, what was the result? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "week"<9 AND "game_site"='mile high stadium'; | 2-17386115-2 |
Against the Houston Oilers after week 14, what was the result of the game? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "week">14 AND "opponent"='houston oilers'; | 2-17386115-2 |
What player has +3 to par and score of 75-72=147? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "player" FROM "second_round" WHERE "to_par"='+3' AND "score"='75-72=147'; | 2-17290169-2 |
What is the country that the player is from with +3 to par and score of 74-73=147? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "to_par"='+3' AND "score"='74-73=147'; | 2-17290169-2 |
What player has +2 to par? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "player" FROM "second_round" WHERE "to_par"='+2'; | 2-17290169-2 |
Name the Team which has a Time/Retired of contact, and a Grid smaller than 17? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" text
); | SELECT "team" FROM "race" WHERE "time_retired"='contact' AND "grid"<17; | 2-16686322-2 |
What is the average Bronze, when Nation is "North Korea", and when Total is greater than 5? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='north korea' AND "total">5; | 2-17179903-3 |
What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "total">10 AND "silver">0 AND "rank"='total'; | 2-17179903-3 |
What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "rank" FROM "medal_table" WHERE "silver"<6 AND "bronze">4 AND "total"=10; | 2-17179903-3 |
What is Gold, when Rank is 7? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "gold" FROM "medal_table" WHERE "rank"='7'; | 2-17179903-3 |
Which Men's 35 has a Women's Open of brisbane city cobras def hunter western hornets? | CREATE TABLE "results_by_year" (
"year" real,
"men_s_open" text,
"women_s_open" text,
"mixed_open" text,
"men_s_u20" text,
"women_s_u20" text,
"senior_mixed" text,
"men_s_30" text,
"women_s_30" text,
"men_s_35" text,
"women_s_35" text,
"men_s_40" text,
"women_s_40" text,
"men_s_45" text,
"men_s_50" text
); | SELECT "men_s_35" FROM "results_by_year" WHERE "women_s_open"='brisbane city cobras def hunter western hornets'; | 2-16724844-1 |
Which Men's 50 has a Senior Mixed of n/A, and a Men's Open of gold coast sharks def sydney mets, and a Men's 30 of sydney mets def sydney scorpions, and a Women's u20 of southern suns def brisbane city cobras? | CREATE TABLE "results_by_year" (
"year" real,
"men_s_open" text,
"women_s_open" text,
"mixed_open" text,
"men_s_u20" text,
"women_s_u20" text,
"senior_mixed" text,
"men_s_30" text,
"women_s_30" text,
"men_s_35" text,
"women_s_35" text,
"men_s_40" text,
"women_s_40" text,
"men_s_45" text,
"men_s_50" text
); | SELECT "men_s_50" FROM "results_by_year" WHERE "senior_mixed"='n/a' AND "men_s_open"='gold coast sharks def sydney mets' AND "men_s_30"='sydney mets def sydney scorpions' AND "women_s_u20"='southern suns def brisbane city cobras'; | 2-16724844-1 |
Which Women's 35 has a Men's 50 of n/A, and a Men's 40 of southern suns def sunwest razorbacks? | CREATE TABLE "results_by_year" (
"year" real,
"men_s_open" text,
"women_s_open" text,
"mixed_open" text,
"men_s_u20" text,
"women_s_u20" text,
"senior_mixed" text,
"men_s_30" text,
"women_s_30" text,
"men_s_35" text,
"women_s_35" text,
"men_s_40" text,
"women_s_40" text,
"men_s_45" text,
"men_s_50" text
); | SELECT "women_s_35" FROM "results_by_year" WHERE "men_s_50"='n/a' AND "men_s_40"='southern suns def sunwest razorbacks'; | 2-16724844-1 |
Which Men's u20 has a Men's 45 of n/A? | CREATE TABLE "results_by_year" (
"year" real,
"men_s_open" text,
"women_s_open" text,
"mixed_open" text,
"men_s_u20" text,
"women_s_u20" text,
"senior_mixed" text,
"men_s_30" text,
"women_s_30" text,
"men_s_35" text,
"women_s_35" text,
"men_s_40" text,
"women_s_40" text,
"men_s_45" text,
"men_s_50" text
); | SELECT "men_s_u20" FROM "results_by_year" WHERE "men_s_45"='n/a'; | 2-16724844-1 |
How many years have a Women's Open of brisbane city cobras def sydney mets, and a Men's 35 of n/A? | CREATE TABLE "results_by_year" (
"year" real,
"men_s_open" text,
"women_s_open" text,
"mixed_open" text,
"men_s_u20" text,
"women_s_u20" text,
"senior_mixed" text,
"men_s_30" text,
"women_s_30" text,
"men_s_35" text,
"women_s_35" text,
"men_s_40" text,
"women_s_40" text,
"men_s_45" text,
"men_s_50" text
); | SELECT COUNT("year") FROM "results_by_year" WHERE "women_s_open"='brisbane city cobras def sydney mets' AND "men_s_35"='n/a'; | 2-16724844-1 |
what is the surface on july 26, 2010? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "surface" FROM "singles_7" WHERE "date"='july 26, 2010'; | 2-16949333-8 |
what is the tournament on august 17, 2008? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "tournament" FROM "singles_7" WHERE "date"='august 17, 2008'; | 2-16949333-8 |
who is the opponent when the score is 7–5, 7–6 (8–6)? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_7" WHERE "score"='7–5, 7–6 (8–6)'; | 2-16949333-8 |
what is the tournament on july 23, 2006? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "tournament" FROM "singles_7" WHERE "date"='july 23, 2006'; | 2-16949333-8 |
what is the score when the opponent is fernando vicente? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "singles_7" WHERE "opponent"='fernando vicente'; | 2-16949333-8 |
who is the opponent when the score is 3–6, 6–1, 7–5? | CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_7" WHERE "score"='3–6, 6–1, 7–5'; | 2-16949333-8 |
What is the lowest Year, when Notes is "Spanish adaptation of "Hope There's Someone.""? | CREATE TABLE "other_appearances" (
"year" real,
"song" text,
"album_appearance" text,
"album_artist" text,
"notes" text
); | SELECT MIN("year") FROM "other_appearances" WHERE "notes"='spanish adaptation of \"hope there''s someone.\"'; | 2-17289732-6 |
What is Album Artist, when Song is ""Something New" (with Mint Royale and Class A)"? | CREATE TABLE "other_appearances" (
"year" real,
"song" text,
"album_appearance" text,
"album_artist" text,
"notes" text
); | SELECT "album_artist" FROM "other_appearances" WHERE "song"='\"something new\" (with mint royale and class a)'; | 2-17289732-6 |
What is Scott Hoch's to par? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "third_round" WHERE "player"='scott hoch'; | 2-17162268-6 |
What place is Nolan Henke in? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "third_round" WHERE "player"='nolan henke'; | 2-17162268-6 |
What is the vote total for elections after 2001 with 44.5% participation? | CREATE TABLE "legislative_elections" (
"election" real,
"total_votes" real,
"share_of_votes" text,
"outcome_of_election" text,
"election_leader" text
); | SELECT "total_votes" FROM "legislative_elections" WHERE "election">2001 AND "share_of_votes"='44.5%'; | 2-16903-2 |
What is the most league cup goals for David Beresford having less than 0 FA Cup Goals? | CREATE TABLE "appearances_and_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "name"='david beresford' AND "fa_cup_goals"<0; | 2-17625135-1 |
What is the league goals when the league cup goals is less than 0 and 16 (1) league apps? | CREATE TABLE "appearances_and_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "league_apps"='16 (1)' AND "league_cup_goals"<0; | 2-17625135-1 |
What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf? | CREATE TABLE "appearances_and_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "position"='mf' AND "league_goals">3 AND "total_apps"='30 (2)'; | 2-17625135-1 |
What is the FA Cup App for Squad Number 3 having fewer than 4 league goals? | CREATE TABLE "appearances_and_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "league_goals"<4 AND "squad_no"=3; | 2-17625135-1 |
What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league? | CREATE TABLE "goal_scorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"total" real
); | SELECT MIN("fa_cup") FROM "goal_scorers" WHERE "league_cup"=1 AND "total"<12 AND "premier_league"=1; | 2-17382981-7 |
What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11? | CREATE TABLE "goal_scorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"total" real
); | SELECT MAX("league_cup") FROM "goal_scorers" WHERE "fa_cup">0 AND "premier_league"<34 AND "total"=11; | 2-17382981-7 |
What is the average total of kenwyne jones, who has more than 10 premier leagues? | CREATE TABLE "goal_scorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"total" real
); | SELECT AVG("total") FROM "goal_scorers" WHERE "name"='kenwyne jones' AND "premier_league">10; | 2-17382981-7 |
What is the highest league cup of danny collins, who has more than 1 premier league? | CREATE TABLE "goal_scorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"total" real
); | SELECT MAX("league_cup") FROM "goal_scorers" WHERE "name"='danny collins' AND "premier_league">1; | 2-17382981-7 |
Who had the high assists in the game less than 19? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "game"<19; | 2-17121262-6 |
Who had the high rebounds in Philips Arena 12,088? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='philips arena 12,088'; | 2-17121262-6 |
Who had the high points when the score was w 108–105 (ot)? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_points" FROM "game_log" WHERE "score"='w 108–105 (ot)'; | 2-17121262-6 |
What was the competition on 29 November 1997 that resulted in a draw? | CREATE TABLE "international" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international" WHERE "result"='draw' AND "date"='29 november 1997'; | 2-174663-2 |
What is the average Area (in km²), when Markatal is less than 0? | CREATE TABLE "local_government_in_the_faroe_islands" (
"municipality" text,
"population" real,
"inhabitants_per_km" real,
"area_in_km" real,
"markatal" real,
"island" text,
"region" text
); | SELECT AVG("area_in_km") FROM "local_government_in_the_faroe_islands" WHERE "markatal"<0; | 2-16278673-1 |
What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79? | CREATE TABLE "local_government_in_the_faroe_islands" (
"municipality" text,
"population" real,
"inhabitants_per_km" real,
"area_in_km" real,
"markatal" real,
"island" text,
"region" text
); | SELECT MAX("markatal") FROM "local_government_in_the_faroe_islands" WHERE "municipality"='leirvík' AND "inhabitants_per_km">79; | 2-16278673-1 |
What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík? | CREATE TABLE "local_government_in_the_faroe_islands" (
"municipality" text,
"population" real,
"inhabitants_per_km" real,
"area_in_km" real,
"markatal" real,
"island" text,
"region" text
); | SELECT SUM("population") FROM "local_government_in_the_faroe_islands" WHERE "markatal">48 AND "inhabitants_per_km">24 AND "municipality"='runavík'; | 2-16278673-1 |
What is the sum of Markatal, when Inhabitants Per Km² is less than 13, and when Area (in Km²) is 27? | CREATE TABLE "local_government_in_the_faroe_islands" (
"municipality" text,
"population" real,
"inhabitants_per_km" real,
"area_in_km" real,
"markatal" real,
"island" text,
"region" text
); | SELECT SUM("markatal") FROM "local_government_in_the_faroe_islands" WHERE "inhabitants_per_km"<13 AND "area_in_km"=27; | 2-16278673-1 |
How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4? | CREATE TABLE "european_campaigns" (
"season" real,
"competition" text,
"games" real,
"wins" real,
"loses" real,
"against" text
); | SELECT COUNT("season") FROM "european_campaigns" WHERE "loses">1 AND "competition"='fiba europe cup' AND "wins"<4; | 2-17381624-1 |
How many Wins have Losses larger than 2, and an Against of 73.3? | CREATE TABLE "european_campaigns" (
"season" real,
"competition" text,
"games" real,
"wins" real,
"loses" real,
"against" text
); | SELECT SUM("wins") FROM "european_campaigns" WHERE "loses">2 AND "against"='73.3'; | 2-17381624-1 |
In what Year was the Game on September 26? | CREATE TABLE "1960s_giants_12_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT SUM("year") FROM "1960s_giants_12_6" WHERE "date"='september 26'; | 2-16900662-5 |
What was the Loser of the Game with a Result of 35-27? | CREATE TABLE "1960s_giants_12_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "loser" FROM "1960s_giants_12_6" WHERE "result"='35-27'; | 2-16900662-5 |
In what Year was the Result of the game 16-14? | CREATE TABLE "1960s_giants_12_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT MAX("year") FROM "1960s_giants_12_6" WHERE "result"='16-14'; | 2-16900662-5 |
What Year had a Result of 34-25? | CREATE TABLE "1960s_giants_12_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT AVG("year") FROM "1960s_giants_12_6" WHERE "result"='34-25'; | 2-16900662-5 |
What is the Winner of the Game on November 26? | CREATE TABLE "1960s_giants_12_6" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "winner" FROM "1960s_giants_12_6" WHERE "date"='november 26'; | 2-16900662-5 |
What was the 2012/13 result for the tournament that had a 2006/07 and 2007/08 finish of LQ, with the tournament not held in 2009/10? | CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2006_07" text,
"2007_08" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2007_08"='lq' AND "2006_07"='lq' AND "2009_10"='tournament not held'; | 2-17035745-1 |
What was the 2006/07 finish for the tournament that had a 2009/10 finish of LQ and a 2010/11 finish of A? | CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2006_07" text,
"2007_08" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2009_10"='lq' AND "2010_11"='a'; | 2-17035745-1 |
What is the highest Position, when Pilot is "Mario Kiessling"? | CREATE TABLE "race_1_2_01_2010" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
); | SELECT MAX("position") FROM "race_1_2_01_2010" WHERE "pilot"='mario kiessling'; | 2-17277703-4 |
What is the average Position, when Speed is "143.5km/h"? | CREATE TABLE "race_1_2_01_2010" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
); | SELECT AVG("position") FROM "race_1_2_01_2010" WHERE "speed"='143.5km/h'; | 2-17277703-4 |
What is Glider, when Speed is "147.3km/h"? | CREATE TABLE "race_1_2_01_2010" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
); | SELECT "glider" FROM "race_1_2_01_2010" WHERE "speed"='147.3km/h'; | 2-17277703-4 |
What is Distance, when Pilot is "Stanislaw Wujczak"? | CREATE TABLE "race_1_2_01_2010" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
); | SELECT "distance" FROM "race_1_2_01_2010" WHERE "pilot"='stanislaw wujczak'; | 2-17277703-4 |
Who has a Jersey number of 31? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"jersey_number_s" text,
"position" text,
"years" text
); | SELECT "player" FROM "m" WHERE "jersey_number_s"='31'; | 2-16772687-13 |
What was the position in 1999? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"jersey_number_s" text,
"position" text,
"years" text
); | SELECT "position" FROM "m" WHERE "years"='1999'; | 2-16772687-13 |
What is the name of the away team with a Tie no of 7? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='7'; | 2-17559580-6 |
What is home team Chelsea's Tie no? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='chelsea'; | 2-17559580-6 |
What away team has a Tie no of 5? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='5'; | 2-17559580-6 |
Can you tell me the Score that has the Player of raymond floyd? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT "score" FROM "third_round" WHERE "player"='raymond floyd'; | 2-17245527-5 |
Can you tell me the Player that has the Country of united states, and the Score of 77-72-72=221? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT "player" FROM "third_round" WHERE "country"='united states' AND "score"='77-72-72=221'; | 2-17245527-5 |
Can you tell me the Score that has the Country of united states, and the To par of 8? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"=8; | 2-17245527-5 |
What was the time when his opponent was Cleber Luciano? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='cleber luciano'; | 2-17445451-2 |
What was the method in round 1 of the UFC 20 event? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "event"='ufc 20'; | 2-17445451-2 |
What is Points, when Tries For is "correct as of 00:00 11 June 2008"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "league_table" WHERE "tries_for"='correct as of 00:00 11 june 2008'; | 2-17369472-3 |
What is Try Bonus, when Lost is "5", and when Points is "73"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "try_bonus" FROM "league_table" WHERE "lost"='5' AND "points"='73'; | 2-17369472-3 |
What is Points, when Played is "20", and when Club is "Caldicot RFC"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "league_table" WHERE "played"='20' AND "club"='caldicot rfc'; | 2-17369472-3 |
What is Points, when Drawn is "1", and when Lost is "5"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "league_table" WHERE "drawn"='1' AND "lost"='5'; | 2-17369472-3 |
What is Lost, when Points For is "257"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "lost" FROM "league_table" WHERE "points_for"='257'; | 2-17369472-3 |
What is Lost, when Losing Bonus is "3", and when Club is "Bettws RFC"? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "lost" FROM "league_table" WHERE "losing_bonus"='3' AND "club"='bettws rfc'; | 2-17369472-3 |
What was the record when the visitor was Atlanta Hawks? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "december" WHERE "visitor"='atlanta hawks'; | 2-16386910-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.