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