output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "1st_prize" FROM "tournament_results" WHERE "score"='271 (-9)';
## Task Generate a SQL query to answer the following question: `What was the value of 1st prize when the score was 271 (-9)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, ...
SELECT "date" FROM "tournament_results" WHERE "score"='200 (-16)';
## Task Generate a SQL query to answer the following question: `What day was the score 200 (-16)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" te...
SELECT "location" FROM "tournament_results" WHERE "tournament"='Outback Steakhouse Pro-Am';
## Task Generate a SQL query to answer the following question: `Where was Outback Steakhouse Pro-AM held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "wi...
SELECT "date_of_polls" FROM "chhattisgarh_result" WHERE "state"='Mizoram';
## Task Generate a SQL query to answer the following question: `Which dates of polls occur in the Mizoram state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chhattisgarh_result" ( "state" text, "date_of_polls" text, "seats_a_cs" real, "date...
SELECT COUNT("date_of_polls") FROM "chhattisgarh_result" WHERE "state"='Madhya Pradesh';
## Task Generate a SQL query to answer the following question: `How many dates of polls occur in the Madhya Pradesh state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chhattisgarh_result" ( "state" text, "date_of_polls" text, "seats_a_cs" rea...
SELECT COUNT("against") FROM "campeonato_paulista" WHERE "difference"=11;
## Task Generate a SQL query to answer the following question: `How many under the category of Against have a Difference of 11` ### 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, "...
SELECT "won" FROM "campeonato_paulista" WHERE "against"=20;
## Task Generate a SQL query to answer the following question: `if Against is 20 how much is Won?` ### 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, "played" real, "won" real, ...
SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista';
## Task Generate a SQL query to answer the following question: `How many Drawn does the team Portuguesa Santista have?` ### 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, "played" ...
SELECT MAX("for") FROM "campeonato_paulista" WHERE "difference"=11;
## Task Generate a SQL query to answer the following question: `If the difference is 11 how much is for?` ### 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, "played" real, "won" ...
SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Corinthians';
## Task Generate a SQL query to answer the following question: `How many drawn does the team Corinthians have?` ### 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, "played" real, ...
SELECT MAX("won") FROM "campeonato_paulista" WHERE "difference"='1';
## Task Generate a SQL query to answer the following question: `What is the highest number won with a difference of 1?` ### 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, "played" ...
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"=28;
## Task Generate a SQL query to answer the following question: `What the highest position when there is 28 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, "points" real, "played" rea...
SELECT MAX("won") FROM "campeonato_paulista" WHERE "points"=31;
## Task Generate a SQL query to answer the following question: `What is the highest number won when the number of points is 31?` ### 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, ...
SELECT MIN("position") FROM "campeonato_paulista" WHERE "difference"='6';
## Task Generate a SQL query to answer the following question: `What is the smalledt position when the difference was 6?` ### 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, "played...
SELECT COUNT("average_weekly_rank") FROM "series_ratings" WHERE "average_nightly_rank"='No. 2';
## Task Generate a SQL query to answer the following question: `How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_ratings" ( "season" real, "num_...
SELECT "timeslot" FROM "series_ratings" WHERE "season"=3;
## Task Generate a SQL query to answer the following question: `What is the show's time slot during season 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_ratings" ( "season" real, "num_of_episodes" real, "timeslot" text, "season_prem...
SELECT "round_3" FROM "scoring_format" WHERE "from"=1982;
## Task Generate a SQL query to answer the following question: `What are all the round 3's after 1982?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "to" real, "goal" real, "round_1" text, "round_2" text, "r...
SELECT "round_5" FROM "scoring_format" WHERE "round_6"='Double';
## Task Generate a SQL query to answer the following question: `What are all the round 5's where round 6 and up is double?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "to" real, "goal" real, "round_1" text, ...
SELECT MAX("goal") FROM "scoring_format" WHERE "from"=1979;
## Task Generate a SQL query to answer the following question: `What is the maximum goal after 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scoring_format" ( "from" real, "to" real, "goal" real, "round_1" text, "round_2" text, "rou...
SELECT "february" FROM "2000s";
## Task Generate a SQL query to answer the following question: `Name all of the february` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "2000" text, "january" text, "february" text, "march" text, "april" text, "may" text, "june"...
SELECT "june" FROM "2000s";
## Task Generate a SQL query to answer the following question: `Name the junes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "2000" text, "january" text, "february" text, "march" text, "april" text, "may" text, "june" text, "...
SELECT "july" FROM "2000s";
## Task Generate a SQL query to answer the following question: `Name the julys` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "2000" text, "january" text, "february" text, "march" text, "april" text, "may" text, "june" text, "...
SELECT COUNT("february") FROM "2000s";
## Task Generate a SQL query to answer the following question: `Name the number of februaries` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "2000" text, "january" text, "february" text, "march" text, "april" text, "may" text, "...
SELECT "february" FROM "2000s";
## Task Generate a SQL query to answer the following question: `Name the february` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "2000" text, "january" text, "february" text, "march" text, "april" text, "may" text, "june" text, ...
SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "position"=2;
## Task Generate a SQL query to answer the following question: `How many points are listed when the position is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "playe...
SELECT MAX("drawn") FROM "apea_s_campeonato_paulista" WHERE "lost"=2;
## Task Generate a SQL query to answer the following question: `When there is a lost of 2 what is the mumber drawn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "play...
SELECT MIN("played") FROM "apea_s_campeonato_paulista";
## Task Generate a SQL query to answer the following question: `How many games are played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, ...
SELECT MIN("lost") FROM "apea_s_campeonato_paulista" WHERE "position"=2;
## Task Generate a SQL query to answer the following question: `When the position is 2 what is the number lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" ...
SELECT MIN("won") FROM "apea_s_campeonato_paulista" WHERE "team"='Ypiranga-SP';
## Task Generate a SQL query to answer the following question: `When the team is ypiranga-sp what is the number of won games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" rea...
SELECT MIN("for") FROM "table1_15400878_1" WHERE "points"=19;
## Task Generate a SQL query to answer the following question: `Name the lease for when points is 19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15400878_1" ( "position" real, "team" text, "points" real, "played" real, "won" real, ...
SELECT "difference" FROM "table1_15400878_1" WHERE "drawn">2.0;
## Task Generate a SQL query to answer the following question: `Name the difference for when drawn is larger than 2.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15400878_1" ( "position" real, "team" text, "points" real, "played" rea...
SELECT MAX("against") FROM "table1_15400878_1" WHERE "team"='Minas Gerais';
## Task Generate a SQL query to answer the following question: `Name the most against for minas gerais` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15400878_1" ( "position" real, "team" text, "points" real, "played" real, "won" real...
SELECT "lms_class" FROM "peter_drummond_1911_1918" WHERE "lms_nos"='14510-5';
## Task Generate a SQL query to answer the following question: `What is the LMS class of trains with numbers 14510-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, "builder...
SELECT "date" FROM "peter_drummond_1911_1918" WHERE "wheels"=279;
## Task Generate a SQL query to answer the following question: `What is the date of the 279 wheels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, "builder" text, "no_buil...
SELECT "class" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F';
## Task Generate a SQL query to answer the following question: `What is the class when the LMS class is 3F?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, "builder" text, ...
SELECT "lms_nos" FROM "peter_drummond_1911_1918" WHERE "builder"='G&SWR Kilmarnock';
## Task Generate a SQL query to answer the following question: `What is the LMS number of the trains built by G&SWR Kilmarnock?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, ...
SELECT COUNT("wheels") FROM "peter_drummond_1911_1918" WHERE "lms_nos"='16377-9';
## Task Generate a SQL query to answer the following question: `How many figures are there for wheels for LMS numbers 16377-9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, ...
SELECT "builder" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F';
## Task Generate a SQL query to answer the following question: `What is the builder of the train with LMS Class 3f?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, "builder" ...
SELECT MAX("saffir_simpson_category") FROM "table_1_historical_storms_and_the_chi_19";
## Task Generate a SQL query to answer the following question: `What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_storms_and_the_chi_19" ( "na...
SELECT MAX("v_mph") FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='13.5';
## Task Generate a SQL query to answer the following question: `What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_storms_and_the_chi_1...
SELECT "chi" FROM "table_1_historical_storms_and_the_chi_19" WHERE "nhc_advisory_number"='49B';
## Task Generate a SQL query to answer the following question: `What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_storms_and_the_chi_19" ( "name"...
SELECT MAX("r_miles") FROM "table_1_historical_storms_and_the_chi_19" WHERE "landfall"='Texas' AND "saffir_simpson_category"<3.0;
## Task Generate a SQL query to answer the following question: `What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_sto...
SELECT "r_miles" FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='9.9';
## Task Generate a SQL query to answer the following question: `What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_storms_and_the_chi_19" ( "name" text, "yea...
SELECT "saffir_simpson_category" FROM "table_1_historical_storms_and_the_chi_19" WHERE "name"='Bonnie';
## Task Generate a SQL query to answer the following question: `What is the Saffir-Simpson category for the hurricane named Bonnie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_1_historical_storms_and_the_chi_19" ( "name" text, "year" real...
SELECT "common_name" FROM "table1_15417439_1" WHERE "accession_number"='XP_852505.1';
## Task Generate a SQL query to answer the following question: `What kind of animal corresponds to the accession number xp_852505.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15417439_1" ( "genus_species" text, "common_name" text, "a...
SELECT "similarity" FROM "table1_15417439_1" WHERE "genus_species"='Sus scrofa';
## Task Generate a SQL query to answer the following question: `How similar is the genus/species sus scrofa? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15417439_1" ( "genus_species" text, "common_name" text, "accession_number" text, ...
SELECT "identity" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana';
## Task Generate a SQL query to answer the following question: `What identities do the genus/species arabidopsis thaliana have? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15417439_1" ( "genus_species" text, "common_name" text, "acces...
SELECT "common_name" FROM "table1_15417439_1" WHERE "genus_species"='Rattus norvegicus';
## Task Generate a SQL query to answer the following question: `What's the animals name when the genus/species is rattus norvegicus? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15417439_1" ( "genus_species" text, "common_name" text, "...
SELECT "length" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana';
## Task Generate a SQL query to answer the following question: `For the genus/species arabidopsis thaliana, what are the lengths? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15417439_1" ( "genus_species" text, "common_name" text, "acc...
SELECT COUNT("original_air_date") FROM "table1_15430813_1" WHERE "no_in_season"=17;
## Task Generate a SQL query to answer the following question: `How many original air dates were there for episode 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15430813_1" ( "no_in_season" real, "no_disc" real, "title" text, "dire...
SELECT "original_air_date" FROM "table1_15430813_1" WHERE "title"='\"Prisoners\"';
## Task Generate a SQL query to answer the following question: `When did the episode titled "Prisoners" first air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15430813_1" ( "no_in_season" real, "no_disc" real, "title" text, "directed...
SELECT "institution" FROM "table_of_largest_rogue_trader_losses" WHERE "country"='London, United Kingdom';
## Task Generate a SQL query to answer the following question: `Which company was based in London, United Kingdom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_largest_rogue_trader_losses" ( "name" text, "country" text, "date_s" real,...
SELECT "original_air_date" FROM "table1_15431959_1" WHERE "written_by"='Peter DeLuise';
## Task Generate a SQL query to answer the following question: `What was the original air date of Stargate SG-1 written by Peter Deluise?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15431959_1" ( "no_in_season" real, "no_disc" real, "t...
SELECT MAX("no_in_season") FROM "table1_15431959_1" WHERE "directed_by"='Peter DeLuise';
## Task Generate a SQL query to answer the following question: `How many seasons did Peter Deluise direct Stargate SG-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15431959_1" ( "no_in_season" real, "no_disc" real, "title" text, "di...
SELECT MIN("no_in_season") FROM "table1_15431959_1" WHERE "title"='\"Sight Unseen\"';
## Task Generate a SQL query to answer the following question: `Which number episode of season 6 was the title "Sight Unseen"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15431959_1" ( "no_in_season" real, "no_disc" real, "title" text,...
SELECT "fifth_district" FROM "current_members" WHERE "third_district"='William Womer';
## Task Generate a SQL query to answer the following question: `Name the fifth district for william womer` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "...
SELECT "third_district" FROM "current_members" WHERE "fifth_district"='Christine Young';
## Task Generate a SQL query to answer the following question: `Name the third district for christine young` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, ...
SELECT "fourth_district" FROM "current_members" WHERE "second_district"='Joan Runnels';
## Task Generate a SQL query to answer the following question: `Name the fourth district for joan runnels` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "...
SELECT "fourth_district" FROM "current_members" WHERE "first_district"='Beverly Bodem';
## Task Generate a SQL query to answer the following question: `Name the fourth district for beverly bodem` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, ...
SELECT COUNT("fifth_district") FROM "current_members" WHERE "third_district"='Richard Houskamp';
## Task Generate a SQL query to answer the following question: `Name the number for fifth district for richard houskamp` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_distr...
SELECT "fifth_district" FROM "current_members" WHERE "fourth_district"='Steve Rudoni';
## Task Generate a SQL query to answer the following question: `Name the fifth district for steve rudoni` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "f...
SELECT MAX("ends_lost") FROM "standings" WHERE "ends_won"=47;
## Task Generate a SQL query to answer the following question: `What was the top ends lost where the ends won 47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" r...
SELECT "locale" FROM "standings" WHERE "stolen_ends"=12 AND "shot_pct"='77%';
## Task Generate a SQL query to answer the following question: `What was the location when the stolen ends is 12 and shot pct is 77%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, ...
SELECT "stolen_ends" FROM "standings" WHERE "locale"='Sweden';
## Task Generate a SQL query to answer the following question: `How many stolen ends were there when the locale was Sweden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real...
SELECT "school_club_team" FROM "s" WHERE "season"='2012' AND "acquisition_via"='Trade';
## Task Generate a SQL query to answer the following question: `What was the school/club team whose season was in 2012 and were acquired via trade? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real,...
SELECT "school_club_team" FROM "s" WHERE "name"='Mark Sanford';
## Task Generate a SQL query to answer the following question: `Which school/club team has a player named Mark Sanford? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, ...
SELECT COUNT("number") FROM "s" WHERE "school_club_team"='Manuel Luis Quezon';
## Task Generate a SQL query to answer the following question: `How many school/club teams have a player named Manuel Luis Quezon? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_t...
SELECT COUNT("name") FROM "s" WHERE "school_club_team"='Washington';
## Task Generate a SQL query to answer the following question: `How many players are listed for the school/club team Washington? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_tea...
SELECT COUNT("position") FROM "s" WHERE "season"='2009';
## Task Generate a SQL query to answer the following question: `How many players with a position are listed for the 2009 season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_tea...
SELECT "school_club_team" FROM "a" WHERE "position"='Guard';
## Task Generate a SQL query to answer the following question: `Name the school/club for guard` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" real, "acquis...
SELECT "position" FROM "a" WHERE "name"='judy-ann ramirez';
## Task Generate a SQL query to answer the following question: `Name the position for judy-ann ramirez` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" real, ...
SELECT "losing_bonus" FROM "league_table" WHERE "points_difference"='-99';
## Task Generate a SQL query to answer the following question: `What is the losing bonus for the team with a point difference of -99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn...
SELECT "played" FROM "league_table" WHERE "points_for"='277';
## Task Generate a SQL query to answer the following question: `How many games played for teams with 277 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text...
SELECT "won" FROM "league_table" WHERE "tries_against"='49';
## Task Generate a SQL query to answer the following question: `How many games won for teams with 49 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, "won" text, "drawn" text, "lost" t...
SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_against"='62';
## Task Generate a SQL query to answer the following question: `How many teams have 62 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, "won" text, "drawn" text, "lost" text, "points...
SELECT "tries_for" FROM "league_table" WHERE "club"='Cambrian Welfare RFC';
## Task Generate a SQL query to answer the following question: `How many tries for, for club cambrian welfare rfc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" te...
SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_for"='21';
## Task Generate a SQL query to answer the following question: `How many teams have 21 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, "won" text, "drawn" text, "lost" text, "points_for...
SELECT COUNT("chassis") FROM "entries" WHERE "no"=34;
## Task Generate a SQL query to answer the following question: `How many chassis used number 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engin...
SELECT "constructor" FROM "entries" WHERE "no"=22;
## Task Generate a SQL query to answer the following question: `Who was the constructor of car 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "eng...
SELECT COUNT("engine") FROM "entries" WHERE "no"=48;
## Task Generate a SQL query to answer the following question: `How many cars used number 48?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" ...
SELECT "driver" FROM "entries" WHERE "no"=44;
## Task Generate a SQL query to answer the following question: `Who drove car 44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "entries" ( "no" real, "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text ); ### ...
SELECT COUNT("year") FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open';
## Task Generate a SQL query to answer the following question: `Name the total number of years where runner-up and championship is us open` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, ...
SELECT "surface" FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open';
## Task Generate a SQL query to answer the following question: `Name the surfaace where outcome is runner-up and championship is us open` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, "...
SELECT "partner" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Mark Woodforde Martina Navratilova';
## Task Generate a SQL query to answer the following question: `Name the partner for mark woodforde martina navratilova` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, "championship" tex...
SELECT "score" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Rick Leach Zina Garrison';
## Task Generate a SQL query to answer the following question: `Name the score for rick leach zina garrison` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_finals_15_7_8" ( "outcome" text, "year" real, "championship" text, "surfac...
SELECT "swimsuit" FROM "semifinal_scores" WHERE "state"='Arizona';
## Task Generate a SQL query to answer the following question: `Name the swimsuit for arizona` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_scores" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "ev...
SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='7';
## Task Generate a SQL query to answer the following question: `Name the driver for race 2 7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" text, "race_2" text, "r...
SELECT COUNT("qualifying") FROM "indy_f3_challenge" WHERE "race_3"='3';
## Task Generate a SQL query to answer the following question: `Name the total number of qualifiying for race 3 being 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" ...
SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='2';
## Task Generate a SQL query to answer the following question: `Name the driver for race 2 2 ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" text, "race_2" text, "...
SELECT "race_1" FROM "indy_f3_challenge" WHERE "race_3"='8';
## Task Generate a SQL query to answer the following question: `Name the race 1 when race 3 is 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" text, "race_2" text, ...
SELECT "race_2" FROM "indy_f3_challenge" WHERE "driver"='James Winslow';
## Task Generate a SQL query to answer the following question: `Name the race 2 for james winslow` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" text, "race_2" text,...
SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "race_1"='2';
## Task Generate a SQL query to answer the following question: `Name the total number of positions for race 1 being 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_f3_challenge" ( "pos" real, "driver" text, "qualifying" real, "race_1" te...
SELECT "report" FROM "full_series_results" WHERE "pole_position"='Carl Skerlong' AND "winning_team"='Newman Wachs Racing';
## Task Generate a SQL query to answer the following question: `Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_series_results" ( "rd...
SELECT "report" FROM "full_series_results" WHERE "rd"=8;
## Task Generate a SQL query to answer the following question: `Did the round 8 race get reported` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_series_results" ( "rd" real, "race" text, "pole_position" text, "fastest_lap" text, "winnin...
SELECT "race" FROM "full_series_results" WHERE "winning_team"='Mathiasen Motorsports' AND "pole_position"='Jonathan Bomarito';
## Task Generate a SQL query to answer the following question: `Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_series_results" ( "rd" real, "race...
SELECT COUNT("winning_driver") FROM "full_series_results" WHERE "rd"=8;
## Task Generate a SQL query to answer the following question: `how many winners were in round 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_series_results" ( "rd" real, "race" text, "pole_position" text, "fastest_lap" text, "winning...
SELECT COUNT("12_00_pm") FROM "afternoon" WHERE "time"='Wednesday';
## Task Generate a SQL query to answer the following question: `How many episodes air on Wednesday at 12:00pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00...
SELECT "02_00_pm" FROM "afternoon";
## Task Generate a SQL query to answer the following question: `What are the names of the episodes that airs at 2:00pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text,...
SELECT "05_55_pm" FROM "afternoon" WHERE "time"='Friday';
## Task Generate a SQL query to answer the following question: `What is the name of the show that airs Friday at 5:55pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text...
SELECT "10_00_pm" FROM "night" WHERE "time"='Thursday';
## Task Generate a SQL query to answer the following question: `Name the 10 pm for thursday` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night" ( "time" text, "06_00_pm" text, "07_00_pm" text, "08_00_pm" text, "09_00_pm" text, "10_00_pm"...