question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is Player, when Total is greater than 148, and when To Par is "12"?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "player" FROM "missed_the_cut" WHERE "total">148 AND "to_par"=12;
2-17231211-3
What is the sum of To Par, when Year(s) Won is "1978 , 1985"?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT SUM("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1978 , 1985';
2-17231211-3
What is To Par, when Year(s) Won is "1968 , 1971"?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1968 , 1971';
2-17231211-3
Which Points difference has Points against of 786?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "points_difference" FROM "2004_05_table" WHERE "points_against"='786';
2-1676073-13
Which Played has a Points difference of +261?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "played" FROM "2004_05_table" WHERE "points_difference"='+261';
2-1676073-13
Which Points against has a Lost of 13, and Points for of 671?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "points_against" FROM "2004_05_table" WHERE "lost"='13' AND "points_for"='671';
2-1676073-13
Which Points difference has Played of 32, and Points for of 840?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "points_difference" FROM "2004_05_table" WHERE "played"='32' AND "points_for"='840';
2-1676073-13
Which Drawn has Points for of 782?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "drawn" FROM "2004_05_table" WHERE "points_for"='782';
2-1676073-13
Which Lost has a Club of club?
CREATE TABLE "2004_05_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );
SELECT "lost" FROM "2004_05_table" WHERE "club"='club';
2-1676073-13
Can you tell me the Record that has the Date of january 29?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "date"='january 29';
2-17218729-5
Can you tell me the Record that has the Visitor of vancouver?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "visitor"='vancouver';
2-17218729-5
What date has the opponent competing in the final of john mcenroe?
CREATE TABLE "wins_11" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text );
SELECT "date" FROM "wins_11" WHERE "opponent_in_final"='john mcenroe';
2-1717109-4
Where did the Lightning play the NY Rangers at 7:00 pm?
CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text );
SELECT "location" FROM "pre_season" WHERE "opponent"='ny rangers' AND "time"='7:00 pm';
2-17360840-1
Who did the Lightning play at the Mellon Arena?
CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text );
SELECT "opponent" FROM "pre_season" WHERE "location"='mellon arena';
2-17360840-1
What was the final score for the game played at 7:00 pm?
CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text );
SELECT "result" FROM "pre_season" WHERE "time"='7:00 pm';
2-17360840-1
Where was the game which ended in a 4-1 w?
CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text );
SELECT "location" FROM "pre_season" WHERE "result"='4-1 w';
2-17360840-1
When was a game played at 7:00 pm?
CREATE TABLE "pre_season" ( "date" text, "opponent" text, "location" text, "time" text, "result" text );
SELECT "date" FROM "pre_season" WHERE "time"='7:00 pm';
2-17360840-1
Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?
CREATE TABLE "models" ( "model_name" text, "engine" text, "top_speed" text, "no_of_gears" real, "electrics" text );
SELECT "top_speed" FROM "models" WHERE "model_name"='d14/4 supreme d14/4 sports & bushman';
2-1647152-1
Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
CREATE TABLE "models" ( "model_name" text, "engine" text, "top_speed" text, "no_of_gears" real, "electrics" text );
SELECT "electrics" FROM "models" WHERE "engine"='175cc, bhp (kw)' AND "model_name"='d10 sports & bushman';
2-1647152-1
Who does pádraig harrington play for?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "country" FROM "final_round" WHERE "player"='pádraig harrington';
2-16299790-7
Which stadium has Seongnam Ilhwa Chunma?
CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text );
SELECT "stadium" FROM "k_league_clubs_2008" WHERE "club"='seongnam ilhwa chunma';
2-16203889-1
What city is Gwang-Yang stadium in?
CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text );
SELECT "city" FROM "k_league_clubs_2008" WHERE "stadium"='gwang-yang stadium';
2-16203889-1
Which stadium has FC Seoul?
CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text );
SELECT "stadium" FROM "k_league_clubs_2008" WHERE "club"='fc seoul';
2-16203889-1
What stadium is in Seoul?
CREATE TABLE "k_league_clubs_2008" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2007_season" text );
SELECT "stadium" FROM "k_league_clubs_2008" WHERE "city"='seoul';
2-16203889-1
What is the 1993 value of the French open?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1993" FROM "doubles_performance_timeline" WHERE "tournament"='french open';
2-1727962-6
What is the 1990 value with a 24 in 1995?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1990" FROM "doubles_performance_timeline" WHERE "1995"='24';
2-1727962-6
What is the 1993 value with a 1r in 1991 and sf in 1990?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1991"='1r' AND "1990"='sf';
2-1727962-6
What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1994" FROM "doubles_performance_timeline" WHERE "1996"='2r' AND "1993"='a' AND "1991"='2r';
2-1727962-6
What is the 1993 value of the 1994 atp masters series?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1994"='atp masters series';
2-1727962-6
What is the 1993 value of the 1996 atp masters series?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1996"='atp masters series';
2-1727962-6
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text );
SELECT "team" FROM "playoffs" WHERE "location_attendance"='staples center 18,997' AND "series"='1–0';
2-17190012-11
Which High points have High rebounds of lamar odom (15), and a Date of april 27?
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text );
SELECT "high_points" FROM "playoffs" WHERE "high_rebounds"='lamar odom (15)' AND "date"='april 27';
2-17190012-11
Which Date has High rebounds of pau gasol (9)?
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text );
SELECT "date" FROM "playoffs" WHERE "high_rebounds"='pau gasol (9)';
2-17190012-11
What was the score of game 2?
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text );
SELECT "score" FROM "playoffs" WHERE "game"=2;
2-17190012-11
What was steve elkington's to par?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_leaderboard" WHERE "player"='steve elkington';
2-16514381-2
With a Season premiere of 23 july 2008 this show has what as the average episode?
CREATE TABLE "overview" ( "season" text, "episodes" real, "season_premiere" text, "season_finale" text, "peak_series_rating_citation_needed" text, "average_series_rating" text, "dvd_release_date" text, "discs" real );
SELECT AVG("episodes") FROM "overview" WHERE "season_premiere"='23 july 2008';
2-16704913-1
Which show has a season premiere with a Average series rating of 1.85 million viewers?
CREATE TABLE "overview" ( "season" text, "episodes" real, "season_premiere" text, "season_finale" text, "peak_series_rating_citation_needed" text, "average_series_rating" text, "dvd_release_date" text, "discs" real );
SELECT "season_premiere" FROM "overview" WHERE "average_series_rating"='1.85 million viewers';
2-16704913-1
What is the most recent year founded that has a nickname of bruins?
CREATE TABLE "members" ( "school" text, "location" text, "founded" real, "enrollment" real, "nickname" text );
SELECT MAX("founded") FROM "members" WHERE "nickname"='bruins';
2-16419215-1
What is the most recent year founded with an enrollment of 42,708?
CREATE TABLE "members" ( "school" text, "location" text, "founded" real, "enrollment" real, "nickname" text );
SELECT MAX("founded") FROM "members" WHERE "enrollment"='42,708';
2-16419215-1
What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "regular_season" WHERE "home"='new york rangers' AND "record"='8–27–5';
2-17137055-2
On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "regular_season" WHERE "home"='detroit red wings' AND "record"='10–41–6';
2-17137055-2
What is the Visitor in the game with a Record of 11–49–7?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "visitor" FROM "regular_season" WHERE "record"='11–49–7';
2-17137055-2
What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "regular_season" WHERE "home"='chicago black hawks' AND "visitor"='new york rangers' AND "score"='3–2';
2-17137055-2
What is the Home team on October 17 with a Score of 1–2?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "regular_season" WHERE "score"='1–2' AND "date"='october 17';
2-17137055-2
What is the Record of the game on January 31 with Visitors Detroit Red Wings?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "regular_season" WHERE "visitor"='detroit red wings' AND "date"='january 31';
2-17137055-2
Name the Report of 7 february with an Away team of new zealand breakers?
CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );
SELECT "report" FROM "round_21" WHERE "date"='7 february' AND "away_team"='new zealand breakers';
2-16653153-28
Which Date has a Crowd smaller than 4,485?
CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );
SELECT "date" FROM "round_21" WHERE "crowd"<'4,485';
2-16653153-28
Name the lowest Crowd of hisense arena on 8 february?
CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );
SELECT MIN("crowd") FROM "round_21" WHERE "venue"='hisense arena' AND "date"='8 february';
2-16653153-28
Name the Box Score which has an Away team of new zealand breakers on 7 february?
CREATE TABLE "round_21" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );
SELECT "box_score" FROM "round_21" WHERE "away_team"='new zealand breakers' AND "date"='7 february';
2-16653153-28
What is the lowest Year, when Venue is Rio De Janeiro, Brazil?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT MIN("year") FROM "achievements" WHERE "venue"='rio de janeiro, brazil';
2-16682600-1
What is Event, when Year is 2008?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "achievements" WHERE "year"=2008;
2-16682600-1
What is the latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MAX("march") FROM "schedule_and_results" WHERE "opponent"='boston bruins' AND "game"<66;
2-17323267-7
What is the method of the match with chris ade as the opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chris ade';
2-17430498-2
What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real );
SELECT AVG("pole") FROM "by_season" WHERE "race"<16 AND "f_lap">8 AND "podium">11;
2-1694580-1
How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?
CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real );
SELECT COUNT("podium") FROM "by_season" WHERE "race">14 AND "season"='1996' AND "f_lap"<9;
2-1694580-1
How many races had 4 podiums, 5 poles and more than 3 Flaps?
CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real );
SELECT SUM("race") FROM "by_season" WHERE "podium"=4 AND "pole"=5 AND "f_lap">3;
2-1694580-1
What are the fewest podiums in 2005 with fewer than 0 poles?
CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real );
SELECT MIN("podium") FROM "by_season" WHERE "season"='2005' AND "pole"<0;
2-1694580-1
Which Player has a To par of +9?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "to_par"='+9';
2-17162268-2
Which years did raymond floyd win?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='raymond floyd';
2-17162268-2
How much total has a To par of +9?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT COUNT("total") FROM "made_the_cut" WHERE "to_par"='+9';
2-17162268-2
Which Total has a Country of united states, and a Player of andy north?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT AVG("total") FROM "made_the_cut" WHERE "country"='united states' AND "player"='andy north';
2-17162268-2
What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MAX("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "time"='retirement' AND "laps">5;
2-16194487-2
What is the average laps completed by riders with times of +2:11.524?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+2:11.524';
2-16194487-2
Which rider has a time of +2:11.524?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT "rider" FROM "125cc_classification" WHERE "time"='+2:11.524';
2-16194487-2
What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT AVG("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "laps">16;
2-16194487-2
What record has January 27 for the date?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='january 27';
2-17102076-7
What team has brad miller (8) as the high assists?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "team" FROM "game_log" WHERE "high_assists"='brad miller (8)';
2-17102076-7
What is the high assists that has @ detroit as the team?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "game_log" WHERE "team"='@ detroit';
2-17102076-7
Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?
CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );
SELECT "date" FROM "1980s_giants_12_9" WHERE "winner"='new york giants' AND "year">1985 AND "result"='17-14';
2-16900662-7
Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?
CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );
SELECT "date" FROM "1980s_giants_12_9" WHERE "year"<1988 AND "loser"='philadelphia eagles' AND "location"='giants stadium' AND "result"='21-0';
2-16900662-7
Which date had a loser of New York Giants and a result of 23-17?
CREATE TABLE "1980s_giants_12_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );
SELECT "date" FROM "1980s_giants_12_9" WHERE "loser"='new york giants' AND "result"='23-17';
2-16900662-7
HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("silver") FROM "medal_table" WHERE "nation"='south korea' AND "gold">2;
2-1672594-2
WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("bronze") FROM "medal_table" WHERE "silver">1 AND "rank">1;
2-1672594-2
What is the average 4th-Place, when Runners-Up is less than 1, when Club is "Tanjong Pagar United FC", and when 3rd-Place is greater than 0?
CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real );
SELECT AVG("4th_place") FROM "top_performing_clubs_in_the_prime_league" WHERE "runners_up"<1 AND "club"='tanjong pagar united fc' AND "3rd_place">0;
2-17072227-2
What is the highest Runners-Up, when Champions is less than 0?
CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real );
SELECT MAX("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "champions"<0;
2-17072227-2
What is the average Runners-Up, when 4th-Place is greater than 1, and when Champions is "2"?
CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real );
SELECT AVG("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "4th_place">1 AND "champions"=2;
2-17072227-2
What is the sum of Runners-Up, when Champions is greater than 5?
CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real );
SELECT SUM("runners_up") FROM "top_performing_clubs_in_the_prime_league" WHERE "champions">5;
2-17072227-2
What is the highest 3rd-Place, when Club is "Home United FC", and when 4th-Place is less than 1?
CREATE TABLE "top_performing_clubs_in_the_prime_league" ( "club" text, "champions" real, "runners_up" real, "3rd_place" real, "4th_place" real );
SELECT MAX("3rd_place") FROM "top_performing_clubs_in_the_prime_league" WHERE "club"='home united fc' AND "4th_place"<1;
2-17072227-2
What is the total medals for nation with more than 0 silvers and more than 0 golds?
CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "championships_per_nation" WHERE "silver">0 AND "gold">0;
2-17455745-1
What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?
CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "championships_per_nation" WHERE "silver"<1 AND "total"<4 AND "bronze">1;
2-17455745-1
What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?
CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("rank") FROM "championships_per_nation" WHERE "silver"<1 AND "gold"=4 AND "bronze"<0;
2-17455745-1
How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?
CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "championships_per_nation" WHERE "rank"<5 AND "silver">0 AND "total"=2;
2-17455745-1
What is the total for the team with more than 2 golds and more than 0 bronze?
CREATE TABLE "championships_per_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "championships_per_nation" WHERE "gold">2 AND "bronze">0;
2-17455745-1
Which rider has time of +19.751?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT "rider" FROM "250cc_classification" WHERE "time"='+19.751';
2-16212245-2
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MAX("laps") FROM "250cc_classification" WHERE "manufacturer"='aprilia' AND "time"='+1:36.557';
2-16212245-2
What is time of manufacturer with grid 21?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT "time" FROM "250cc_classification" WHERE "grid"=21;
2-16212245-2
What is the total of laps with grid of 2
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT SUM("laps") FROM "250cc_classification" WHERE "grid"=2;
2-16212245-2
What is the lowest grid with time of +0.499,when laps are larger than 21?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MIN("grid") FROM "250cc_classification" WHERE "time"='+0.499' AND "laps">21;
2-16212245-2
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT SUM("laps") FROM "250cc_classification" WHERE "manufacturer"='gilera' AND "time"='40:19.910' AND "grid">3;
2-16212245-2
What is the average 1st Throw, when Result is less than 728, when 3rd Throw is "1", when Equation is "0 × 9² + 0 × 9 + 0", and when 2nd Throw is greater than 1?
CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real );
SELECT AVG("1st_throw") FROM "0_728_throw_3_times" WHERE "result"<728 AND "3rd_throw"=1 AND "equation"='0 × 9² + 0 × 9 + 0' AND "2nd_throw">1;
2-17265535-7
What is the sum of 3rd Throw, when Result is greater than 546, and when 1st Throw is less than 9?
CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real );
SELECT SUM("3rd_throw") FROM "0_728_throw_3_times" WHERE "result">546 AND "1st_throw"<9;
2-17265535-7
What is the total number of Result, when 2nd Throw is "2", and when 1st Throw is less than "4"?
CREATE TABLE "0_728_throw_3_times" ( "1st_throw" real, "2nd_throw" real, "3rd_throw" real, "equation" text, "result" real );
SELECT COUNT("result") FROM "0_728_throw_3_times" WHERE "2nd_throw"=2 AND "1st_throw"<4;
2-17265535-7
What is the time when the rank is 14?
CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text );
SELECT "time" FROM "heats" WHERE "rank"=14;
2-16328706-3
what is the rank when the time is 3:12.40?
CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text );
SELECT SUM("rank") FROM "heats" WHERE "time"='3:12.40';
2-16328706-3
what is the rank when the heat is more than 4?
CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text );
SELECT SUM("rank") FROM "heats" WHERE "heat">4;
2-16328706-3
what is the nationality when the heat is less than 3 and the time is 2:35.31?
CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text );
SELECT "nationality" FROM "heats" WHERE "heat"<3 AND "time"='2:35.31';
2-16328706-3
what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?
CREATE TABLE "heats" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" text );
SELECT "name" FROM "heats" WHERE "heat"<3 AND "rank"<18 AND "nationality"='east germany' AND "time"='2:35.31';
2-16328706-3
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='tranmere rovers';
2-16198456-6
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='tranmere rovers';
2-16198456-6
What date did the Boston Celtics play at Richfield Coliseum?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "date" FROM "game_log" WHERE "location"='richfield coliseum';
2-17344651-5