output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("poll_wins") FROM "advocates" WHERE "poll_losses">2 AND "advocate"='andy kindler' AND "ties"<0;
## Task Generate a SQL query to answer the following question: `What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "advocates" ( "advocate" text, ...
SELECT AVG("pba_titles") FROM "career_statistics" WHERE "tv_finals">6 AND "events">20;
## Task Generate a SQL query to answer the following question: `Which PBA Titles has a TV Finals larger than 6, and an Events larger than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "events" real, "cash...
SELECT MAX("events") FROM "career_statistics" WHERE "earnings"='$113,259' AND "average">229.5;
## Task Generate a SQL query to answer the following question: `Which Events has Earnings of $113,259, and an Average larger than 229.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "events" real, "cashes" r...
SELECT COUNT("cashes") FROM "career_statistics" WHERE "match_play"<13 AND "events"=7;
## Task Generate a SQL query to answer the following question: `Which Cashes has a Match Play smaller than 13, and a Events of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "events" real, "cashes" real, ...
SELECT "finish" FROM "seasons" WHERE "season"='1950–51';
## Task Generate a SQL query to answer the following question: `What is the Finish for the 1950–51? season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins" te...
SELECT "losses" FROM "seasons" WHERE "conference"='western' AND "season"='2004–05';
## Task Generate a SQL query to answer the following question: `What is the Losses at the western conference and the 2004–05 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "...
SELECT "season" FROM "seasons" WHERE "wins"='philadelphia warriors (nba)';
## Task Generate a SQL query to answer the following question: `What Season has wins as the philadelphia warriors (nba)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text...
SELECT "wins" FROM "seasons" WHERE "conference"='β€”' AND "division"='western' AND "season"='1967–68';
## Task Generate a SQL query to answer the following question: `What shows for Wins when there was a Conference of β€”, western division, in the 1967–68 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conference" te...
SELECT "conference" FROM "seasons" WHERE "season"='1967–68';
## Task Generate a SQL query to answer the following question: `What is the Conference for the 1967–68 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conference" text, "division" text, "finish" text, "wins"...
SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='11:55';
## Task Generate a SQL query to answer the following question: `What is the Location when the time was 11:55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record_incomplete" ( "res" text, "record" text, "opponent" text, "m...
SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='n/a' AND "location"='rio de janeiro , brazil';
## Task Generate a SQL query to answer the following question: `What Round has a Time of n/a, in rio de janeiro , brazil?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record_incomplete" ( "res" text, "record" text, "opponent...
SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';
## Task Generate a SQL query to answer the following question: `What is the Round for the jiu-jitsu vs martial arts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record_incomplete" ( "res" text, "record" text, "opponent" tex...
SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';
## Task Generate a SQL query to answer the following question: `What is the Location for the jiu-jitsu vs martial arts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record_incomplete" ( "res" text, "record" text, "opponent" ...
SELECT "event" FROM "mixed_martial_arts_record_incomplete" WHERE "opponent"='wesslan evaristo de oliveira';
## Task Generate a SQL query to answer the following question: `What is the Event when the opponent was wesslan evaristo de oliveira?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record_incomplete" ( "res" text, "record" text,...
SELECT "points" FROM "summary" WHERE "bike"='motobi tsr 6' AND "riders"='kohta nozane';
## Task Generate a SQL query to answer the following question: `How many points does Kohta Nozane have with a Motobi TSR 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "year" real, "class" text, "team_name" text, "bike" text, "...
SELECT "average" FROM "current_bands" WHERE "band"='f';
## Task Generate a SQL query to answer the following question: `Which Average has a Band of f?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" text ); ##...
SELECT "band" FROM "current_bands" WHERE "ratio"='9/9';
## Task Generate a SQL query to answer the following question: `Which Band has a Ratio of 9/9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" text ); ##...
SELECT "ratio_as_pct" FROM "current_bands" WHERE "ratio"='8/9';
## Task Generate a SQL query to answer the following question: `Which Ratio as % has a Ratio of 8/9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" text...
SELECT "value" FROM "current_bands" WHERE "ratio_as_pct"='100%';
## Task Generate a SQL query to answer the following question: `Which Value has a Ratio as % of 100%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" tex...
SELECT "ratio" FROM "current_bands" WHERE "ratio_as_pct"='78%';
## Task Generate a SQL query to answer the following question: `Which Ratio has a Ratio as % of 78%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" text...
SELECT "band" FROM "current_bands" WHERE "ratio"='13/9';
## Task Generate a SQL query to answer the following question: `Which Band has a Ratio of 13/9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_bands" ( "band" text, "value" text, "ratio" text, "ratio_as_pct" text, "average" text ); #...
SELECT MAX("year") FROM "league_championship_series" WHERE "winning_team"='atlanta braves' AND "losing_team"='st. louis cardinals';
## Task Generate a SQL query to answer the following question: `What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_championship_series" ( "year" real, "serie...
SELECT "winning_team" FROM "league_championship_series" WHERE "losing_team"='san francisco giants';
## Task Generate a SQL query to answer the following question: `Who won the series when the San Francisco Giants lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_championship_series" ( "year" real, "series" text, "winning_team" text, ...
SELECT "site" FROM "league_championship_series" WHERE "winning_team"='kansas city royals';
## Task Generate a SQL query to answer the following question: `Where was the series that the Kansas City Royals lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_championship_series" ( "year" real, "series" text, "winning_team" text, ...
SELECT "winning_team" FROM "league_championship_series" WHERE "year"=2008;
## Task Generate a SQL query to answer the following question: `Who was the winning team in 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_championship_series" ( "year" real, "series" text, "winning_team" text, "losing_team" text,...
SELECT AVG("lost") FROM "season_by_season_results" WHERE "points">108;
## Task Generate a SQL query to answer the following question: `What average lost has points greater than 108?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "lost" real, "tied" text, ...
SELECT SUM("lost") FROM "season_by_season_results" WHERE "goals_against"=222 AND "points">78;
## Task Generate a SQL query to answer the following question: `How many losses have 222 as the goals against, with points greater than 78?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "...
SELECT SUM("goals_against") FROM "season_by_season_results" WHERE "games"=64 AND "lost"<12 AND "points">107;
## Task Generate a SQL query to answer the following question: `How many goals against have 64 for games, a loss less than 12, with points greater than 107?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_results" ( "season" text, ...
SELECT SUM("place") FROM "national_final" WHERE "song"='never change';
## Task Generate a SQL query to answer the following question: `What is the place of the song 'Never Change'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "result" text, "place" re...
SELECT "song" FROM "national_final" WHERE "artist"='aleko berdzenishvili';
## Task Generate a SQL query to answer the following question: `What is the name of Aleko Berdzenishvili's song?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "result" text, "place"...
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "player"='mike biko';
## Task Generate a SQL query to answer the following question: `What was the lowest pick for the RHP position and player Mike Biko?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text,...
SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "david_norris"='10.3%';
## Task Generate a SQL query to answer the following question: `What is the Martin McGuinness with a David Norris that is 10.3%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_preference_votes_by_constituency" ( "constituency" text, "michael...
SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "se_n_gallagher"='29.6%';
## Task Generate a SQL query to answer the following question: `What is the Martin mcGuinness with a Sean Gallagher that is 29.6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_preference_votes_by_constituency" ( "constituency" text, "micha...
SELECT "david_norris" FROM "first_preference_votes_by_constituency" WHERE "michael_d_higgins"='46.2%';
## Task Generate a SQL query to answer the following question: `What is the David Norris with a Michael D. Higgins that is 46.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_preference_votes_by_constituency" ( "constituency" text, "michae...
SELECT "mary_davis" FROM "first_preference_votes_by_constituency" WHERE "gay_mitchell"='4.6%';
## Task Generate a SQL query to answer the following question: `What is the Mary Davis with a Gay Mitchell that is 4.6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_preference_votes_by_constituency" ( "constituency" text, "michael_d_higgi...
SELECT COUNT("prev") FROM "fide_january_2008_top_ten" WHERE "chng"='+10' AND "rating">2765;
## Task Generate a SQL query to answer the following question: `Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fide_january_2008_top_ten" ( "rank" re...
SELECT "second_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "election">1841;
## Task Generate a SQL query to answer the following question: `Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1832_1885" ( "election" ...
SELECT "third_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "second_member"='humphrey mildmay';
## Task Generate a SQL query to answer the following question: `Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1832_1885" ( "election" real...
SELECT "third_member" FROM "1832_1885" WHERE "third_party"='conservative' AND "second_party"='liberal';
## Task Generate a SQL query to answer the following question: `Who is the third member of the third conservative party, and the second liberal party?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1832_1885" ( "election" real, "first_member" text...
SELECT MAX("election") FROM "1832_1885" WHERE "third_member"='sir robert price, bt' AND "first_party"='conservative';
## Task Generate a SQL query to answer the following question: `What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1832_1885" ( "election" r...
SELECT "record" FROM "winners" WHERE "head_coach"='steve spurrier';
## Task Generate a SQL query to answer the following question: `What was the record of the team with head coach Steve Spurrier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "team" text, "conference" text, "head_coac...
SELECT "record" FROM "winners" WHERE "team"='usc' AND "season"<1967;
## Task Generate a SQL query to answer the following question: `What was USC's record before the 1967 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "team" text, "conference" text, "head_coach" text, "record...
SELECT "record" FROM "winners" WHERE "season"=1973;
## Task Generate a SQL query to answer the following question: `What was the record during the 1973 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "team" text, "conference" text, "head_coach" text, "record" ...
SELECT "average" FROM "average_scores_of_all_couples" WHERE "place"='6th' AND "total"='165';
## Task Generate a SQL query to answer the following question: `What is the average score for 6th place with a total of 165?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" text, "place" text, "p...
SELECT "total" FROM "average_scores_of_all_couples" WHERE "rank_by_average"='74' AND "place"='8th';
## Task Generate a SQL query to answer the following question: `What is the total with a 74 rank by average for 8th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" text, "place" text, "per...
SELECT "place" FROM "average_scores_of_all_couples" WHERE "season"='8' AND "rank_by_average"='139';
## Task Generate a SQL query to answer the following question: `What was the place in season 8 with a rank by average at 139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" text, "place" text, "...
SELECT "total" FROM "average_scores_of_all_couples" WHERE "place"='3rd' AND "season"='9';
## Task Generate a SQL query to answer the following question: `What is the total for 3rd place on season 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" text, "place" text, "perfect_40s" text...
SELECT "rank_by_average" FROM "average_scores_of_all_couples" WHERE "number_of_dances"='1' AND "season"='9';
## Task Generate a SQL query to answer the following question: `What rank by average has 1 dance on season 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" text, "place" text, "perfect_40s" tex...
SELECT "final_round" FROM "contestants" WHERE "team"='milwaukee bucks';
## Task Generate a SQL query to answer the following question: `What was the final round score for the player from the Milwaukee Bucks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "heig...
SELECT "pos" FROM "contestants" WHERE "first_round"='35.7';
## Task Generate a SQL query to answer the following question: `What position does the player with a first round score of 35.7 play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height"...
SELECT "height" FROM "contestants" WHERE "first_round"='44.1';
## Task Generate a SQL query to answer the following question: `What is the height of the player with a first round score of 44.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" t...
SELECT "player" FROM "contestants" WHERE "weight"=187;
## Task Generate a SQL query to answer the following question: `Which player weighs 187 pounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real, "first_roun...
SELECT "illustrator" FROM "winners_of_the_kurt_maschler_award" WHERE "year"=1987;
## Task Generate a SQL query to answer the following question: `Who was the illustrator in 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_kurt_maschler_award" ( "year" real, "author" text, "illustrator" text, "title" text,...
SELECT COUNT("year") FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';
## Task Generate a SQL query to answer the following question: `How many years was the title drop dead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_kurt_maschler_award" ( "year" real, "author" text, "illustrator" text, "title...
SELECT "publisher" FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';
## Task Generate a SQL query to answer the following question: `Which publisher has a title of drop dead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_kurt_maschler_award" ( "year" real, "author" text, "illustrator" text, "tit...
SELECT "greek" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='ebbe';
## Task Generate a SQL query to answer the following question: `What Greek word means the same thing as the German word ebbe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text,...
SELECT "german" FROM "words_derived_from_non_indo_european_lan" WHERE "icelandic"='efja';
## Task Generate a SQL query to answer the following question: `What word in German translates into the Icelandic word efja?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, ...
SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "latin"='navigo';
## Task Generate a SQL query to answer the following question: `What is the Dutch translation of the Latin word navigo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "du...
SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "greek"='πλέω (pléō)';
## Task Generate a SQL query to answer the following question: `What Dutch word has the same meaning as the Greek word πλέω (pléō)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german"...
SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='german';
## Task Generate a SQL query to answer the following question: `What English word has the same meaning as the German word "german"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german"...
SELECT COUNT("wins") FROM "summary" WHERE "events"=7 AND "top_10">2;
## Task Generate a SQL query to answer the following question: `How many wins are related to events of 7 and more than 2 top-10s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" ...
SELECT MAX("cuts_made") FROM "summary" WHERE "top_5"=1 AND "top_10"=2 AND "events">13;
## Task Generate a SQL query to answer the following question: `What is the most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real,...
SELECT "name" FROM "rankings" WHERE "rank"<71 AND "year">2005 AND "out_of"='220';
## Task Generate a SQL query to answer the following question: `Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, ...
SELECT MIN("year") FROM "rankings" WHERE "rank"<132 AND "name"='biodiversity richness';
## Task Generate a SQL query to answer the following question: `Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank...
SELECT "source" FROM "rankings" WHERE "rank"=78;
## Task Generate a SQL query to answer the following question: `Can you tell me the Source that has the Rank of 78?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( "name" text, "rank" real, "out_of" text, "source" text, "year" rea...
SELECT "out_of" FROM "rankings" WHERE "source"='united nations' AND "rank">47 AND "year"<2003;
## Task Generate a SQL query to answer the following question: `Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rankings" ( ...
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2004"='1r';
## Task Generate a SQL query to answer the following question: `Which Tournament has a 2004 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" text, "2006" text, "2007...
SELECT "2005" FROM "doubles_performance_timeline" WHERE "2007"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2005 that has a grand slam tournaments in 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" tex...
SELECT "2006" FROM "doubles_performance_timeline" WHERE "2004"='2r' AND "2005"='2r';
## Task Generate a SQL query to answer the following question: `What is the 2006 that has a 2r in 2004, and a 2r in 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" text,...
SELECT "2007" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2007 that has a grand slam tournaments in 2006.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" tex...
SELECT "2004" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2004 that has a of grand slam tournaments in2006 ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" ...
SELECT "2006" FROM "doubles_performance_timeline" WHERE "2007"='3r';
## Task Generate a SQL query to answer the following question: `What is 2006 has a 2007 of 3r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2004" text, "2005" text, "2006" text, "2007" te...
SELECT COUNT("passengers") FROM "top_domestic_destinations_out_of_btv_oct" WHERE "airport"='mco' AND "rank">9;
## Task Generate a SQL query to answer the following question: `What was the number of passengers going to MCO with a rank larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_domestic_destinations_out_of_btv_oct" ( "rank" real, "city...
SELECT "airport" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "passengers">'51,000' AND "carriers"='us airways' AND "rank"=2;
## Task Generate a SQL query to answer the following question: `What was the airport with primary carrier of US Airways with a 2 ranking and more than 51,000 passengers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_domestic_destinations_out_of_...
SELECT "city" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "rank"<3 AND "carriers"='jetblue airways';
## Task Generate a SQL query to answer the following question: `What city had a rank before 3 and primary carrier JetBlue Airways?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_domestic_destinations_out_of_btv_oct" ( "rank" real, "city" text,...
SELECT "launched" FROM "1818_1821_orders" WHERE "laid_down"='february 1819';
## Task Generate a SQL query to answer the following question: `What was launched and laid down in February 1819?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1818_1821_orders" ( "name" text, "built_by_hm_dockyard" text, "ordered" text, "lai...
SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "points"<10 AND "qualifying">7 AND "race_1"='ret' AND "driver"='jonathan grant';
## Task Generate a SQL query to answer the following question: `What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ind...
SELECT "date" FROM "results_pool_b" WHERE "set_2"='25-13';
## Task Generate a SQL query to answer the following question: `What is Date, when Set 2 is 25-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4...
SELECT "total" FROM "results_pool_b" WHERE "set_5"='na' AND "set_2"='25-13';
## Task Generate a SQL query to answer the following question: `What is Total, when Set 5 is NA, and when Set 2 is 25-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, ...
SELECT "score" FROM "results_pool_b" WHERE "date"='jun 16' AND "set_4"='25-20';
## Task Generate a SQL query to answer the following question: `What is Score, when Date is Jun 16, and when Set 4 is 25-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text...
SELECT "set_2" FROM "results_pool_b" WHERE "score"='3-0' AND "date"='may 11' AND "set_1"='25-20';
## Task Generate a SQL query to answer the following question: `What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" t...
SELECT "set_4" FROM "results_pool_b" WHERE "set_1"='25-18' AND "date"='jun 2';
## Task Generate a SQL query to answer the following question: `What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text,...
SELECT "team" FROM "game_log" WHERE "score"='w 101–97 (2ot)';
## Task Generate a SQL query to answer the following question: `What is the Team with a Score that is w 101–97 (2ot)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_point...
SELECT "high_points" FROM "game_log" WHERE "score"='l 64–94 (ot)';
## Task Generate a SQL query to answer the following question: `What is the High points with a Score that is l 64–94 (ot)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_...
SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"<1;
## Task Generate a SQL query to answer the following question: `What is the largest played when the drawn is less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "playe...
SELECT AVG("points") FROM "campeonato_paulista" WHERE "played">20;
## Task Generate a SQL query to answer the following question: `What points average has a played greater than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real,...
SELECT MIN("drawn") FROM "campeonato_paulista" WHERE "position">10 AND "played"<20;
## Task Generate a SQL query to answer the following question: `What is the smallest drawn with a position bigger than 10 and a played less than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text...
SELECT AVG("position") FROM "campeonato_paulista" WHERE "drawn"=9 AND "points">25;
## Task Generate a SQL query to answer the following question: `At what average position is the drawn 9 and the points greater than 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" ...
SELECT COUNT("played") FROM "campeonato_paulista" WHERE "against">57 AND "lost">14;
## Task Generate a SQL query to answer the following question: `How many played has an against greater than 57 and a lost bigger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points...
SELECT "location" FROM "tournaments" WHERE "event"='rip curl pro mademoiselle';
## Task Generate a SQL query to answer the following question: `The event rip curl pro mademoiselle is in which location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text,...
SELECT "winner" FROM "tournaments" WHERE "country"='united states' AND "date"='november 24-december 6';
## Task Generate a SQL query to answer the following question: `On the date november 24-december 6 what's the winner when the country is united states?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournaments" ( "date" text, "location" text, "...
SELECT MIN("year") FROM "major_competition_record" WHERE "event"='100 m' AND "venue"='thessaloniki, greece';
## Task Generate a SQL query to answer the following question: `Which year was the 100 m event played in Thessaloniki, Greece?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real, "competition" text, "venue" te...
SELECT "position" FROM "major_competition_record" WHERE "competition"='world indoor championships' AND "year">2008;
## Task Generate a SQL query to answer the following question: `Which position was the World Indoor Championships in a year later than 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real, "competition" text...
SELECT "position" FROM "major_competition_record" WHERE "competition"='world athletics final' AND "year">2008;
## Task Generate a SQL query to answer the following question: `What position was played at the World Athletics Final Competition in a year more recent than 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real...
SELECT "position" FROM "major_competition_record" WHERE "competition"='world athletics final' AND "year">2008;
## Task Generate a SQL query to answer the following question: `What position was played at the World Athletics Final Competition in a year more recent than 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_competition_record" ( "year" real...
SELECT MIN("greater_doubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"=23 AND "doubles_ii_class"<27;
## Task Generate a SQL query to answer the following question: `What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "some_differences_in_relation_to...
SELECT MAX("doubles_ii_class") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"<19;
## Task Generate a SQL query to answer the following question: `What is the highest Doubles, II Class, when Doubles, I Class is less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "some_differences_in_relation_to_later_ed" ( "date" real, "...
SELECT MIN("semidoubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;
## Task Generate a SQL query to answer the following question: `What is the lowest Semidoubles, when Doubles, II Class is 18, and when Total is less than 164?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "some_differences_in_relation_to_later_ed" ( ...
SELECT MIN("date") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;
## Task Generate a SQL query to answer the following question: `What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "some_differences_in_relation_to_later_ed" ( "date"...
SELECT "goals" FROM "college" WHERE "assists"='5';
## Task Generate a SQL query to answer the following question: `What are the goals of the assists of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college" ( "year" text, "team" text, "gp_gs" text, "goals" text, "assists" text, "total_...