output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "issue_date_s" FROM "see_also" WHERE "weeks_on_top"<6 AND "song"='\" the friends of mr. cairo \"';
## Task Generate a SQL query to answer the following question: `What is the Issue with less than 6 weeks on top and for the song " the friends of mr. cairo "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_d...
SELECT SUM("weeks_on_top") FROM "see_also" WHERE "volume_issue"='34:9-12';
## Task Generate a SQL query to answer the following question: `What is the sum of Weeks on Top for the Volume:Issue 34:9-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" rea...
SELECT COUNT("place_posici_n") FROM "clausura_2008_standings" WHERE "draw_pe">2 AND "team_equipo"='paraíso' AND "won_pg">6;
## Task Generate a SQL query to answer the following question: `How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "clausura_2008_standing...
SELECT COUNT("league_cup") FROM "topscorers_in_order_of_league_goals" WHERE "club"='yeovil town' AND "league"<16;
## Task Generate a SQL query to answer the following question: `How many league cups have yeovil town as the club, with a league less than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "cl...
SELECT AVG("fa_cup") FROM "topscorers_in_order_of_league_goals" WHERE "player"='gary jones' AND "fa_trophy">5;
## Task Generate a SQL query to answer the following question: `What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "topscorers_in_order_of_league_goals" ( "pla...
SELECT SUM("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "player"='tony hemmings' AND "league">15;
## Task Generate a SQL query to answer the following question: `What FA trophys have tony hemmings as the player, with a league greater than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "...
SELECT "score" FROM "winners" WHERE "country"='japan';
## Task Generate a SQL query to answer the following question: `What is the score where the country is Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text,...
SELECT AVG("year") FROM "winners" WHERE "winner_s_share"<'14,000';
## Task Generate a SQL query to answer the following question: `What year has a winner's share smaller than 14,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score"...
SELECT "province" FROM "provinces_of_unified_silla" WHERE "capital"='muju';
## Task Generate a SQL query to answer the following question: `Which province has muju as the capital?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_unified_silla" ( "former_kingdom" text, "province" text, "hangul" text, "hanja"...
SELECT "modern_equivalent" FROM "provinces_of_unified_silla" WHERE "hanja"='良州';
## Task Generate a SQL query to answer the following question: `What is the modern equivalent of 良州 in Hanja?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_unified_silla" ( "former_kingdom" text, "province" text, "hangul" text, "...
SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hangul"='양주';
## Task Generate a SQL query to answer the following question: `What is the capital of the province with 양주 in Hangul?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_unified_silla" ( "former_kingdom" text, "province" text, "hangul" ...
SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hanja"='漢州';
## Task Generate a SQL query to answer the following question: `What is the capital of the province with 漢州 in Hanja?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_unified_silla" ( "former_kingdom" text, "province" text, "hangul" t...
SELECT "hanja" FROM "provinces_of_unified_silla" WHERE "province"='sakju';
## Task Generate a SQL query to answer the following question: `What is the Hanja for the sakju province?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_unified_silla" ( "former_kingdom" text, "province" text, "hangul" text, "hanj...
SELECT MIN("top_25") FROM "summary" WHERE "wins">0;
## Task Generate a SQL query to answer the following question: `What is the fewest number of top-25s for events with more than 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_10" real, "to...
SELECT MAX("top_10") FROM "summary" WHERE "wins">0;
## Task Generate a SQL query to answer the following question: `What is the highest number of top-10s in events with more than 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_10" real, "to...
SELECT "top_25" FROM "summary" WHERE "events"<13 AND "cuts_made"<3 AND "top_10"=1;
## Task Generate a SQL query to answer the following question: `What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10"...
SELECT "season" FROM "last_place_couples_average_ranks" WHERE "average"<28 AND "rank"<10 AND "professional_partner"='janja lesar';
## Task Generate a SQL query to answer the following question: `Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "last_place_couples_average_ranks" ( "rank" real, "c...
SELECT MAX("season") FROM "last_place_couples_average_ranks" WHERE "rank"<1;
## Task Generate a SQL query to answer the following question: `What is the highest season that had rank under 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "last_place_couples_average_ranks" ( "rank" real, "celebrity" text, "professional_par...
SELECT "professional_partner" FROM "last_place_couples_average_ranks" WHERE "season"=4;
## Task Generate a SQL query to answer the following question: `Who was the professional partner in season 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "last_place_couples_average_ranks" ( "rank" real, "celebrity" text, "professional_partner...
SELECT "high_rebounds" FROM "game_log" WHERE "team"='detroit';
## Task Generate a SQL query to answer the following question: `Who had the highest rebounds against detroit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text,...
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='uzbekistan (uzb)';
## Task Generate a SQL query to answer the following question: `How much gold received by nation of uzbekistan (uzb)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bron...
SELECT MIN("gold") FROM "medal_table" WHERE "silver"<0;
## Task Generate a SQL query to answer the following question: `Which team has the lowest gold and 0 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real,...
SELECT MAX("gold") FROM "medal_table" WHERE "silver"<1 AND "bronze"=1 AND "total"<1;
## Task Generate a SQL query to answer the following question: `How much gold when silver, bronze and total is smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real...
SELECT "icao" FROM "see_also" WHERE "commenced_operations"<1989;
## Task Generate a SQL query to answer the following question: `What is the ICAO with commenced operations before 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "airline" text, "airline_in_arabic" text, "icao" text, "callsign...
SELECT MIN("commenced_operations") FROM "see_also" WHERE "callsign"='nouvelair';
## Task Generate a SQL query to answer the following question: `What is the lowest commenced operations that has a nouvelair callsign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "airline" text, "airline_in_arabic" text, "icao" te...
SELECT "callsign" FROM "see_also" WHERE "commenced_operations"=2011;
## Task Generate a SQL query to answer the following question: `What callsign has commenced operations in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "airline" text, "airline_in_arabic" text, "icao" text, "callsign" text, ...
SELECT "language" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 10';
## Task Generate a SQL query to answer the following question: `What language is used when the service is sky primafila 10 and the package/option is qualsiasi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primafila" ( "television_service" text, ...
SELECT "content" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 14';
## Task Generate a SQL query to answer the following question: `What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primafila" ( "television_service"...
SELECT "hdtv" FROM "local_channels" WHERE "content"='general television' AND "television_service"='tv 8 mont blanc';
## Task Generate a SQL query to answer the following question: `What is the HDTV that has television service of tv 8 mont blanc and content is general television?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_channels" ( "television_service" ...
SELECT "city" FROM "list" WHERE "iata"='nkg';
## Task Generate a SQL query to answer the following question: `Which city's IATA is nkg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "city" text, "province" text, "country" text, "iata" text, "airport" text ); ### SQL Given the d...
SELECT "airport" FROM "list" WHERE "province"='xinjiang' AND "city"='kuqa';
## Task Generate a SQL query to answer the following question: `Which airport is in Xinjiang province in the city Kuqa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "city" text, "province" text, "country" text, "iata" text, "airpor...
SELECT "province" FROM "list" WHERE "iata"='kix';
## Task Generate a SQL query to answer the following question: `Which province's IATA is kix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "city" text, "province" text, "country" text, "iata" text, "airport" text ); ### SQL Given t...
SELECT "airport" FROM "list" WHERE "iata"='pen';
## Task Generate a SQL query to answer the following question: `Which airport's IATA is pen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "city" text, "province" text, "country" text, "iata" text, "airport" text ); ### SQL Given th...
SELECT "event" FROM "women" WHERE "record"='4:02.54';
## Task Generate a SQL query to answer the following question: `Which Event has a Record of 4:02.54?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ### SQL Giv...
SELECT "date" FROM "women" WHERE "event"='3000 m';
## Task Generate a SQL query to answer the following question: `Whcih Date has an Event of 3000 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ### SQL Given...
SELECT "record" FROM "women" WHERE "date"='23 february 1986';
## Task Generate a SQL query to answer the following question: `Which Record has a Date of 23 february 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ###...
SELECT "date" FROM "women" WHERE "record"='8:39.49';
## Task Generate a SQL query to answer the following question: `Which Date has a Record of 8:39.49?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ### SQL Give...
SELECT "record" FROM "women" WHERE "date"='3 march 2013';
## Task Generate a SQL query to answer the following question: `Which Record has a Date of 3 march 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ### SQL...
SELECT "nation" FROM "women" WHERE "record"='15.16 m';
## Task Generate a SQL query to answer the following question: `Which Nation has a Record of 15.16 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "event" text, "record" text, "nation" text, "date" text, "venue" text ); ### SQL Gi...
SELECT "nationality" FROM "player_statistics" WHERE "goals">8 AND "apps"=52;
## Task Generate a SQL query to answer the following question: `What is the Nationality of the Player with more than 8 Goals and Apps of 52?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_statistics" ( "pos" text, "nationality" text, "pla...
SELECT AVG("apps") FROM "player_statistics" WHERE "player"='gilberto' AND "goals">1;
## Task Generate a SQL query to answer the following question: `How many Apps did Player Gilberto with more than 1 Goals have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_statistics" ( "pos" text, "nationality" text, "player" text, "...
SELECT "date" FROM "second_three_matches" WHERE "round"='4th' AND "home_team"='itabuna';
## Task Generate a SQL query to answer the following question: `On what date was the 4th round, with home team Itabuna, played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_three_matches" ( "round" text, "date" text, "home_team" text, ...
SELECT "away_team" FROM "second_three_matches" WHERE "round"='6th' AND "home_team"='bahia';
## Task Generate a SQL query to answer the following question: `In the 6th round match with home team Bahia, who was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_three_matches" ( "round" text, "date" text, "home_team" tex...
SELECT "score" FROM "second_three_matches" WHERE "round"='5th' AND "away_team"='bahia';
## Task Generate a SQL query to answer the following question: `For the 5th round match with away team of Bahia, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_three_matches" ( "round" text, "date" text, "home_te...
SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, southeast';
## Task Generate a SQL query to answer the following question: `Which League has a Regular Season of 2nd, southeast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" t...
SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='on hiatus.';
## Task Generate a SQL query to answer the following question: `Who Playoffs has a Regular Season of on hiatus.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text,...
SELECT MIN("population") FROM "city_status_since_after_1996" WHERE "city"='kragerø';
## Task Generate a SQL query to answer the following question: `What is the population of Kragerø?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "city_status_since_after_1996" ( "city" text, "municipality" text, "county" text, "town_status" te...
SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "town_status"='2010';
## Task Generate a SQL query to answer the following question: `What is the highest population of a city that has a town status of 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "city_status_since_after_1996" ( "city" text, "municipality" tex...
SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "municipality"='porsgrunn';
## Task Generate a SQL query to answer the following question: `What is the highest population within the municipality of Porsgrunn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "city_status_since_after_1996" ( "city" text, "municipality" text, ...
SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "height_cm"=190 AND "jersey_number"=11;
## Task Generate a SQL query to answer the following question: `What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?` ### 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...
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "2009_10_team"='london knights';
## Task Generate a SQL query to answer the following question: `What is the position of the player who played for the London Knights during 2009-2010?` ### 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" ( "positi...
SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1971 AND "entrant"='scuderia ferrari' AND "engine"='ferrari v12';
## Task Generate a SQL query to answer the following question: `What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "yea...
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "year">1974 AND "entrant"='walter wolf racing';
## Task Generate a SQL query to answer the following question: `What's the least amount of points that Walter Wolf Racing had after 1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entr...
SELECT SUM("year") FROM "achievements" WHERE "position"='6th' AND "competition"='commonwealth games';
## Task Generate a SQL query to answer the following question: `What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" ...
SELECT MAX("year") FROM "achievements" WHERE "venue"='beijing, pr china';
## Task Generate a SQL query to answer the following question: `What is the highest Year, when the Venue is Beijing, PR China?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "posit...
SELECT AVG("year") FROM "achievements" WHERE "competition"='oceania youth championships';
## Task Generate a SQL query to answer the following question: `What is the average Year, when Competition is Oceania Youth Championships?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" te...
SELECT "event" FROM "achievements" WHERE "position"='4th';
## Task Generate a SQL query to answer the following question: `What is Event, when Position is 4th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ...
SELECT "date" FROM "release_history" WHERE "format"='cd';
## Task Generate a SQL query to answer the following question: `What is the Date with a Format that is cd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" t...
SELECT "catalog" FROM "release_history" WHERE "date"='march 13, 2002';
## Task Generate a SQL query to answer the following question: `What is the Catalog with a Date that is march 13, 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, ...
SELECT "label" FROM "release_history" WHERE "catalog"='mhcl-20017';
## Task Generate a SQL query to answer the following question: `What is the Label with a Catalog that is mhcl-20017?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "...
SELECT "catalog" FROM "release_history" WHERE "date"='february 20, 2002';
## Task Generate a SQL query to answer the following question: `What is the Catalog with a Date that is february 20, 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" tex...
SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num">22 AND "position"='f' AND "birthdate"='march 19, 1980';
## Task Generate a SQL query to answer the following question: `What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "li...
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='buffalo, new york';
## Task Generate a SQL query to answer the following question: `What is the Position, when the Birthplace is Buffalo, New York?` ### 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" text, "jersey_num...
SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<18 AND "height_cm">185 AND "birthdate"='march 3, 1980';
## Task Generate a SQL query to answer the following question: `What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE ...
SELECT "final_score" FROM "schedule" WHERE "attendance"='65,309';
## Task Generate a SQL query to answer the following question: `What was the final score for the game with 65,309 people in attendance?` ### 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, "game...
SELECT AVG("week") FROM "schedule" WHERE "opponent"='chicago bears';
## Task Generate a SQL query to answer the following question: `What average week number had the Chicago bears as 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, "opponent" text, "game_site" t...
SELECT "record" FROM "schedule" WHERE "game_site"='rich stadium' AND "opponent"='new england patriots';
## Task Generate a SQL query to answer the following question: `What is the record for the game against New England Patriots at the Rich Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" tex...
SELECT "finish" FROM "indianapolis_500" WHERE "chassis"='dallara' AND "start"='5' AND "year"=2006;
## Task Generate a SQL query to answer the following question: `What did the Dallara chassis with a 5 start in 2006 finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" ...
SELECT "chassis" FROM "indianapolis_500" WHERE "engine"='honda' AND "year"=2008;
## Task Generate a SQL query to answer the following question: `What is the chassis of the Honda Engine from 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" text, "...
SELECT MIN("year") FROM "indianapolis_500" WHERE "engine"='honda' AND "finish"=4;
## Task Generate a SQL query to answer the following question: `What is the earliest year of the Honda Engine with a finish of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "s...
SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics';
## Task Generate a SQL query to answer the following question: `What was 2002, when 2008 was, "career statistics"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1998" text, "1999" text, "200...
SELECT "2009" FROM "singles_performance_timeline" WHERE "2001"='not masters series';
## Task Generate a SQL query to answer the following question: `What was 2009, when 2001 was, "not masters series"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1998" text, "1999" text, "20...
SELECT "2011" FROM "singles_performance_timeline" WHERE "2005"='2r' AND "2003"='2r';
## Task Generate a SQL query to answer the following question: `What was 2011, when 2005 was 2R, and when 2003 was 2R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1998" text, "1999" text, ...
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2003"='a' AND "tournament"='madrid masters';
## Task Generate a SQL query to answer the following question: `What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tourname...
SELECT "2002" FROM "singles_performance_timeline" WHERE "2011"='atp masters series';
## Task Generate a SQL query to answer the following question: `What was 2002, when 2011 was, "atp masters series"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1998" text, "1999" text, "20...
SELECT MIN("wins") FROM "leaders" WHERE "player"='larry nelson' AND "rank"<5;
## Task Generate a SQL query to answer the following question: `What was the lowest wins of Larry Nelson, who ranked less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" ...
SELECT SUM("earnings") FROM "leaders" WHERE "rank"=3;
## Task Generate a SQL query to answer the following question: `What is the sum of the earnings for rank 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );...
SELECT MIN("rank") FROM "leaders" WHERE "earnings"='24,920,665';
## Task Generate a SQL query to answer the following question: `What was the lowest rank which earned 24,920,665?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" r...
SELECT SUM("wins") FROM "leaders" WHERE "rank"<3 AND "earnings">'24,920,665';
## Task Generate a SQL query to answer the following question: `What is the sum of wins for a rank less than 3, and earnings more than 24,920,665?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" te...
SELECT "country" FROM "leaders" WHERE "rank">4;
## Task Generate a SQL query to answer the following question: `What is the country is ranked more than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ...
SELECT SUM("week") FROM "schedule" WHERE "attendance"='53,147';
## Task Generate a SQL query to answer the following question: `What the total of Week with attendance of 53,147` ### 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 MIN("week") FROM "schedule" WHERE "date"='december 26, 1999';
## Task Generate a SQL query to answer the following question: `What is the lowest week for December 26, 1999` ### 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" t...
SELECT "season" FROM "career_summary" WHERE "races"=6 AND "team"='australia';
## Task Generate a SQL query to answer the following question: `What season has 6 races and the team is Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "win...
SELECT COUNT("races") FROM "career_summary" WHERE "wins">8;
## Task Generate a SQL query to answer the following question: `What is the total number of Races when there were more than 8 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "ra...
SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "republican_ticket"='john a. may';
## Task Generate a SQL query to answer the following question: `Who's the Socialist ticket with a Republican ticket of john a. may?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936_state_election_results" ( "office" text, "democratic_ticket" te...
SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='m. william bray';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Democratic ticket of m. william bray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936_state_election_results" ( "office" text, "democratic_ticke...
SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='herbert h. lehman';
## Task Generate a SQL query to answer the following question: `Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936_state_election_results" ( "office" text, "democratic_tick...
SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='frank r. crosswaith';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936_state_election_results" ( "office" text, "democratic_ti...
SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='edna mitchell blue';
## Task Generate a SQL query to answer the following question: `Who's the Republican ticket with a Socialist ticket of edna mitchell blue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936_state_election_results" ( "office" text, "democratic_tic...
SELECT MIN("year") FROM "women" WHERE "player"='serena williams' AND "sets">2;
## Task Generate a SQL query to answer the following question: `what's the earliest year that serena williams had more than 2 sets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "aces" real, "player" text, "opponent" text, "year" rea...
SELECT MIN("year") FROM "women" WHERE "event"='wimbledon' AND "opponent"='zheng jie';
## Task Generate a SQL query to answer the following question: `what's the earliest year that the wimbledon opponent was zheng jie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "aces" real, "player" text, "opponent" text, "year" rea...
SELECT SUM("year") FROM "women" WHERE "opponent"='caroline garcia';
## Task Generate a SQL query to answer the following question: `what year was the opponent caroline garcia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "aces" real, "player" text, "opponent" text, "year" real, "event" text, "se...
SELECT MAX("year") FROM "women" WHERE "aces"=20 AND "opponent"='samantha stosur' AND "sets">2;
## Task Generate a SQL query to answer the following question: `what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "aces" real, ...
SELECT SUM("year") FROM "women" WHERE "event"='memphis';
## Task Generate a SQL query to answer the following question: `what year was the memphis event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "aces" real, "player" text, "opponent" text, "year" real, "event" text, "sets" real, ...
SELECT "season" FROM "a" WHERE "school_club_team"='far eastern' AND "number"=26;
## Task Generate a SQL query to answer the following question: `What season did the player who had the number 26 play on who came from far eastern?` ### 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, ...
SELECT "season" FROM "a" WHERE "school_club_team"='cebu';
## Task Generate a SQL query to answer the following question: `What season did the player who came from Cebu play in?` ### 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, ...
SELECT "winner_s_share" FROM "winners" WHERE "champion"='jessica shepley';
## Task Generate a SQL query to answer the following question: `How much did Champion jessica shepley share when she won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "...
SELECT "country" FROM "winners" WHERE "year"=2012;
## Task Generate a SQL query to answer the following question: `What was the country in the year 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "tou...
SELECT COUNT("purse") FROM "winners" WHERE "year">2012 AND "winner_s_share"<'15,000';
## Task Generate a SQL query to answer the following question: `How many purses were there after 2012 that had a winner's share of less than 15,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" ...
SELECT "year" FROM "list" WHERE "manufacturer"='letecke zavody n.p., jinonice';
## Task Generate a SQL query to answer the following question: `In what year was Letecke Zavody N.P., Jinonice the manufacturer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, ...