output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "years" FROM "engines" WHERE "displacement"='1816cc';
## Task Generate a SQL query to answer the following question: `Which years have a displacement of 1816cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power" text...
SELECT "power" FROM "engines" WHERE "fuel_system"='fuel injection' AND "displacement"='1991cc';
## Task Generate a SQL query to answer the following question: `How much power does the fuel injection system have with a displacement of 1991cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text...
SELECT "fuel_system" FROM "engines" WHERE "displacement"='1490cc';
## Task Generate a SQL query to answer the following question: `Which fuel system has a displacement of 1490cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displacement" text, "power"...
SELECT "fuel_system" FROM "engines" WHERE "displacement"='1500cc' AND "model"='berlina';
## Task Generate a SQL query to answer the following question: `Which fuel system has a displacement of 1500cc for the Berlina model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "engine" text, "displac...
SELECT MIN("industry") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2005 AND "agriculture">11;
## Task Generate a SQL query to answer the following question: `What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trend_of_regional_gross_value_added_of...
SELECT AVG("industry") FROM "trend_of_regional_gross_value_added_of_c" WHERE "agriculture">11;
## Task Generate a SQL query to answer the following question: `What is the average Industry, when Agriculture is greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trend_of_regional_gross_value_added_of_c" ( "year" real, "regional_gv...
SELECT AVG("services") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2003 AND "industry">'1,465' AND "regional_gva">'9,432';
## Task Generate a SQL query to answer the following question: `What is the average Services, when Year is greater than 2003, when Industry is greater than 1,465, and when Regional GVA is greater than 9,432?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TAB...
SELECT SUM("agriculture") FROM "trend_of_regional_gross_value_added_of_c" WHERE "regional_gva">'6,584' AND "services">'7,502' AND "industry">'1,565';
## Task Generate a SQL query to answer the following question: `What is the sum of Agriculture, when Regional GVA is greater than 6,584, when Services is greater than 7,502, and when Industry is greater than 1,565?` ### Database Schema This query will run on a database whose schema is represented in this string: CRE...
SELECT SUM("year") FROM "trend_of_regional_gross_value_added_of_c" WHERE "regional_gva"='6,584' AND "services"<'5,277';
## Task Generate a SQL query to answer the following question: `What is the sum of Year, when Regional GVA is 6,584, and when Services is less than 5,277?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trend_of_regional_gross_value_added_of_c" ( "ye...
SELECT MAX("regional_gva") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2000 AND "services"='7,502' AND "agriculture">11;
## Task Generate a SQL query to answer the following question: `What is the highest Regional GVA, when Year is greater than 2000, when Services is 7,502, and when Agriculture is greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trend_of_...
SELECT AVG("lost") FROM "ladder" WHERE "pct_pts">110.25;
## Task Generate a SQL query to answer the following question: `When the points scored was over 110.25%, what's the average amount lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladder" ( "team" text, "lost" real, "last_5" text, "streak"...
SELECT MIN("lost") FROM "ladder" WHERE "pct_pts"=93.45;
## Task Generate a SQL query to answer the following question: `If the points scored were 93.45%, what's the lowest amount of games lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladder" ( "team" text, "lost" real, "last_5" text, "streak...
SELECT COUNT("rank") FROM "highest_grossing_films" WHERE "director"='kevin costner';
## Task Generate a SQL query to answer the following question: `What is the rank of the film directed by Kevin Costner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films" ( "rank" real, "title" text, "studio" text, "directo...
SELECT "director" FROM "highest_grossing_films" WHERE "gross"='$200,512,643';
## Task Generate a SQL query to answer the following question: `What director grossed $200,512,643` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films" ( "rank" real, "title" text, "studio" text, "director" text, "gross" te...
SELECT AVG("rank") FROM "highest_grossing_films" WHERE "studio"='paramount' AND "gross"='$200,512,643';
## Task Generate a SQL query to answer the following question: `What is the average rank of the movie from Paramount Studios that grossed $200,512,643?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films" ( "rank" real, "title" t...
SELECT "director" FROM "highest_grossing_films" WHERE "title"='teenage mutant ninja turtles';
## Task Generate a SQL query to answer the following question: `Who directed Teenage Mutant Ninja Turtles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films" ( "rank" real, "title" text, "studio" text, "director" text, "g...
SELECT "director" FROM "highest_grossing_films" WHERE "rank">1 AND "studio"='universal' AND "gross"='$201,957,688';
## Task Generate a SQL query to answer the following question: `What director ranked higher than 1 from Universal Studios and grossed $201,957,688?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films" ( "rank" real, "title" text,...
SELECT "time_retired" FROM "moto_gp_classification" WHERE "manufacturer"='kawasaki' AND "rider"='garry mccoy';
## Task Generate a SQL query to answer the following question: `When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "man...
SELECT MAX("laps") FROM "moto_gp_classification" WHERE "rider"='garry mccoy';
## Task Generate a SQL query to answer the following question: `What's the highest amount of laps Garry Mccoy drove?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time...
SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid">10 AND "manufacturer"='proton kr';
## Task Generate a SQL query to answer the following question: `If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufactu...
SELECT "height" FROM "all_time" WHERE "year"=1974;
## Task Generate a SQL query to answer the following question: `The year 1974 has what listed as the Height?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time" ( "continent" text, "structure" text, "height" text, "year" real, "country"...
SELECT "country" FROM "all_time" WHERE "structure"='omega transmitter chabrier';
## Task Generate a SQL query to answer the following question: `The OMEGA transmitter Chabrier has what country listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time" ( "continent" text, "structure" text, "height" text, "year" real, ...
SELECT "structure" FROM "all_time" WHERE "year"<2009 AND "continent"='africa';
## Task Generate a SQL query to answer the following question: `Listed with a continent of Africa and before 2009 this structure is called what?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time" ( "continent" text, "structure" text, "heig...
SELECT "height" FROM "all_time" WHERE "year"=1972;
## Task Generate a SQL query to answer the following question: `The year 1972 has what written in Height column?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time" ( "continent" text, "structure" text, "height" text, "year" real, "coun...
SELECT "continent" FROM "all_time" WHERE "country"='united states';
## Task Generate a SQL query to answer the following question: `What is the Continent that also has the United States listed as a country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time" ( "continent" text, "structure" text, "height" te...
SELECT MAX("ends_won") FROM "standings" WHERE "ends_lost"=47 AND "shot_pct"<73;
## Task Generate a SQL query to answer the following question: `What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "country" text, "skip" text, "ends_won"...
SELECT "poll" FROM "ranking_movement" WHERE "april_14"='13';
## Task Generate a SQL query to answer the following question: `What Poll was on April 14 of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "mar_17" text, "mar_24" text, ...
SELECT "mar_17" FROM "ranking_movement" WHERE "april_21"='10';
## Task Generate a SQL query to answer the following question: `What is the rank for Mar 17 when the April 21 rank is 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "mar_17"...
SELECT "mar_24" FROM "ranking_movement" WHERE "may_26"='13' AND "may_12"='6';
## Task Generate a SQL query to answer the following question: `What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, ...
SELECT "april_28" FROM "ranking_movement" WHERE "mar_24"='17';
## Task Generate a SQL query to answer the following question: `What is the April 28 rank when the Mar 24 is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "mar_17" text, ...
SELECT "april_14" FROM "ranking_movement" WHERE "mar_3"='nr' AND "april_21"='13';
## Task Generate a SQL query to answer the following question: `What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" ...
SELECT "april_28" FROM "ranking_movement" WHERE "final"='20' AND "mar_17"='22';
## Task Generate a SQL query to answer the following question: `What is the April 28th rank when the Final is 20, and Mar 17 is 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, ...
SELECT COUNT("podiums") FROM "career_summary" WHERE "position"='2nd' AND "wins"<6 AND "poles">0;
## Task Generate a SQL query to answer the following question: `What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( ...
SELECT SUM("poles") FROM "career_summary" WHERE "season"<2004 AND "podiums"<1;
## Task Generate a SQL query to answer the following question: `What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "wins" rea...
SELECT AVG("poles") FROM "career_summary" WHERE "wins"=0 AND "position"='nc' AND "season"<2004;
## Task Generate a SQL query to answer the following question: `What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "wins...
SELECT SUM("poles") FROM "career_summary" WHERE "season"<2005 AND "position"='2nd' AND "wins"<6;
## Task Generate a SQL query to answer the following question: `What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" rea...
SELECT "2012_club" FROM "current" WHERE "pos"='cf';
## Task Generate a SQL query to answer the following question: `What is the 2012 club of the cf pos. player?` ### 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, "2012_club" text );...
SELECT "years_in_the_acc" FROM "members" WHERE "founded"<1885 AND "location"='college park, maryland';
## Task Generate a SQL query to answer the following question: `What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "institu...
SELECT "partnering" FROM "doubles_35_20_15" WHERE "tournament"='lyon, france';
## Task Generate a SQL query to answer the following question: `Who was the partner for the tournament in Lyon, France?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_35_20_15" ( "outcome" text, "date" text, "tournament" text, "surface...
SELECT "opponent" FROM "doubles_35_20_15" WHERE "tournament"='milan, italy';
## Task Generate a SQL query to answer the following question: `Who were the opponents for the event in Milan, Italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_35_20_15" ( "outcome" text, "date" text, "tournament" text, "surface" ...
SELECT "record" FROM "regular_season" WHERE "date"='december 1, 1968';
## Task Generate a SQL query to answer the following question: `What was the record on the date of december 1, 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "...
SELECT "record" FROM "regular_season" WHERE "date"='september 15, 1968';
## Task Generate a SQL query to answer the following question: `What was the record on the date of september 15, 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, ...
SELECT "record" FROM "regular_season" WHERE "date"='november 10, 1968';
## Task Generate a SQL query to answer the following question: `What was the record on the date of november 10, 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, ...
SELECT MIN("game") FROM "game_log" WHERE "date"='february 28';
## Task Generate a SQL query to answer the following question: `What was the first game played on February 28?` ### 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 SUM("points_2") FROM "final_table" WHERE "goals_for">52 AND "team"='altrincham';
## Task Generate a SQL query to answer the following question: `What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" r...
SELECT "date" FROM "game_log" WHERE "team"='@ detroit';
## Task Generate a SQL query to answer the following question: `What date was the team @ Detroit?` ### 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_reb...
SELECT "score" FROM "game_log" WHERE "high_assists"='maurice williams (7)';
## Task Generate a SQL query to answer the following question: `What was the score of the game when Maurice Williams (7) had 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, "s...
SELECT "record" FROM "game_log" WHERE "high_assists"='lebron james (4)';
## Task Generate a SQL query to answer the following question: `What was the record of the game when Lebron James (4) had 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, "scor...
SELECT COUNT("game") FROM "game_log" WHERE "team"='@ new york';
## Task Generate a SQL query to answer the following question: `What is the total of the game that the team was @ new york?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high...
SELECT SUM("round") FROM "nba_draft" WHERE "player"='joe taylor';
## Task Generate a SQL query to answer the following question: `Which round was Joe Taylor selected in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ...
SELECT "player" FROM "nba_draft" WHERE "pick">145 AND "college"='wake forest';
## Task Generate a SQL query to answer the following question: `Which player went to Wake Forest and was selected with a pick after 145?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nat...
SELECT COUNT("pick") FROM "nba_draft" WHERE "round"=6;
## Task Generate a SQL query to answer the following question: `How many picks were from round 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ###...
SELECT MAX("round") FROM "nba_draft" WHERE "college"='toledo' AND "pick"<92;
## Task Generate a SQL query to answer the following question: `What is the largest round of a pick smaller than 92 from Toledo University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "...
SELECT "nationality" FROM "nba_draft" WHERE "player"='dick walker';
## Task Generate a SQL query to answer the following question: `Which nationality is Dick Walker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ###...
SELECT "college" FROM "washington_redskins_draft_history" WHERE "pick">4 AND "overall"=21;
## Task Generate a SQL query to answer the following question: `What college has a pick greater than 4 and an overall of 21?` ### 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"...
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round"=3;
## Task Generate a SQL query to answer the following question: `What is the overall sum of round 3?` ### 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 "position" FROM "washington_redskins_draft_history" WHERE "round"<8 AND "overall"=48;
## Task Generate a SQL query to answer the following question: `What is the position of the player with a round less than 8 and an overall of 48?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pi...
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"<100 AND "college"='north carolina';
## Task Generate a SQL query to answer the following question: `What is the position of the player from the college of North Carolina with an overall less than 100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( ...
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "round"=17;
## Task Generate a SQL query to answer the following question: `What is the sum of the pick in round 17?` ### 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 "1st_leg" FROM "second_round" WHERE "team_2"='nov milenium';
## Task Generate a SQL query to answer the following question: `What was the 1st leg when team 2 was nov milenium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_...
SELECT "1st_leg" FROM "second_round" WHERE "team_1"='teteks';
## Task Generate a SQL query to answer the following question: `What was the 1st leg for a team 1 of Teteks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" t...
SELECT SUM("date_of_official_foundation_of_municipality") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "province"='kermān' AND "2006"=167014 AND "rank"<46;
## Task Generate a SQL query to answer the following question: `What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TA...
SELECT COUNT("rank") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "date_of_official_foundation_of_municipality">1926 AND "province"='sistan and baluchestan' AND "2006">567449;
## Task Generate a SQL query to answer the following question: `What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449?` ### Database Schema This query will run on a database whose schema is repr...
SELECT SUM("rank") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "province"='gīlān' AND "date_of_official_foundation_of_municipality">1922 AND "2006">557366;
## Task Generate a SQL query to answer the following question: `What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?` ### Database Schema This query will run on a database whose schema is represented in this string: CRE...
SELECT MAX("rank") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "date_of_official_foundation_of_municipality"=1952 AND "2006"<189120;
## Task Generate a SQL query to answer the following question: `What is the highest Rank, when Date of Official Foundation of Municipality is "1952", and when 2006 is less than 189120?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_between_100_...
SELECT "province" FROM "cities_between_100_000_and_1_000_000_pop" WHERE "2006"<153748 AND "date_of_official_foundation_of_municipality">1958 AND "city"='pakdasht';
## Task Generate a SQL query to answer the following question: `What is Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is "Pakdasht"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE...
SELECT "place" FROM "third_round" WHERE "score"='68-70-68=206';
## Task Generate a SQL query to answer the following question: `what is the place when the score is 68-70-68=206?` ### 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_pa...
SELECT "country" FROM "third_round" WHERE "score"='71-65-69=205';
## Task Generate a SQL query to answer the following question: `what is the country when the score is 71-65-69=205?` ### 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_...
SELECT "country" FROM "third_round" WHERE "score"='72-68-67=207';
## Task Generate a SQL query to answer the following question: `what is the country when the score is 72-68-67=207?` ### 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_...
SELECT "country" FROM "third_round" WHERE "score"='68-72-67=207';
## Task Generate a SQL query to answer the following question: `what is the country when the score is 68-72-67=207?` ### 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_...
SELECT "player" FROM "third_round" WHERE "place"='t5' AND "score"='69-66-71=206';
## Task Generate a SQL query to answer the following question: `who is the player when the place is t5 and the score is 69-66-71=206?` ### 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, "s...
SELECT MAX("laps") FROM "results" WHERE "class"='v8' AND "entrant"='diet-coke racing';
## Task Generate a SQL query to answer the following question: `What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "pos" text, "class" text, "...
SELECT "ties" FROM "senior_team_season_records" WHERE "wins"='0';
## Task Generate a SQL query to answer the following question: `What is the tie with a win of 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, "ties" text, "final_po...
SELECT "final_position" FROM "senior_team_season_records" WHERE "ties"='0' AND "wins"='5';
## Task Generate a SQL query to answer the following question: `What is the final position with ties of 0, and wins of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, ...
SELECT "ties" FROM "senior_team_season_records" WHERE "division"='bafl division two south';
## Task Generate a SQL query to answer the following question: `What are the ties for division of bafl division two south?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, ...
SELECT "final_position" FROM "senior_team_season_records" WHERE "season"='2008';
## Task Generate a SQL query to answer the following question: `What is the final position for the season 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, "ties" te...
SELECT "final_position" FROM "senior_team_season_records" WHERE "season"='2012';
## Task Generate a SQL query to answer the following question: `What is the final position for the season 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, "ties" te...
SELECT "division" FROM "senior_team_season_records" WHERE "wins"='2';
## Task Generate a SQL query to answer the following question: `What is the division with wins of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_team_season_records" ( "season" text, "division" text, "wins" text, "ties" text, "fina...
SELECT "location" FROM "overview" WHERE "stadium"='hietalahti stadium';
## Task Generate a SQL query to answer the following question: `What is the Location of the Hietalahti Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "location" text, "stadium" text, "capacity" real, "manage...
SELECT "location" FROM "overview" WHERE "capacity">'15,000' AND "stadium"='tapiolan urheilupuisto';
## Task Generate a SQL query to answer the following question: `What is the Location of the Tapiolan Urheilupuisto Stadium with a Capacity or more than 15,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "location" text...
SELECT "location" FROM "overview" WHERE "manager"='job dragtsma';
## Task Generate a SQL query to answer the following question: `What is the Location of the Stadium where Job Dragtsma is Manager?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "club" text, "location" text, "stadium" text, "capaci...
SELECT "react" FROM "semifinals" WHERE "lane"=3 AND "heat"=2;
## Task Generate a SQL query to answer the following question: `what is the react when the lane is 3 and heat is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "country" text, "mark" te...
SELECT MAX("lane") FROM "semifinals" WHERE "name"='johan wissman' AND "react"<0.242;
## Task Generate a SQL query to answer the following question: `what is the highest lane number for johan wissman when the react is less than 0.242?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" te...
SELECT MAX("heat") FROM "semifinals" WHERE "country"='united kingdom' AND "react"<0.232;
## Task Generate a SQL query to answer the following question: `what is the heat when the country is united kingdom and react is less than 0.232?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text,...
SELECT SUM("react") FROM "semifinals" WHERE "country"='sweden' AND "lane">6;
## Task Generate a SQL query to answer the following question: `what is the react when the country is sweden and the lane is higher than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "co...
SELECT "1st_leg" FROM "european_record" WHERE "competition"='uefa champions league' AND "club"='skonto riga';
## Task Generate a SQL query to answer the following question: `What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "competition" tex...
SELECT "season" FROM "european_record" WHERE "club"='renova';
## Task Generate a SQL query to answer the following question: `Which season has the Renova Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "club" text, "1st_leg" text,...
SELECT "season" FROM "european_record" WHERE "club"='werder bremen' AND "round"='2r';
## Task Generate a SQL query to answer the following question: `Which season has the Werder Bremen Club and is in Round 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "clu...
SELECT "round" FROM "european_record" WHERE "competition"='uefa cup' AND "club"='kolkheti-1913 poti';
## Task Generate a SQL query to answer the following question: `Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" t...
SELECT "pal_b_g_h" FROM "color_standards" WHERE "pal_i"='4.43361875mhz';
## Task Generate a SQL query to answer the following question: `What is the PAL B, G, H for the PAL I 4.43361875mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "color_standards" ( "ntsc_m" text, "pal_b_g_h" text, "pal_i" text, "pal_n" text,...
SELECT "pal_n" FROM "color_standards" WHERE "pal_b_g_h"='4.43361875mhz';
## Task Generate a SQL query to answer the following question: `Which PAL has a PAL B, G, H of 4.43361875mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "color_standards" ( "ntsc_m" text, "pal_b_g_h" text, "pal_i" text, "pal_n" text, "pal...
SELECT "pal_m" FROM "color_standards" WHERE "pal_i"='50hz';
## Task Generate a SQL query to answer the following question: `Which PAL M has a PAL I of 50HZ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "color_standards" ( "ntsc_m" text, "pal_b_g_h" text, "pal_i" text, "pal_n" text, "pal_m" text ); #...
SELECT "ntsc_m" FROM "color_standards" WHERE "pal_m"='525/60';
## Task Generate a SQL query to answer the following question: `What is the NTSC M for Pal M 525/60?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "color_standards" ( "ntsc_m" text, "pal_b_g_h" text, "pal_i" text, "pal_n" text, "pal_m" text ...
SELECT "pal_m" FROM "color_standards" WHERE "ntsc_m"='4.5mhz';
## Task Generate a SQL query to answer the following question: `What is the PAL M for the NTSC M 4.5mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "color_standards" ( "ntsc_m" text, "pal_b_g_h" text, "pal_i" text, "pal_n" text, "pal_m" t...
SELECT SUM("year") FROM "accolades" WHERE "rank"<19;
## Task Generate a SQL query to answer the following question: `What is the sum of Year, when Rank is less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, ...
SELECT SUM("year") FROM "accolades" WHERE "publication"='vh1' AND "rank">11;
## Task Generate a SQL query to answer the following question: `What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "publication" text, "country" text, ...
SELECT "accolade" FROM "accolades" WHERE "year"<2002 AND "publication"='rolling stone' AND "rank"=48;
## Task Generate a SQL query to answer the following question: `What is Accolade, when Year is less than 2002, when Publication is "Rolling Stone", and when Rank is "48"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "publication" text...
SELECT MIN("year") FROM "accolades" WHERE "rank">85;
## Task Generate a SQL query to answer the following question: `What is the lowest Year, when Rank is greater than 85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real...
SELECT "accolade" FROM "accolades" WHERE "country"='united states' AND "year"=1999;
## Task Generate a SQL query to answer the following question: `What is Accolade, when Country is "United States", and when Year is "1999"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade...
SELECT "pick" FROM "draft_picks" WHERE "player"='dexter bailey';
## Task Generate a SQL query to answer the following question: `What is Pick, when Player is "Dexter Bailey"?` ### 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" text, "nationality" text, "school...