output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "1935" FROM "grand_tour_results_timeline" WHERE "1953"='4';
## Task Generate a SQL query to answer the following question: `What 1935 has 4 as a 1953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "1940...
SELECT "1953" FROM "grand_tour_results_timeline" WHERE "1949"='2' AND "1952"='3';
## Task Generate a SQL query to answer the following question: `What 1953 has 2 as a 1949, and 3 as 1952?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939...
SELECT "1941" FROM "grand_tour_results_timeline" WHERE "1945"='n/a' AND "1948"='n/a' AND "1953"='9';
## Task Generate a SQL query to answer the following question: `What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938...
SELECT "1951" FROM "grand_tour_results_timeline" WHERE "1948"='dne';
## Task Generate a SQL query to answer the following question: `What 1951 has dne for 1948?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "194...
SELECT "cup_apps_sub" FROM "playing_career_statistics" WHERE "cup_goals"='2';
## Task Generate a SQL query to answer the following question: `Which Cup Apps (sub) had 2 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playing_career_statistics" ( "season" text, "league_apps_sub" text, "league_goals" text, "cup_apps...
SELECT "total_apps_sub" FROM "playing_career_statistics" WHERE "total_goals"='6';
## Task Generate a SQL query to answer the following question: `Which Total Apps (sub) has 6 goals total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playing_career_statistics" ( "season" text, "league_apps_sub" text, "league_goals" text, "...
SELECT "airline" FROM "south_korea" WHERE "iata"='bx';
## Task Generate a SQL query to answer the following question: `What airline has a IATA of BX?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" te...
SELECT "icao" FROM "south_korea" WHERE "airline"='asiana airlines';
## Task Generate a SQL query to answer the following question: `What is the ICAO for Asiana Airlines?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operati...
SELECT "commenced_operations" FROM "south_korea" WHERE "icao"='kal';
## Task Generate a SQL query to answer the following question: `What is the commenced operation where the ICAO is KAL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "...
SELECT "icao" FROM "south_korea" WHERE "callsign"='air busan';
## Task Generate a SQL query to answer the following question: `What is the ICAO for Air Busan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" t...
SELECT "callsign" FROM "south_korea" WHERE "icao"='aar';
## Task Generate a SQL query to answer the following question: `What is the callsign where the ICAO is AAR?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_o...
SELECT MAX("goals") FROM "scorers" WHERE "player"='danny williams' AND "field_goals">0;
## Task Generate a SQL query to answer the following question: `What is the highest Goal for danny williams, with more than 0 Field Goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real, "fi...
SELECT AVG("tries") FROM "scorers" WHERE "goals"<0;
## Task Generate a SQL query to answer the following question: `What is the average Tries with less than 0 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real, "field_goals" real, "point...
SELECT COUNT("points") FROM "scorers" WHERE "tries"<1 AND "goals">0;
## Task Generate a SQL query to answer the following question: `What is the total number of Points with less than 1 tries, and more than 0 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real...
SELECT "club_province" FROM "current_squad" WHERE "caps">9 AND "player"='ben franks';
## Task Generate a SQL query to answer the following question: `Which club/province has more than 9 caps and Ben Franks as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_squad" ( "player" text, "position" text, "date_of_birth_a...
SELECT "tournament" FROM "pga_tour_wins_12" WHERE "runner_s_up"='ian baker-finch';
## Task Generate a SQL query to answer the following question: `In which tournament was Ian Baker-Finch the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "ma...
SELECT "tournament" FROM "pga_tour_wins_12" WHERE "date"='feb 3, 1991';
## Task Generate a SQL query to answer the following question: `What tournament was played on Feb 3, 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_vict...
SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "tournament"='phoenix open';
## Task Generate a SQL query to answer the following question: `In the Phoenix Open, what was the winning score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_o...
SELECT "margin_of_victory" FROM "pga_tour_wins_12" WHERE "runner_s_up"='stuart appleby';
## Task Generate a SQL query to answer the following question: `In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" ...
SELECT MIN("played") FROM "campeonato_paulista" WHERE "points">30;
## Task Generate a SQL query to answer the following question: `What is the lowest number played with more than 30 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "play...
SELECT MAX("lost") FROM "campeonato_paulista" WHERE "points">29 AND "against"<19;
## Task Generate a SQL query to answer the following question: `What is the highest number lost with more than 29 points and an against less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" tex...
SELECT COUNT("played") FROM "campeonato_paulista" WHERE "difference"='22' AND "against"<34;
## Task Generate a SQL query to answer the following question: `What is the total number played with a difference of 22 and less than 34 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, ...
SELECT "western_title" FROM "i_que_ds" WHERE "pinyin"='new chāojí mǎlìōu xiōngdì';
## Task Generate a SQL query to answer the following question: `What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" te...
SELECT "genre" FROM "i_que_ds" WHERE "game_modes"='single-player' AND "chinese_title"='摸摸瓦力欧制造';
## Task Generate a SQL query to answer the following question: `What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" t...
SELECT "pinyin" FROM "i_que_ds" WHERE "chinese_title"='直感一笔';
## Task Generate a SQL query to answer the following question: `What is the pinyin for the Chinese title 直感一笔?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date...
SELECT "released_date" FROM "i_que_ds" WHERE "chinese_title"='摸摸瓦力欧制造';
## Task Generate a SQL query to answer the following question: `What is the release date for the Chinese title 摸摸瓦力欧制造?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "rele...
SELECT "western_title" FROM "i_que_ds" WHERE "genre"='puzzle';
## Task Generate a SQL query to answer the following question: `What is the western title for the puzzle genre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_dat...
SELECT SUM("laps") FROM "superbike_race_2_classification" WHERE "time"='+7.277' AND "grid">6;
## Task Generate a SQL query to answer the following question: `What is the total number of laps for the time of +7.277 and the grid number of more than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_2_classification" ( "rider" tex...
SELECT MIN("grid") FROM "superbike_race_2_classification" WHERE "time"='+8.051' AND "laps"<23;
## Task Generate a SQL query to answer the following question: `What is the smallest grid when the time is +8.051 and there were less than 23 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bi...
SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=205 AND "rank">9;
## Task Generate a SQL query to answer the following question: `What is the average number of goals for players ranked above 9 and playing more than 205 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ...
SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<205 AND "goals"<100;
## Task Generate a SQL query to answer the following question: `What is the average rank for players with under 205 matches and under 100 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, ...
SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<10 AND "matches">271 AND "goals"=152;
## Task Generate a SQL query to answer the following question: `What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ...
SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "communist_ticket"='elizabeth gurley flynn';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, ...
SELECT "communist_ticket" FROM "1942_state_election_results" WHERE "american_labor_ticket"='joseph v. o''leary';
## Task Generate a SQL query to answer the following question: `Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, ...
SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "democratic_ticket"='flora d. johnson';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Democratic ticket of flora d. johnson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "demo...
SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "communist_ticket"='(none)' AND "socialist_ticket"='joseph g. glass';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942_state_election_results" ( "...
SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "democratic_ticket"='matthew j. merritt';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Democratic ticket of matthew j. merritt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "de...
SELECT "giant_slalom" FROM "season_standings" WHERE "super_g"='37';
## Task Generate a SQL query to answer the following question: `What is the giant slalom with a 37 super g?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, ...
SELECT "season" FROM "european_history" WHERE "round"='first round' AND "result"='4–1, 0–1';
## Task Generate a SQL query to answer the following question: `What season had a game in the first round with a result of 4–1, 0–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, ...
SELECT "country" FROM "european_history" WHERE "opponent"='sampdoria';
## Task Generate a SQL query to answer the following question: `What country had an opponent of Sampdoria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "resu...
SELECT "opponent" FROM "european_history" WHERE "round"='second round';
## Task Generate a SQL query to answer the following question: `Who was the opponent during the second round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "r...
SELECT "result" FROM "european_history" WHERE "round"='second round';
## Task Generate a SQL query to answer the following question: `What was the result of the second round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "result...
SELECT "opponent" FROM "schedule" WHERE "attendance"='26,880';
## Task Generate a SQL query to answer the following question: `What Opponent has an Attendance that is 26,880?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance"...
SELECT "nation" FROM "record_progression" WHERE "record"='5.06m(16ft7in)';
## Task Generate a SQL query to answer the following question: `What nation has a Record of 5.06m(16ft7in)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "dat...
SELECT "date" FROM "record_progression" WHERE "nation"='russia' AND "venue"='madrid , spain';
## Task Generate a SQL query to answer the following question: `What is the Date when Russia was the nation and the venue was madrid , spain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_progression" ( "record" text, "athlete" text, "na...
SELECT "date" FROM "record_progression" WHERE "athlete"='yelena isinbayeva' AND "record"='4.90m(16ft0¾in)';
## Task Generate a SQL query to answer the following question: `What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_progression" ( "record" text, "athlete...
SELECT "nation" FROM "record_progression" WHERE "athlete"='emma george' AND "record"='4.58m(15ft0¼in)';
## Task Generate a SQL query to answer the following question: `What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_progression" ( "record" text, "athlete" tex...
SELECT "tied" FROM "summary_of_results" WHERE "losses"='8' AND "win_pct"='50%';
## Task Generate a SQL query to answer the following question: `Who tied with 8 losses and 50% wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ...
SELECT "wins" FROM "summary_of_results" WHERE "losses"='ipl';
## Task Generate a SQL query to answer the following question: `Which win has a loss of IPL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); ### S...
SELECT "wins" FROM "summary_of_results" WHERE "win_pct"='38.67%';
## Task Generate a SQL query to answer the following question: `Which win has 38.67% wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); ### SQL...
SELECT "win_pct" FROM "summary_of_results" WHERE "losses"='48';
## Task Generate a SQL query to answer the following question: `What percentage of wins has 48 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" tex...
SELECT "tied" FROM "summary_of_results" WHERE "played"='15';
## Task Generate a SQL query to answer the following question: `What was tied at 15 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); ### SQ...
SELECT AVG("round") FROM "nfl_draft" WHERE "player"='john markham';
## Task Generate a SQL query to answer the following question: `What was the average round for john markham draft pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "s...
SELECT "school" FROM "nfl_draft" WHERE "pick"<125 AND "player"='will allen';
## Task Generate a SQL query to answer the following question: `What school did draft pick before 125, will allen go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "...
SELECT "school" FROM "nfl_draft" WHERE "round"=3;
## Task Generate a SQL query to answer the following question: `What school did draft pick from round 3 go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" te...
SELECT MIN("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "total"<22 AND "league_cup"<0;
## Task Generate a SQL query to answer the following question: `What is the lowest number of FA Trophy matches for a player with a total number of matches under 22 and less than 0 league cups.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "topscorers_...
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='paulistano' AND "points">39;
## Task Generate a SQL query to answer the following question: `What is the fewest games lost by Paulistano with more than 39 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" re...
SELECT SUM("against") FROM "campeonato_paulista" WHERE "played">22;
## Task Generate a SQL query to answer the following question: `How many games were played against when the team played more than 22 total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "poin...
SELECT MAX("against") FROM "campeonato_paulista" WHERE "difference"='58' AND "played">22;
## Task Generate a SQL query to answer the following question: `What was the highest number of against when the difference was 58 and the total played was more than 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position"...
SELECT "score" FROM "national_basketball_association" WHERE "winning_team"='san antonio spurs';
## Task Generate a SQL query to answer the following question: `What is the Score with a Winning team that is san antonio spurs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_basketball_association" ( "year" real, "winning_team" text, ...
SELECT "result" FROM "schedule" WHERE "attendance"='60,705';
## Task Generate a SQL query to answer the following question: `Which Result has an Attendance of 60,705?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ...
SELECT AVG("week") FROM "schedule" WHERE "result"='w 17–13';
## Task Generate a SQL query to answer the following question: `How many Weeks have a Result of w 17–13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text )...
SELECT "opponent" FROM "schedule" WHERE "week">3 AND "date"='october 6, 1991';
## Task Generate a SQL query to answer the following question: `Which Opponent that has a Week larger than 3 on october 6, 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" tex...
SELECT "date" FROM "schedule" WHERE "attendance"='45,795';
## Task Generate a SQL query to answer the following question: `When has Attendances of 45,795?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL...
SELECT MAX("week") FROM "schedule" WHERE "result"='l 24–20' AND "opponent"='at new england patriots';
## Task Generate a SQL query to answer the following question: `In what Week has a Result of l 24–20, and a Opponent of at new england patriots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text...
SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "goals"<160;
## Task Generate a SQL query to answer the following question: `What years were the goals less then 160?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matche...
SELECT "iata" FROM "destinations" WHERE "icao"='hlls';
## Task Generate a SQL query to answer the following question: `What is the IATA code for the airport with an ICAO code of HLLS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" te...
SELECT "airport" FROM "destinations" WHERE "city"='sabha';
## Task Generate a SQL query to answer the following question: `What airport is in Sabha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given t...
SELECT "icao" FROM "destinations" WHERE "iata"='rba';
## Task Generate a SQL query to answer the following question: `What is the ICAO code for the airport with RBA as its IATA code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" te...
SELECT "country" FROM "destinations" WHERE "city"='istanbul';
## Task Generate a SQL query to answer the following question: `What country is Istanbul in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Give...
SELECT "airport" FROM "destinations" WHERE "iata"='seb';
## Task Generate a SQL query to answer the following question: `Which airport has SEB as its IATA code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); #...
SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='winston-salem state';
## Task Generate a SQL query to answer the following question: `What position does the player from Winston-Salem State play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text,...
SELECT SUM("points") FROM "references" WHERE "song"='\"why did you have to go?\"';
## Task Generate a SQL query to answer the following question: `What was the sum of the points for the song "why did you have to go?"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "poi...
SELECT COUNT("points") FROM "references" WHERE "rank"='6th' AND "draw"<5;
## Task Generate a SQL query to answer the following question: `What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "draw" real, "so...
SELECT AVG("year") FROM "tallest_buildings" WHERE "floors">75;
## Task Generate a SQL query to answer the following question: `When was the average year that the number of floors was greater than 75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_feet...
SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='venetian tower';
## Task Generate a SQL query to answer the following question: `What is the average number of floors of the Venetian tower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_feet" text, "fl...
SELECT "arena" FROM "teams" WHERE "founded"=2000;
## Task Generate a SQL query to answer the following question: `Which arena was founded in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "club" text, "home_town" text, "arena" text, "founded" real, "rank" text ); ### SQL Give...
SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"='427' AND "goals"<320;
## Task Generate a SQL query to answer the following question: `Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_...
SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "rank"=1;
## Task Generate a SQL query to answer the following question: `Can you tell me the Matches that has the Rank of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text...
SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<6 AND "years"='1943-62';
## Task Generate a SQL query to answer the following question: `Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank"...
SELECT "class" FROM "past_fleet" WHERE "number"<4 AND "built"='1988';
## Task Generate a SQL query to answer the following question: `Which class had a number under 4 and was built in 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" real, "wit...
SELECT COUNT("withdrawn") FROM "past_fleet" WHERE "number">5;
## Task Generate a SQL query to answer the following question: `How many items withdrawn had numbers over 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" real, "withdrawn" rea...
SELECT SUM("number") FROM "past_fleet" WHERE "type"='driving van trailer';
## Task Generate a SQL query to answer the following question: `What is the sum of numbers that had a type of Driving Van Trailer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" r...
SELECT COUNT("rank") FROM "ice_dancing" WHERE "silver"=1 AND "total">3 AND "gold">2;
## Task Generate a SQL query to answer the following question: `What rank has 1 silver, more than 2 gold, and a total larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver...
SELECT MAX("gold") FROM "ice_dancing" WHERE "silver"<0;
## Task Generate a SQL query to answer the following question: `What is the most gold where silver is 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "...
SELECT COUNT("silver") FROM "ice_dancing" WHERE "rank">4 AND "bronze"<1;
## Task Generate a SQL query to answer the following question: `What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, ...
SELECT AVG("rank") FROM "ice_dancing" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the rank where the gold is 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "tot...
SELECT COUNT("rank") FROM "ice_dancing" WHERE "bronze"=1 AND "silver">1;
## Task Generate a SQL query to answer the following question: `What is the rank that has 1 bronze and 1 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" r...
SELECT SUM("launch_failures") FROM "satellites_by_block" WHERE "launched"=4 AND "not_usable">0;
## Task Generate a SQL query to answer the following question: `What is the total launch failures when there are 4 launches, and the not usable is greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "satellites_by_block" ( "block" text, ...
SELECT MAX("not_usable") FROM "satellites_by_block" WHERE "launch_failures">0 AND "retired"<30 AND "block"='block i';
## Task Generate a SQL query to answer the following question: `What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sa...
SELECT AVG("not_usable") FROM "satellites_by_block" WHERE "retired"=0 AND "launch_failures"<1;
## Task Generate a SQL query to answer the following question: `What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "satellites_by_block" ...
SELECT MIN("cultural_and_educational_panel") FROM "composition_of_the_5th_seanad" WHERE "university_of_dublin"<3 AND "industrial_and_commercial_panel">0 AND "agricultural_panel">4;
## Task Generate a SQL query to answer the following question: `What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members?` ### Datab...
SELECT AVG("nominated_by_the_taoiseach") FROM "composition_of_the_5th_seanad" WHERE "agricultural_panel"<1 AND "administrative_panel"<0;
## Task Generate a SQL query to answer the following question: `What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?` ### Database Schema This query will run on a database whose schema is repr...
SELECT MIN("agricultural_panel") FROM "composition_of_the_5th_seanad" WHERE "industrial_and_commercial_panel"=9 AND "national_university_of_ireland">3;
## Task Generate a SQL query to answer the following question: `What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?` ### Database Schema This query will run on a database whose sch...
SELECT MAX("national_university_of_ireland") FROM "composition_of_the_5th_seanad" WHERE "total"=60 AND "administrative_panel">7;
## Task Generate a SQL query to answer the following question: `What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?` ### Database Schema This query will run on a database whose...
SELECT "final_round" FROM "contestants" WHERE "player"='danilo gallinari';
## Task Generate a SQL query to answer the following question: `What is Final round, when Player is Danilo Gallinari?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weigh...
SELECT "singapore_gross" FROM "1990s" WHERE "director"='1998';
## Task Generate a SQL query to answer the following question: `For the film with director listed as 1998, what was the gross in Singapore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, ...
SELECT "director" FROM "1990s" WHERE "producer"='river films';
## Task Generate a SQL query to answer the following question: `Who was the director for the film produced by River Films?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost...
SELECT "producer" FROM "1990s" WHERE "director"='1998';
## Task Generate a SQL query to answer the following question: `Who was the producer for the film directed by 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text,...
SELECT "singapore_gross" FROM "1990s" WHERE "title"='1997';
## Task Generate a SQL query to answer the following question: `For the film titled 1997, what was the gross in Singapore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost...