output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "producer" FROM "1990s" WHERE "director"='1997';
## Task Generate a SQL query to answer the following question: `Who was the producer for the film directed by 1997?` ### 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 "director"='1991';
## Task Generate a SQL query to answer the following question: `For the directed by 1991, 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...
SELECT MAX("points") FROM "2_lyga_zone_north" WHERE "goals_scored"<25 AND "draws"=3 AND "games_played">21;
## Task Generate a SQL query to answer the following question: `What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "positio...
SELECT "date" FROM "pool_a" WHERE "set_1"='25-18';
## Task Generate a SQL query to answer the following question: `What day was there a set 1 of 25-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_a" ( "game" real, "date" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text,...
SELECT "week" FROM "schedule" WHERE "kickoff_et"='4:05 pm' AND "result"='w 31–14';
## Task Generate a SQL query to answer the following question: `What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text...
SELECT "kickoff_et" FROM "schedule" WHERE "opponent"='miami dolphins';
## Task Generate a SQL query to answer the following question: `What time was the kickoff when the miami dolphins were the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "oppon...
SELECT "round_2" FROM "scoring_format" WHERE "round_4"='double' AND "round_3"='single';
## Task Generate a SQL query to answer the following question: `What is Round 2 when Round 4 is Double and Round 3 is Single?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" ...
SELECT "round_5" FROM "scoring_format" WHERE "round_4"='triple' AND "round_3"='double' AND "round_6"='triple';
## Task Generate a SQL query to answer the following question: `What is Round 5 when Round 4 is Triple, Round 3 is Double and Round 6+ is Triple?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1...
SELECT "round_1" FROM "scoring_format" WHERE "round_4"='double' AND "from"=1977 AND "round_3"='double';
## Task Generate a SQL query to answer the following question: `What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, ...
SELECT "round_2" FROM "scoring_format" WHERE "from"=1999;
## Task Generate a SQL query to answer the following question: `What is Round 2 from 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4"...
SELECT "round_4" FROM "scoring_format" WHERE "round_6"='triple' AND "round_5"='triple' AND "round_3"='single';
## Task Generate a SQL query to answer the following question: `What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1...
SELECT "round_3" FROM "scoring_format" WHERE "from"<1990 AND "goal"='400';
## Task Generate a SQL query to answer the following question: `What is round 3 where From is earlier than 1990 and the Goal is 400?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "ro...
SELECT "points" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "country"='united kingdom' AND "place"=10;
## Task Generate a SQL query to answer the following question: `What points has united kingdom as the country, and 10 as the place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" te...
SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "rider"='tony rutter';
## Task Generate a SQL query to answer the following question: `What machine has tony rutter as the rider?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "...
SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "place"=5;
## Task Generate a SQL query to answer the following question: `What machine has 5 as the place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" t...
SELECT SUM("place") FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "machine"='yamaha' AND "speed"='89.85mph';
## Task Generate a SQL query to answer the following question: `How many places have yamaha as the machine, and 89.85mph as the speed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider"...
SELECT COUNT("place") FROM "festival_da_can_o_2008_9_march_2008" WHERE "artist"='big hit' AND "votes"<2934;
## Task Generate a SQL query to answer the following question: `How many places did the artist Big Hit have with less than 2934 votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "festival_da_can_o_2008_9_march_2008" ( "draw" real, "artist" text...
SELECT AVG("votes") FROM "festival_da_can_o_2008_9_march_2008" WHERE "place"<6 AND "producer"='carlos coelho' AND "draw">5;
## Task Generate a SQL query to answer the following question: `How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "festival_da_can_o_2008_9_marc...
SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='19 february 2008';
## Task Generate a SQL query to answer the following question: `What is the name of the MySpace Band with an Original Airdate of 19 february 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, ...
SELECT "musical_guest_song_performed" FROM "series_1" WHERE "pilot"='3';
## Task Generate a SQL query to answer the following question: `What is the Musical Guest/Song with a pilot of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" te...
SELECT "original_airdate" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';
## Task Generate a SQL query to answer the following question: `What is the Original Airdate for the YouTube Hero greg pattillo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_son...
SELECT "musical_guest_song_performed" FROM "series_1" WHERE "original_airdate"='january 2008';
## Task Generate a SQL query to answer the following question: `What is the Musical Guest/Song with an original airdate of january 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_g...
SELECT "pilot" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';
## Task Generate a SQL query to answer the following question: `What is the Pilot number for the YouTube Hero greg pattillo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_pe...
SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='25 march 2008';
## Task Generate a SQL query to answer the following question: `What is the name of the MySpace Band with an Original Airdate of 25 march 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "mu...
SELECT COUNT("top_25") FROM "summary" WHERE "wins"=0 AND "cuts_made"=1 AND "events">5;
## Task Generate a SQL query to answer the following question: `What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "...
SELECT MIN("top_5") FROM "summary" WHERE "wins">1;
## Task Generate a SQL query to answer the following question: `What is the fewest number of top-5s for events with more than 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_2...
SELECT MAX("top_25") FROM "summary" WHERE "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the highest number of top-25s for events with 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real...
SELECT "home_leg" FROM "european_record" WHERE "opponents"='rotor volgograd';
## Task Generate a SQL query to answer the following question: `What is the home leg who are opponents of rotor volgograd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "round" text, "opponents" text, "home_le...
SELECT "round" FROM "european_record" WHERE "opponents"='ajax';
## Task Generate a SQL query to answer the following question: `What is the round with ajax opponents` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "round" text, "opponents" text, "home_leg" text, "away_leg...
SELECT "acquisition_via" FROM "g" WHERE "position"='forward' AND "school_club_team"='state';
## Task Generate a SQL query to answer the following question: `Which acquisition via has a position of forward and is on the state school or club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "name" text, "position" text, "number" real, ...
SELECT "acquisition_via" FROM "g" WHERE "school_club_team"='state';
## Task Generate a SQL query to answer the following question: `Which is the acquisition via that has a school or club team of state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club...
SELECT "position" FROM "g" WHERE "name"='allen gamboa';
## Task Generate a SQL query to answer the following question: `What is the position of Allen Gamboa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, ...
SELECT "position" FROM "g" WHERE "number"=16;
## Task Generate a SQL query to answer the following question: `Which position is number 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisit...
SELECT AVG("year") FROM "game_history" WHERE "date"='tba' AND "designated_home"='oakland raiders';
## Task Generate a SQL query to answer the following question: `What year had a date of TBA where the Oakland raiders were the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_history" ( "year" real, "date" text, "television" text,...
SELECT "designated_home" FROM "game_history" WHERE "date"='october 28' AND "designated_visitors"='new england patriots';
## Task Generate a SQL query to answer the following question: `Who was the home team on October 28 when the new england patriots were the visitors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_history" ( "year" real, "date" text, "televi...
SELECT "designated_visitors" FROM "game_history" WHERE "designated_home"='atlanta falcons';
## Task Generate a SQL query to answer the following question: `Who were the visitors when the Atlanta Falcons were the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_history" ( "year" real, "date" text, "television" text, "des...
SELECT "designated_home" FROM "game_history" WHERE "television"='fox' AND "year">2007 AND "date"='october 23';
## Task Generate a SQL query to answer the following question: `Who were the home team during the game that aired on Fox after 2007 on October 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_history" ( "year" real, "date" text, "televisi...
SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=98 AND "birthdate"='may 1, 1984';
## Task Generate a SQL query to answer the following question: `What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position"...
SELECT AVG("jersey_number") FROM "list_of_united_states_national_ice_hocke" WHERE "1995_96_team"='calgary flames' AND "weight_kg">84;
## Task Generate a SQL query to answer the following question: `What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_nation...
SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='c' AND "1995_96_team"='buffalo sabres' AND "weight_kg"<82;
## Task Generate a SQL query to answer the following question: `What was the average Height (cm), for a player who had the Position, C, and whose 1995-96 team was the Buffalo Sabres, and whose Weight (kg) was less than 82?` ### Database Schema This query will run on a database whose schema is represented in this stri...
SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=84 AND "position"='d' AND "jersey_number"=2;
## Task Generate a SQL query to answer the following question: `What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_...
SELECT MIN("win_pct") FROM "result_summary_in_champions_league" WHERE "opposition"='perth scorchers';
## Task Generate a SQL query to answer the following question: `What is the lowest win percentage for when Perth Scorchers is the opposition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "result_summary_in_champions_league" ( "opposition" text, "...
SELECT "date" FROM "schedule" WHERE "week"=13;
## Task Generate a SQL query to answer the following question: `On which date was the game played on Week 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" r...
SELECT COUNT("std_sa_ps") FROM "enterprise_class" WHERE "opt_sa_ps"='0-11';
## Task Generate a SQL query to answer the following question: `What is the total number of Std SAPs with 0-11 Opt SAPS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, ...
SELECT "z_aa_ps_z_ii_ps" FROM "enterprise_class" WHERE "model"='e64';
## Task Generate a SQL query to answer the following question: `For Model e64 what is the zAAPs/zIIPs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, "z_aa_ps_z_ii_ps" ...
SELECT "if_ls_u_if_ls" FROM "enterprise_class" WHERE "model"='e12';
## Task Generate a SQL query to answer the following question: `For Model e12 what is the IFLs/uIFLs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, "z_aa_ps_z_ii_ps" t...
SELECT AVG("natural_change_per_1000") FROM "vital_statistics" WHERE "crude_death_rate_per_1000">13.2 AND "deaths"='4,142' AND "natural_change"<752;
## Task Generate a SQL query to answer the following question: `What is the average Natural Change (Per 1000), when Crude Death Rate (Per 1000) is greater than 13.2, when Deaths is 4,142, and when Natural Change is less than 752?` ### Database Schema This query will run on a database whose schema is represented in th...
SELECT MAX("crude_death_rate_per_1000") FROM "vital_statistics" WHERE "natural_change_per_1000">16.1 AND "natural_change"='5,049' AND "crude_birth_rate_per_1000"<27.1;
## Task Generate a SQL query to answer the following question: `What is the highest Crude Death Rate (per 1000), when Natural Change (Per 1000) is greater than 16.1, when Natural Change is 5,049, and when Crude Birth Rate (Per 1000) is less than 27.1?` ### Database Schema This query will run on a database whose schem...
SELECT SUM("natural_change") FROM "vital_statistics" WHERE "natural_change_per_1000">5.4 AND "crude_death_rate_per_1000"<14.3 AND "live_births"<'6,950' AND "crude_birth_rate_per_1000"<28.2;
## Task Generate a SQL query to answer the following question: `What is the sum of Natural Change, when Natural Change (Per 1000) is greater than 5.4, when Crude Death Rate (Per 1000) is less than 14.3, when Live Births is less than 6,950, and when Crude Birth Rate (Per 1000) is less than 28.2?` ### Database Schema T...
SELECT MAX("crude_death_rate_per_1000") FROM "vital_statistics" WHERE "natural_change_per_1000"<5.2 AND "average_population_x_1000"=305 AND "crude_birth_rate_per_1000"=16.1 AND "natural_change">954;
## Task Generate a SQL query to answer the following question: `What is the highest Crude Death Rate (Per 1000), when Natural Change (Per 1000) is less than 5.2, when Average Population (x 1000) is 305, when Crude Birth Rate (Per 1000) is 16.1, and when Natural Change is greater than 954?` ### Database Schema This qu...
SELECT MIN("natural_change") FROM "vital_statistics" WHERE "natural_change_per_1000"=19.1 AND "crude_birth_rate_per_1000"<28.3;
## Task Generate a SQL query to answer the following question: `What is the lowest Natural Change, when Natural Change (Per 1000) is 19.1, and when Crude Birth Rate (Per 1000) is less than 28.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vital_sta...
SELECT "player" FROM "c" WHERE "school_club_team"='illinois';
## Task Generate a SQL query to answer the following question: `Which Player has a School/Club Team of Illinois?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, ...
SELECT "player" FROM "c" WHERE "position"='guard-forward' AND "school_club_team"='pepperdine';
## Task Generate a SQL query to answer the following question: `Which Player plays Guard-Forward Position for School/Club Team Pepperdine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, ...
SELECT "position" FROM "c" WHERE "player"='vince carter';
## Task Generate a SQL query to answer the following question: `What Position does the Player Vince Carter hold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, ...
SELECT "school_club_team" FROM "c" WHERE "player"='vince carter';
## Task Generate a SQL query to answer the following question: `Which School/Club Team does Vince Carter Play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text,...
SELECT "player" FROM "c" WHERE "school_club_team"='illinois';
## Task Generate a SQL query to answer the following question: `Who is the Player for School/Club Team Illinois?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, ...
SELECT "score" FROM "international_goals" WHERE "result"='7-0';
## Task Generate a SQL query to answer the following question: `What score has 7-0 as the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" tex...
SELECT "competition" FROM "international_goals" WHERE "result"='17-1';
## Task Generate a SQL query to answer the following question: `What competition has 17-1 as the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competiti...
SELECT "competition" FROM "international_goals" WHERE "result"='17-1';
## Task Generate a SQL query to answer the following question: `What competition has 17-1 as the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competiti...
SELECT "set_2" FROM "results_pool_b" WHERE "set_1"='25-23' AND "set_5"='17-19';
## Task Generate a SQL query to answer the following question: `What is the set 2 with a 25-23 set 1 and a 17-19 set 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "...
SELECT "set_5" FROM "results_pool_b" WHERE "set_3"='25-23';
## Task Generate a SQL query to answer the following question: `What is the set 5 with a 25-23 set 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "se...
SELECT MAX("pick") FROM "1970_new_york_giants_season" WHERE "college"='fairmont state' AND "round">10;
## Task Generate a SQL query to answer the following question: `Who had the high pick of the round of 10 for Fairmont State college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970_new_york_giants_season" ( "round" real, "pick" real, "player...
SELECT "player" FROM "1970_new_york_giants_season" WHERE "pick"=402;
## Task Generate a SQL query to answer the following question: `What was the name of the player for pick 402?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970_new_york_giants_season" ( "round" real, "pick" real, "player" text, "position" te...
SELECT "date" FROM "season_schedule" WHERE "week"=4;
## Task Generate a SQL query to answer the following question: `What is the date of the week 4 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" tex...
SELECT "result" FROM "season_schedule" WHERE "date"='october 17, 1965';
## Task Generate a SQL query to answer the following question: `What is the result of the game on October 17, 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "...
SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='viktors dobrecovs' AND "matches"<325;
## Task Generate a SQL query to answer the following question: `What is the Rank for Viktors Dobrecovs with less than 325 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" ( "rank" real, "name" text,...
SELECT AVG("matches") FROM "list_of_top_association_football_goal_sc" WHERE "name"='vits rimkus' AND "rank"<3;
## Task Generate a SQL query to answer the following question: `What is the number of Matches for Vits Rimkus with a Rank of less than 3?` ### 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...
SELECT "date" FROM "schedule" WHERE "location"='michie stadium • west point, ny';
## Task Generate a SQL query to answer the following question: `What is the Date for the game at michie stadium • west point, ny?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result...
SELECT "opponent" FROM "schedule" WHERE "location"='groves stadium • winston-salem, nc' AND "result"='t 17-17';
## Task Generate a SQL query to answer the following question: `What is the Opponent when the location was groves stadium • winston-salem, nc, with a result of t 17-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "oppon...
SELECT "lms_nos" FROM "hugh_smellie_1878_1890" WHERE "date"='1879-81' AND "no_built"=4;
## Task Generate a SQL query to answer the following question: `In 1879-81 with number built 4, what is the LMS nos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hugh_smellie_1878_1890" ( "class" real, "date" text, "builder" text, "no_built"...
SELECT "date" FROM "hugh_smellie_1878_1890" WHERE "class"=157;
## Task Generate a SQL query to answer the following question: `On which date was the class 157?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hugh_smellie_1878_1890" ( "class" real, "date" text, "builder" text, "no_built" real, "1919_nos" ...
SELECT MIN("ends_lost") FROM "standings" WHERE "locale"='norway' AND "blank_ends">17;
## Task Generate a SQL query to answer the following question: `Can you tell me the lowest Ends Lost that has the Locale of norway, and the Blank Ends larger than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "locale" text, "skip...
SELECT "margin_of_victory" FROM "european_tour_wins_19" WHERE "winning_score"='68-67-69-65=269';
## Task Generate a SQL query to answer the following question: `What was the Margin of Victory of winning score 68-67-69-65=269?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_sco...
SELECT "to_par" FROM "european_tour_wins_19" WHERE "winning_score"='71-66-70-67=274';
## Task Generate a SQL query to answer the following question: `What is the To Par of winning score 71-66-70-67=274?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_score" text, ...
SELECT "tournament" FROM "european_tour_wins_19" WHERE "winning_score"='67-61-68-67=263';
## Task Generate a SQL query to answer the following question: `Which tournament had a winning score of 67-61-68-67=263?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_score" text...
SELECT "tries_for" FROM "league_table" WHERE "points"='5' AND "tries_against"='2';
## Task Generate a SQL query to answer the following question: `How many tries for are associated with 5 points and 2 tries against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost...
SELECT "losing_bonus" FROM "league_table" WHERE "tries_for"='0';
## Task Generate a SQL query to answer the following question: `What is the losing bonus associated with 0 tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "poin...
SELECT MAX("against") FROM "campeonato_paulista" WHERE "drawn">5 AND "points">18;
## Task Generate a SQL query to answer the following question: `What's the highest against score that drew more than 5, and had more than 18 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...
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played"<17;
## Task Generate a SQL query to answer the following question: `What's the number of losses where played was less than 17?` ### 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 AVG("position") FROM "campeonato_paulista" WHERE "team"='ypiranga-sp' AND "lost"<7;
## Task Generate a SQL query to answer the following question: `What is team ypiranga-sp's average position when they lost by less than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "point...
SELECT COUNT("attendance") FROM "schedule" WHERE "location"='groves stadium • winston-salem, nc' AND "result"='l 0-14';
## Task Generate a SQL query to answer the following question: `What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" ...
SELECT "opponent" FROM "schedule" WHERE "result"='l 0-14';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the result was L 0-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attend...
SELECT "position" FROM "roster" WHERE "hometown"='queens, ny';
## Task Generate a SQL query to answer the following question: `What is the name of the position of the person whose hometown is Queens, NY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "number" real, "position" text, ...
SELECT MAX("number") FROM "roster" WHERE "name"='tim andree';
## Task Generate a SQL query to answer the following question: `What is Tim Andree's greatest number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "number" real, "position" text, "year" text, "hometown" text ); ### S...
SELECT MIN("number") FROM "roster" WHERE "hometown"='bellwood, il';
## Task Generate a SQL query to answer the following question: `What is the lowest number of the player with a hometown of Bellwood, IL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "number" real, "position" text, "yea...
SELECT "score" FROM "first_round_proper" WHERE "attendance"='2,444';
## Task Generate a SQL query to answer the following question: `What is Score, when Attendance is 2,444?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "d...
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "attendance"='2,048';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Tie No is Replay, and when Attendance is 2,048?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score"...
SELECT "score" FROM "first_round_proper" WHERE "tie_no"='17';
## Task Generate a SQL query to answer the following question: `What is Score, when Tie No is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" te...
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='4';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Tie No is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date"...
SELECT "score" FROM "first_round_proper" WHERE "attendance"='3,416';
## Task Generate a SQL query to answer the following question: `What is Score, when Attendance is 3,416?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "d...
SELECT MAX("no_result") FROM "overall_results_in_the_ipl" WHERE "losses">7 AND "away_wins">3 AND "success_rate"='50.00%';
## Task Generate a SQL query to answer the following question: `What is the highest No Result when there were less than 7 losses, and more than 3 away wins, with a success Rate of 50.00%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results_...
SELECT SUM("away_losses") FROM "overall_results_in_the_ipl" WHERE "no_result">0 AND "losses">6 AND "matches">91;
## Task Generate a SQL query to answer the following question: `What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results_in_the_i...
SELECT SUM("wins") FROM "overall_results_in_the_ipl" WHERE "no_result"=0 AND "away_wins"=1 AND "losses"<5;
## Task Generate a SQL query to answer the following question: `What is the sum of Wins with a result of 0, and the away wins of 1, and the losses are less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results_in_the_ipl" ( "year" t...
SELECT "stadium" FROM "bowl_games" WHERE "date"='december 29, 2008';
## Task Generate a SQL query to answer the following question: `What stadium was the December 29, 2008 game played at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "...
SELECT "bowl_game" FROM "bowl_games" WHERE "conference_matchups"='ohio state vs. texas';
## Task Generate a SQL query to answer the following question: `Which bowl game had a conference matchup of Ohio State vs. Texas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city...
SELECT "stadium" FROM "bowl_games" WHERE "bowl_game"='fiesta bowl';
## Task Generate a SQL query to answer the following question: `What stadium was the Fiesta Bowl played at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television"...
SELECT "payout_us" FROM "bowl_games" WHERE "bowl_game"='insight bowl';
## Task Generate a SQL query to answer the following question: `What was the payout in US dollars at the Insight Bowl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "...
SELECT "conference_matchups" FROM "bowl_games" WHERE "payout_us"='$3 million';
## Task Generate a SQL query to answer the following question: `What was the conference matchup in the bowl game with a $3 million payout?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text...
SELECT "conference_matchups" FROM "bowl_games" WHERE "city"='glendale, arizona';
## Task Generate a SQL query to answer the following question: `What was the conference matchup for the bowl game played in Glendale, Arizona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" ...
SELECT "team" FROM "pool_3" WHERE "tries_for"<10;
## Task Generate a SQL query to answer the following question: `Which Team has Tries for smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_...