output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "institution" FROM "list_of_a_star_talent_search_winners" WHERE "year">2010 AND "name"='cheng herng yi';
## Task Generate a SQL query to answer the following question: `What institution won in 2010 with student Cheng Herng Yi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_a_star_talent_search_winners" ( "year" real, "award" text, "name" te...
SELECT MIN("position") FROM "relegation_round" WHERE "name"='ehc straubing ii' AND "played"<10;
## Task Generate a SQL query to answer the following question: `What was the lowest postion of ehc straubing ii when they played less than 10 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, ...
SELECT AVG("drawn") FROM "relegation_round" WHERE "points"=12 AND "played"<10;
## Task Generate a SQL query to answer the following question: `What was the drawn amount for teams with points of 12 and played smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "p...
SELECT COUNT("played") FROM "relegation_round" WHERE "drawn"=2 AND "points"<16 AND "position">5;
## Task Generate a SQL query to answer the following question: `How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real...
SELECT "grid" FROM "classification" WHERE "driver"='buddy rice';
## Task Generate a SQL query to answer the following question: `What was the grid of Buddy Rice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time...
SELECT "team" FROM "classification" WHERE "fin_pos"='7';
## Task Generate a SQL query to answer the following question: `Which team had a driver with a finish position of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, ...
SELECT "time_retired" FROM "classification" WHERE "fin_pos"='19';
## Task Generate a SQL query to answer the following question: `What was the time of the driver with a finish position of 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team"...
SELECT "laps_led" FROM "classification" WHERE "fin_pos"='14';
## Task Generate a SQL query to answer the following question: `What were the number of laps led by the driver with a finish position of 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver"...
SELECT "team" FROM "classification" WHERE "fin_pos"='8';
## Task Generate a SQL query to answer the following question: `Which team had a finish position of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, ...
SELECT SUM("score") FROM "women_s_records" WHERE "event"='27 arrow match';
## Task Generate a SQL query to answer the following question: `For the 27 arrow match event, what's the sum of all scores for that event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_records" ( "event" text, "score" real, "name" text,...
SELECT "event" FROM "women_s_records" WHERE "score">673;
## Task Generate a SQL query to answer the following question: `Which event had a score of over 673 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_records" ( "event" text, "score" real, "name" text, "nation" text, "games" tex...
SELECT COUNT("premier_league") FROM "most_appearances" WHERE "uefa_cup"=10 AND "league_cup"<4;
## Task Generate a SQL query to answer the following question: `What is the total number of appearances in the premier league when there were 10 appearances at UEFA and less than 4 at league cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_app...
SELECT MAX("total") FROM "most_appearances" WHERE "fa_cup"<4;
## Task Generate a SQL query to answer the following question: `What is the highest total number of appearances when there were less than 4 at the FA cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "player" text, "position"...
SELECT "player" FROM "most_appearances" WHERE "fa_cup"<6 AND "premier_league"=33 AND "uefa_cup">5;
## Task Generate a SQL query to answer the following question: `What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "pla...
SELECT SUM("league_cup") FROM "most_appearances" WHERE "position"='defender' AND "uefa_cup"<10;
## Task Generate a SQL query to answer the following question: `What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( ...
SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "antibody"='rituximab';
## Task Generate a SQL query to answer the following question: `What's the target of the antibody rituximab?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval...
SELECT "target" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "brand_name"='mylotarg';
## Task Generate a SQL query to answer the following question: `What's the target for the brand mylotarg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text, "brand_name" text, "approval_da...
SELECT "type" FROM "cancer_immunotherapy_monoclonal_antibodi" WHERE "approval_date"<2006 AND "brand_name"='herceptin';
## Task Generate a SQL query to answer the following question: `What's the type for the brand herceptin with an approval date of before 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cancer_immunotherapy_monoclonal_antibodi" ( "antibody" text,...
SELECT "position" FROM "huskers_in_the" WHERE "overall"<590 AND "round"=3;
## Task Generate a SQL query to answer the following question: `What is Position, when Overall is less than 590, and when Round is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, ...
SELECT "player" FROM "huskers_in_the" WHERE "mlb_team"='florida marlins' AND "round"<15;
## Task Generate a SQL query to answer the following question: `What is Player, when MLB Team is "Florida Marlins", and when Round is less than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "huskers_in_the" ( "player" text, "position" text, ...
SELECT MIN("overall") FROM "huskers_in_the" WHERE "player"='dan jennings' AND "round">9;
## Task Generate a SQL query to answer the following question: `What is the lowest Overall, when Player is "Dan Jennings", and when Round is greater than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "huskers_in_the" ( "player" text, "position"...
SELECT COUNT("round") FROM "huskers_in_the" WHERE "position"='2b';
## Task Generate a SQL query to answer the following question: `What is the total number of Round, when Position is 2B?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "huskers_in_the" ( "player" text, "position" text, "round" real, "overall" re...
SELECT MAX("points") FROM "point_standings" WHERE "driver"='justin lofton' AND "top_10"<5;
## Task Generate a SQL query to answer the following question: `What are the highest points for Justin Lofton when his top 10 is lower than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "point_standings" ( "driver" text, "points" real, "wins"...
SELECT MIN("top_5") FROM "point_standings" WHERE "wins">0 AND "driver"='frank kimmel' AND "top_10"<14;
## Task Generate a SQL query to answer the following question: `What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "point_standings" ( "driver" text, "points" real, ...
SELECT MIN("top_10") FROM "point_standings" WHERE "wins"<4 AND "points"<3260 AND "top_5">0;
## Task Generate a SQL query to answer the following question: `What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 for top 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "point_standings" ( "driver" text, "p...
SELECT MIN("lane") FROM "heats" WHERE "mark"='7.35';
## Task Generate a SQL query to answer the following question: `When the mark is 7.35, what's the lowest Lane found?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text )...
SELECT MIN("lane") FROM "heats" WHERE "mark"='8.09 pb';
## Task Generate a SQL query to answer the following question: `What's the lowest lane found for a mark of 8.09 pb?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text );...
SELECT SUM("heat") FROM "heats" WHERE "name"='ivet lalova';
## Task Generate a SQL query to answer the following question: `What's the sum of all of ivet lalova's Heat stats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); ...
SELECT COUNT("heat") FROM "heats" WHERE "country"='british virgin islands';
## Task Generate a SQL query to answer the following question: `What's the total number of Heat recorded for the british virgin islands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" t...
SELECT COUNT("heat") FROM "heats" WHERE "mark"='7.29' AND "name"='virgen benavides' AND "lane"<2;
## Task Generate a SQL query to answer the following question: `When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real...
SELECT "time" FROM "achievements" WHERE "competition"='european cup' AND "venue"='moscow';
## Task Generate a SQL query to answer the following question: `What's the Time for the Competition of european cup and has a Venue of Moscow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue...
SELECT "time" FROM "achievements" WHERE "event"='4x100 m relay' AND "venue"='frankfurt';
## Task Generate a SQL query to answer the following question: `What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" t...
SELECT "competition" FROM "achievements" WHERE "event"='4x100 m relay' AND "time"='38.89';
## Task Generate a SQL query to answer the following question: `What Competition has an Event of 4x100 m relay and has the Time of 38.89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" tex...
SELECT MIN("year") FROM "achievements" WHERE "venue"='casablanca' AND "time"='20.63w';
## Task Generate a SQL query to answer the following question: `What's the lowest Year with a Venue of casablanca and has the Time of 20.63w?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue...
SELECT "college_junior_club_team" FROM "draft_picks" WHERE "nationality"='united states';
## Task Generate a SQL query to answer the following question: `What was the College/junior/club team of the player with the united states nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "pla...
SELECT MIN("pick") FROM "draft_picks" WHERE "round">7 AND "nationality"='united states';
## Task Generate a SQL query to answer the following question: `What was the lowest pick number for a united states player picked before round 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" t...
SELECT "country" FROM "final_leaderboard" WHERE "score"='69-71-72-69=281';
## Task Generate a SQL query to answer the following question: `What country was the player with the score line 69-71-72-69=281 from?` ### 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...
SELECT "score" FROM "final_leaderboard" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `What was the score of the player from South Africa?` ### 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, ...
SELECT "country" FROM "final_leaderboard" WHERE "score"='73-74-72-64=283';
## Task Generate a SQL query to answer the following question: `What country did the player with the score line 73-74-72-64=283 from?` ### 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...
SELECT "pro_stock_motorcycle" FROM "winners" WHERE "pro_stock"='tom martino';
## Task Generate a SQL query to answer the following question: `Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_sto...
SELECT "funny_car" FROM "winners" WHERE "year"=2012;
## Task Generate a SQL query to answer the following question: `Who won Funny Car in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro_stock" text, "pro_stock_motorcycle" tex...
SELECT "funny_car" FROM "winners" WHERE "pro_stock"='jim yates' AND "year">1996;
## Task Generate a SQL query to answer the following question: `Who won Funny Car when Jim Yates won Pro Stock, in years after 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, "pro...
SELECT "pro_stock" FROM "winners" WHERE "top_fuel"='tony schumacher' AND "funny_car"='tony pedregon';
## Task Generate a SQL query to answer the following question: `Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "top_fuel" text, "fun...
SELECT "year" FROM "winners" WHERE "funny_car"='john force' AND "top_fuel"='mike dunn';
## Task Generate a SQL query to answer the following question: `In which year did John Force win Funny Car and Mike Dunn win in Top Fuel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "top_fuel" text, "funny_car" text, ...
SELECT COUNT("races") FROM "by_seasons_and_teams" WHERE "poles"=0 AND "season"='2006' AND "podiums">0;
## Task Generate a SQL query to answer the following question: `What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_seasons_and_teams" ( "season" text, "races...
SELECT MAX("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"=0 AND "races">15 AND "podiums">2;
## Task Generate a SQL query to answer the following question: `What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_seasons_and_teams" (...
SELECT SUM("races") FROM "by_seasons_and_teams" WHERE "poles">1 AND "fastest_laps"<4;
## Task Generate a SQL query to answer the following question: `What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_seasons_and_teams" ( ...
SELECT AVG("fastest_laps") FROM "by_seasons_and_teams" WHERE "poles"<0;
## Task Generate a SQL query to answer the following question: `What was the average number of fastest laps with less than 0 poles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, ...
SELECT MIN("poles") FROM "by_seasons_and_teams" WHERE "fastest_laps"<0;
## Task Generate a SQL query to answer the following question: `What is the smallest number of poles when the fastest laps are less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins...
SELECT SUM("wins") FROM "by_seasons_and_teams" WHERE "fastest_laps"=0 AND "races"<16 AND "season"='2007' AND "podiums"<0;
## Task Generate a SQL query to answer the following question: `What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there are less than 16 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TA...
SELECT "surface" FROM "doubles_finals_6_2" WHERE "partner"='hayley ericksen';
## Task Generate a SQL query to answer the following question: `What surface did hayley ericksen play on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "p...
SELECT "opponents_in_the_final" FROM "doubles_finals_6_2" WHERE "surface"='hard' AND "score"='6-4, 7-6(2)';
## Task Generate a SQL query to answer the following question: `Who were the opponents on a hard surface with a score of 6-4, 7-6(2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" ...
SELECT "score" FROM "doubles_finals_6_2" WHERE "partner"='hayley ericksen';
## Task Generate a SQL query to answer the following question: `What was hayley ericksen's score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" ...
SELECT "silver" FROM "women" WHERE "bronze"='katie curtis unknown';
## Task Generate a SQL query to answer the following question: `Who won the Silver the Year Katie Curtis Unknown won the Bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "location" text, "gold" text, "silver" text, ...
SELECT "round" FROM "washington_redskins_draft_history" WHERE "name"='greg huntington';
## Task Generate a SQL query to answer the following question: `Round that greg huntington went in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "...
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "college"='penn state';
## Task Generate a SQL query to answer the following question: `Total overall from penn state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "posit...
SELECT COUNT("seasons") FROM "coaching_history" WHERE "coach"='pat chambers';
## Task Generate a SQL query to answer the following question: `How many seasons did Pat Chambers coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaching_history" ( "coach" text, "years" text, "seasons" real, "record" text, "pct" real...
SELECT "to_par" FROM "third_round" WHERE "score"='68-74-69=211';
## Task Generate a SQL query to answer the following question: `What was the to par that goes with the score 68-74-69=211?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text,...
SELECT "country" FROM "third_round" WHERE "player"='paul stankowski';
## Task Generate a SQL query to answer the following question: `What country is Paul Stankowski from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); #...
SELECT "place" FROM "third_round" WHERE "score"='70-66-65=201';
## Task Generate a SQL query to answer the following question: `What place goes with the score of 70-66-65=201?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par"...
SELECT "score" FROM "third_round" WHERE "to_par"='e' AND "player"='fred funk';
## Task Generate a SQL query to answer the following question: `When Fred Funk had a to par of E, what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "t...
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='scott junk';
## Task Generate a SQL query to answer the following question: `Where is the location where Scott Junk was 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" text, "m...
SELECT "score" FROM "second_round_proper" WHERE "date"='14 december 1974' AND "away_team"='crystal palace';
## Task Generate a SQL query to answer the following question: `what is the score on 14 december 1974 and the away team is crystal palace?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "sc...
SELECT "date" FROM "second_round_proper" WHERE "away_team"='crystal palace';
## Task Generate a SQL query to answer the following question: `what is the date when the away team is crystal palace?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_t...
SELECT "height" FROM "current" WHERE "2012_club"='asd roma';
## Task Generate a SQL query to answer the following question: `What is the height of the player with the 2012 club of asd roma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current" ( "name" text, "pos" text, "height" text, "weight" text, ...
SELECT "tie_no" FROM "fourth_round_proper" WHERE "away_team"='bradford city';
## Task Generate a SQL query to answer the following question: `What was the Tie Number of the Bradford City away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_...
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "away_team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "ho...
SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='4';
## Task Generate a SQL query to answer the following question: `What date has a Tie Number of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" te...
SELECT AVG("money") FROM "final_leaderboard" WHERE "player"='tom weiskopf';
## Task Generate a SQL query to answer the following question: `What is the average money ($) that Tom Weiskopf made?` ### 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...
SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='+2' AND "score"='73-74-71-72=290';
## Task Generate a SQL query to answer the following question: `What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place"...
SELECT "short_scale" FROM "cardinal_numbers" WHERE "number_notation">'1,000,000' AND "power_notation"='10 12';
## Task Generate a SQL query to answer the following question: `For the number notion more than 1,000,000 with a power notion of 10 12, what is the short scale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_numbers" ( "number_notation" rea...
SELECT "power_notation" FROM "cardinal_numbers" WHERE "long_scale"='one million';
## Task Generate a SQL query to answer the following question: `For a long scale of one million, what is the power notion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_s...
SELECT "long_scale" FROM "cardinal_numbers" WHERE "power_notation"='10 12';
## Task Generate a SQL query to answer the following question: `For a power notation of 10 12, what is the long scale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_notation" text, "short_scale...
SELECT "long_scale" FROM "cardinal_numbers" WHERE "short_scale"='one quadrillion a thousand trillion';
## Task Generate a SQL query to answer the following question: `For a short scale of one quadrillion a thousand trillion, what is the Long scale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_numbers" ( "number_notation" real, "power_not...
SELECT "employee_real_name" FROM "draft_lottery" WHERE "pick_num">10 AND "brand_to"='raw';
## Task Generate a SQL query to answer the following question: `what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_lottery" ( "pick_num" real, "brand_t...
SELECT "opponent_team" FROM "uefa_cup" WHERE "scorers"='ronaldinho 90+3''';
## Task Generate a SQL query to answer the following question: `Who was the opposing team when the scorer was ronaldinho 90+3'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_cup" ( "match" real, "date" text, "round" text, "home_away" tex...
SELECT "opponent_team" FROM "uefa_cup" WHERE "scorers"='jong-a-pin 19''( o.g. ) , gattuso 23'' , inzaghi 69''';
## Task Generate a SQL query to answer the following question: `Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "uefa_cup" ( "match" real, "date" tex...
SELECT "score" FROM "third_round_proper" WHERE "home_team"='altrincham';
## Task Generate a SQL query to answer the following question: `What was the score when Altrincham was home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, ...
SELECT MAX("goals_against") FROM "premier_division_final_table" WHERE "drawn"<3;
## Task Generate a SQL query to answer the following question: `How many goals against when the draws are fewer than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premier_division_final_table" ( "position" real, "team" text, "played" real, ...
SELECT SUM("goals_for") FROM "premier_division_final_table" WHERE "points_1"=38 AND "played"<42;
## Task Generate a SQL query to answer the following question: `How many goals when the points 1 is 38 and the played number is less than 42?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premier_division_final_table" ( "position" real, "team" te...
SELECT MIN("goals_for") FROM "premier_division_final_table" WHERE "goal_difference"='+10' AND "goals_against">61;
## Task Generate a SQL query to answer the following question: `What is the fewest goals for when goal difference is +10 and goals against is more than 61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premier_division_final_table" ( "position" rea...
SELECT MIN("goals_for") FROM "premier_division_final_table" WHERE "goals_against"=75 AND "drawn"<11;
## Task Generate a SQL query to answer the following question: `What is the fewest goals for when goals against is 75 and drawn is smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premier_division_final_table" ( "position" real, "te...
SELECT MAX("goals_for") FROM "group_ii" WHERE "position">10 AND "goal_difference"<-24 AND "played">30;
## Task Generate a SQL query to answer the following question: `What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position...
SELECT MIN("goals_for") FROM "group_ii" WHERE "played">30;
## Task Generate a SQL query to answer the following question: `What is the lowest goals for more than 30 games played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" real, "d...
SELECT MAX("goals_for") FROM "group_ii" WHERE "position">8 AND "losses"=12 AND "played"<30;
## Task Generate a SQL query to answer the following question: `What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "pla...
SELECT COUNT("losses") FROM "group_ii" WHERE "played">30;
## Task Generate a SQL query to answer the following question: `What is the total number of losses for the over 30 games played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "played" real, "points" real, "wins" r...
SELECT COUNT("losses") FROM "group_ii" WHERE "draws"<7 AND "points">26 AND "goals_for"=60 AND "position"<4;
## Task Generate a SQL query to answer the following question: `What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position"...
SELECT MAX("bronze") FROM "medal_table" WHERE "gold">0 AND "total"=15 AND "silver"<5;
## Task Generate a SQL query to answer the following question: `What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, ...
SELECT "score" FROM "game_log" WHERE "high_points"='dwight howard (25)';
## Task Generate a SQL query to answer the following question: `What is Score, when High Points is "Dwight Howard (25)"?` ### 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 "score" FROM "game_log" WHERE "team"='washington';
## Task Generate a SQL query to answer the following question: `What is Score, when Team is "Washington"?` ### 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, "...
SELECT "record" FROM "game_log" WHERE "location_attendance"='pepsi center 19,749';
## Task Generate a SQL query to answer the following question: `What is Record, when Location Attendance is "Pepsi Center 19,749"?` ### 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, ...
SELECT "record" FROM "game_log" WHERE "game"=36;
## Task Generate a SQL query to answer the following question: `What is Record, when Game is "36"?` ### 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, "high_re...
SELECT "date" FROM "pga_tour_wins_9" WHERE "winning_score"='−14 (68-68-67-71=274)';
## Task Generate a SQL query to answer the following question: `What is Date, when Winning Score is −14 (68-68-67-71=274)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, ...
SELECT "margin_of_victory" FROM "pga_tour_wins_9" WHERE "tournament"='mercedes championships (3)';
## Task Generate a SQL query to answer the following question: `What is the Margin of Victory, when Tournament is Mercedes Championships (3)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winn...
SELECT "date" FROM "pga_tour_wins_9" WHERE "tournament"='greenbrier classic';
## Task Generate a SQL query to answer the following question: `What is Date, when Tournament, is Greenbrier Classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "marg...
SELECT "runner_s_up" FROM "pga_tour_wins_9" WHERE "margin_of_victory"='6 strokes';
## Task Generate a SQL query to answer the following question: `What is Runner(s)-Up when Margin of Victory is 6 Strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "...
SELECT "date" FROM "pga_tour_wins_9" WHERE "runner_s_up"='jonathan kaye';
## Task Generate a SQL query to answer the following question: `What is Date, when Runner(s)-Up is Jonathan Kaye?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_9" ( "date" text, "tournament" text, "winning_score" text, "margin_o...
SELECT MAX("year_named") FROM "colles" WHERE "name"='nahete colles';
## Task Generate a SQL query to answer the following question: `What is the year that nahete colles was named?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "colles" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year...
SELECT MAX("year_named") FROM "colles" WHERE "latitude"='76.0n' AND "diameter_km">548;
## Task Generate a SQL query to answer the following question: `What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "colles" ( "name" text, "latit...
SELECT "diameter_km" FROM "colles" WHERE "name"='t''ien hu colles';
## Task Generate a SQL query to answer the following question: `What is the diameter in km of t'ien hu colles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "colles" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year...