output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "rank"='39';
## Task Generate a SQL query to answer the following question: `What is the season year where the rank is 39?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season year where the rank is 39?`: ```sql
SELECT COUNT("season_premiere") FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.17';
## Task Generate a SQL query to answer the following question: `What is the number of season premieres were 10.17 people watched?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of season premieres were 10.17 people watched?`: ```sql
SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "season"=12;
## Task Generate a SQL query to answer the following question: `What is the year of the season that was 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year of the season that was 12?`: ```sql
SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "year"=2012;
## Task Generate a SQL query to answer the following question: `In 2012 what was the average finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `In 2012 what was the average finish?`: ```sql
SELECT MIN("wins") FROM "nascar_sprint_cup_series" WHERE "year"=1983;
## Task Generate a SQL query to answer the following question: `How many wins happened in 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins happened in 1983?`: ```sql
SELECT COUNT("top_10") FROM "nascar_sprint_cup_series" WHERE "avg_start"='29.4';
## Task Generate a SQL query to answer the following question: `How many top tens had an average start of 29.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many top tens had an average start of 29.4?`: ```sql
SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='19.1';
## Task Generate a SQL query to answer the following question: `How many poles had an average finish of 19.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many poles had an average finish of 19.1?`: ```sql
SELECT MIN("starts") FROM "nascar_sprint_cup_series" WHERE "team_s"='Hendrick Motorsports';
## Task Generate a SQL query to answer the following question: `How many starts did Hendrick motorsports have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many starts did Hendrick motorsports have?`: ```sql
SELECT "player" FROM "round_ten" WHERE "position"='Centre' AND "nhl_team"='Florida Panthers';
## Task Generate a SQL query to answer the following question: `NHL players are all centre in Florida panthers.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `NHL players are all centre in Florida panthers.`: ```sql
SELECT "player" FROM "round_ten" WHERE "nhl_team"='San Jose Sharks' AND "nationality"='United States';
## Task Generate a SQL query to answer the following question: `NHL team player San Jose Sharks is United States nationally.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `NHL team player San Jose Sharks is United States nationally.`: ```sql
SELECT "position" FROM "round_ten" WHERE "player"='Mark Polak';
## Task Generate a SQL query to answer the following question: `All players are position mark polak.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `All players are position mark polak.`: ```sql
SELECT "nhl_team" FROM "round_ten" WHERE "position"='Centre' AND "pick"<243.0;
## Task Generate a SQL query to answer the following question: `Position in nhl team centre are all smaller pick than 243.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Position in nhl team centre are all smaller pick than 243.0`: ```sql
SELECT "college_junior_club_team" FROM "round_eleven" WHERE "nhl_team"='St. Louis Blues';
## Task Generate a SQL query to answer the following question: `What college/junior/club teams do the players from the St. Louis Blues come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What college/junior/club teams do the players from the St. Louis Blues come from?`: ```sql
SELECT "nhl_team" FROM "round_eleven" WHERE "college_junior_club_team"='TPS (Finland)';
## Task Generate a SQL query to answer the following question: `What teams do the players from TPS (Finland) play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams do the players from TPS (Finland) play for?`: ```sql
SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Doug Nolan';
## Task Generate a SQL query to answer the following question: `What high school team did Doug Nolan play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What high school team did Doug Nolan play for?`: ```sql
SELECT "college_junior_club_team" FROM "round_eleven" WHERE "player"='Per Gustafsson';
## Task Generate a SQL query to answer the following question: `What club team is Per Gustafsson play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What club team is Per Gustafsson play for?`: ```sql
SELECT "nationality" FROM "round_eleven" WHERE "player"='Shayne Wright';
## Task Generate a SQL query to answer the following question: `What is the nationality of Shayne Wright?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of Shayne Wright?`: ```sql
SELECT "southern_england" FROM "voting" WHERE "northern_ireland"=3;
## Task Generate a SQL query to answer the following question: `How many votes did Southern England cast whilst Northern Ireland cast 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many votes did Southern England cast whilst Northern Ireland cast 3?`: ```sql
SELECT MIN("scotland") FROM "voting";
## Task Generate a SQL query to answer the following question: `What was the lowest number of votes Scotland cast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest number of votes Scotland cast?`: ```sql
SELECT COUNT("scotland") FROM "voting" WHERE "total"=35;
## Task Generate a SQL query to answer the following question: `What is the total number of votes if Scotland cast 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of votes if Scotland cast 35?`: ```sql
SELECT "northern_ireland" FROM "voting" WHERE "total"=35;
## Task Generate a SQL query to answer the following question: `How many votes did Northern Ireland cast if the total was 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many votes did Northern Ireland cast if the total was 35?`: ```sql
SELECT MIN("wales") FROM "voting" WHERE "northern_england"=6;
## Task Generate a SQL query to answer the following question: `How many votes did Wales cast when Northern England cast 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "voting" ( "song" text, "mobiles" real, "northern_ireland" real, "northern_england" real, "scotland" real, "southern_england" real, "wales" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many votes did Wales cast when Northern England cast 6?`: ```sql
SELECT "team_s" FROM "nascar_nationwide_series" WHERE "top_5"=9 AND "wins"=1;
## Task Generate a SQL query to answer the following question: `What teams had 9 in the top 5 and 1 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams had 9 in the top 5 and 1 wins?`: ```sql
SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Vadim Sharifijanov';
## Task Generate a SQL query to answer the following question: `What teams did the player vadim sharifijanov play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams did the player vadim sharifijanov play for?`: ```sql
SELECT "position" FROM "round_one" WHERE "nhl_team"='Hartford Whalers';
## Task Generate a SQL query to answer the following question: `What positions do the hartford whalers nhl team have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What positions do the hartford whalers nhl team have?`: ```sql
SELECT MIN("pick") FROM "round_one" WHERE "player"='Brett Lindros';
## Task Generate a SQL query to answer the following question: `What is the smallest pick for the player, brett lindros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest pick for the player, brett lindros?`: ```sql
SELECT "position" FROM "round_one" WHERE "college_junior_club_team"='Molot Perm (Russia)';
## Task Generate a SQL query to answer the following question: `What positions does the college/junior/club team, molot perm (russia) have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What positions does the college/junior/club team, molot perm (russia) have?`: ```sql
SELECT "nationality" FROM "round_one" WHERE "nhl_team"='New York Islanders';
## Task Generate a SQL query to answer the following question: `The nhl team new york islanders is what nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `The nhl team new york islanders is what nationality?`: ```sql
SELECT "vacator" FROM "table1_1013168_3" WHERE "district"='Louisiana 1st';
## Task Generate a SQL query to answer the following question: `What is the name of the vacator for district Louisiana 1st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1013168_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the vacator for district Louisiana 1st?`: ```sql
SELECT "notation" FROM "critical_temperature_t_c_crystal_structu" WHERE "crystal_structure"='Tetragonal' AND "formula"='Bi 2 Sr 2 CaCu 2 O 8';
## Task Generate a SQL query to answer the following question: `What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8`: ```sql
SELECT "no_of_cu_o_planes_in_unit_cell" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='Tl 2 Ba 2 CuO 6';
## Task Generate a SQL query to answer the following question: `How many times is the formula tl 2 ba 2 cuo 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times is the formula tl 2 ba 2 cuo 6?`: ```sql
SELECT "crystal_structure" FROM "critical_temperature_t_c_crystal_structu" WHERE "formula"='YBa 2 Cu 3 O 7';
## Task Generate a SQL query to answer the following question: `What is the crystal structure for the formula yba 2 cu 3 o 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the crystal structure for the formula yba 2 cu 3 o 7?`: ```sql
SELECT COUNT("t_c_k") FROM "critical_temperature_t_c_crystal_structu" WHERE "notation"='Tl-2212';
## Task Generate a SQL query to answer the following question: `What is the number for t c (k) when the notation is tl-2212?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "critical_temperature_t_c_crystal_structu" ( "formula" text, "notation" text, "t_c_k" real, "no_of_cu_o_planes_in_unit_cell" real, "crystal_structure" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number for t c (k) when the notation is tl-2212?`: ```sql
SELECT COUNT("2010_est") FROM "references" WHERE "city"='Cremona';
## Task Generate a SQL query to answer the following question: `How many 2010 estimations have been done in the city of Cremona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 2010 estimations have been done in the city of Cremona?`: ```sql
SELECT MIN("2001_census") FROM "references" WHERE "region"='Abruzzo' AND "1981_census">51092.0;
## Task Generate a SQL query to answer the following question: `What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 2001 census of the region of Abruzzo where the 1871 census is bigger than 51092.0?`: ```sql
SELECT MAX("1991_census") FROM "references" WHERE "city"='Carpi';
## Task Generate a SQL query to answer the following question: `What's the 1991 census of the city of Carpi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1991 census of the city of Carpi?`: ```sql
SELECT COUNT("2001_census") FROM "references" WHERE "num"=13;
## Task Generate a SQL query to answer the following question: `How many 2001 censuses are there on number 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 2001 censuses are there on number 13?`: ```sql
SELECT "1981_census" FROM "references" WHERE "city"='Livorno';
## Task Generate a SQL query to answer the following question: `What's the 1981 census of Livorno?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "num" real, "city" text, "1981_census" real, "1991_census" real, "2001_census" real, "2010_est" real, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1981 census of Livorno?`: ```sql
SELECT "nhl_team" FROM "round_eight" WHERE "player"='Mike Loach';
## Task Generate a SQL query to answer the following question: `Which NHL team has player Mike Loach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NHL team has player Mike Loach?`: ```sql
SELECT "nhl_team" FROM "round_eight" WHERE "player"='Peter Strom';
## Task Generate a SQL query to answer the following question: `What is the NHL team that has Peter Strom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the NHL team that has Peter Strom?`: ```sql
SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Keith McCambridge';
## Task Generate a SQL query to answer the following question: `What team is Keith Mccambridge on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is Keith Mccambridge on?`: ```sql
SELECT COUNT("nationality") FROM "round_eight" WHERE "pick"=193;
## Task Generate a SQL query to answer the following question: `How many nationalities are the pick 193?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many nationalities are the pick 193?`: ```sql
SELECT "successor" FROM "table1_1013168_2" WHERE "date_of_successors_formal_installation"='November 8, 1978';
## Task Generate a SQL query to answer the following question: `Who was the succesor that was formally installed on November 8, 1978?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1013168_2" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the succesor that was formally installed on November 8, 1978?`: ```sql
SELECT COUNT("tonioli") FROM "table1_1014319_1" WHERE "goodman"='10';
## Task Generate a SQL query to answer the following question: `How many songs received a 10 from Goodman and were rated by Tonioli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many songs received a 10 from Goodman and were rated by Tonioli?`: ```sql
SELECT "goodman" FROM "table1_1014319_1" WHERE "total"='31' AND "horwood"='7' AND "result"='Safe';
## Task Generate a SQL query to answer the following question: `What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What score did Goodman give to all songs with safe results, which received a 7 from Horwood and have a total score of 31?`: ```sql
SELECT "dixon" FROM "table1_1014319_1" WHERE "dance_song"='Samba / Young Hearts Run Free' AND "result"='Second place';
## Task Generate a SQL query to answer the following question: `What score did Dixon give to the song "samba / young hearts run free", which was in second place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What score did Dixon give to the song "samba / young hearts run free", which was in second place?`: ```sql
SELECT COUNT("goodman") FROM "table1_1014319_1" WHERE "result"='Second place' AND "dance_song"='Samba / Young Hearts Run Free';
## Task Generate a SQL query to answer the following question: `How many scores did Goodman give to "samba / young hearts run free", which was in second place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1014319_1" ( "week" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many scores did Goodman give to "samba / young hearts run free", which was in second place?`: ```sql
SELECT "year_built" FROM "current_fleet_details" WHERE "no_built"=7;
## Task Generate a SQL query to answer the following question: `What year was number 7 built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet_details" ( "class" text, "operator" text, "no_built" real, "year_built" text, "cars_per_set" real, "unit_nos" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was number 7 built?`: ```sql
SELECT "we_two" FROM "nominal_morphology" WHERE "case_suffix"='loc.';
## Task Generate a SQL query to answer the following question: `What is we two when the case/suffix is loc.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is we two when the case/suffix is loc.?`: ```sql
SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "we_two"='ngalbelpa';
## Task Generate a SQL query to answer the following question: `What is them two (the two) when we two is ngalbelpa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is them two (the two) when we two is ngalbelpa?`: ```sql
SELECT "them_two_the_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœbalngu';
## Task Generate a SQL query to answer the following question: `What is them two (the two) when you and i is ngœbalngu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is them two (the two) when you and i is ngœbalngu?`: ```sql
SELECT "who_two" FROM "nominal_morphology" WHERE "you_and_i"='ngœban';
## Task Generate a SQL query to answer the following question: `What is who-two where you and i is ngœban?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is who-two where you and i is ngœban?`: ```sql
SELECT "we_two" FROM "nominal_morphology" WHERE "you_two"='ngipen';
## Task Generate a SQL query to answer the following question: `What is we two where you two is ngipen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is we two where you two is ngipen?`: ```sql
SELECT "who_two" FROM "nominal_morphology" WHERE "you_two"='ngipelngu';
## Task Generate a SQL query to answer the following question: `What is who-two when you two is ngipelngu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominal_morphology" ( "case_suffix" text, "we_two" text, "you_and_i" text, "you_two" text, "them_two_the_two" text, "who_two" text ); ### SQL Given the database schema, here is the SQL query that answers `What is who-two when you two is ngipelngu?`: ```sql
SELECT "points" FROM "race_results" WHERE "driver"='Mark Martin';
## Task Generate a SQL query to answer the following question: `what's the points with driver  mark martin` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the points with driver  mark martin`: ```sql
SELECT "points" FROM "race_results" WHERE "driver"='Rusty Wallace';
## Task Generate a SQL query to answer the following question: `what's the points with driver  rusty wallace` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the points with driver  rusty wallace`: ```sql
SELECT COUNT("position") FROM "race_results" WHERE "driver"='Robby Gordon';
## Task Generate a SQL query to answer the following question: `what's the total number of position with driver  robby gordon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the total number of position with driver  robby gordon`: ```sql
SELECT MAX("position") FROM "race_results" WHERE "winnings"='$50,000';
## Task Generate a SQL query to answer the following question: `what's the maximum position with winnings  $50,000` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "position" real, "driver" text, "points" real, "winnings" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the maximum position with winnings  $50,000`: ```sql
SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Anastasiya Slutskaya';
## Task Generate a SQL query to answer the following question: `What actor was nominted for an award in the film Anastasiya Slutskaya?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What actor was nominted for an award in the film Anastasiya Slutskaya?`: ```sql
SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Falling Up';
## Task Generate a SQL query to answer the following question: `What was the film Falling up nominated for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the film Falling up nominated for?`: ```sql
SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Chopin: Desire for Love' AND "nomination"='Best Actress in a Leading Role';
## Task Generate a SQL query to answer the following question: `What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?`: ```sql
SELECT "actors_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='Chopin: Desire for Love' AND "nomination"='Best Actress in a Leading Role';
## Task Generate a SQL query to answer the following question: `What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?`: ```sql
SELECT "film_name" FROM "stozhary_2003_prize_winners" WHERE "actors_name"='Alla Sergiyko';
## Task Generate a SQL query to answer the following question: `Which films does the actor Alla Sergiyko star in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which films does the actor Alla Sergiyko star in?`: ```sql
SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "film_name"='27 Stolen Kisses';
## Task Generate a SQL query to answer the following question: `Which nominations was the film 27 Stolen Kisses nominated for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_2003_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nominations was the film 27 Stolen Kisses nominated for?`: ```sql
SELECT "actors_name" FROM "stozhary_99_prize_winners" WHERE "nomination"='Best Actor in a Supporting Role' AND "country"='Serbia';
## Task Generate a SQL query to answer the following question: `Which actor from Serbia was nominated for best actor in a supporting role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which actor from Serbia was nominated for best actor in a supporting role?`: ```sql
SELECT "country" FROM "stozhary_99_prize_winners" WHERE "actors_name"='Vsevolod Shilovskiy';
## Task Generate a SQL query to answer the following question: `Vsevolod Shilovskiy is from what country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Vsevolod Shilovskiy is from what country?`: ```sql
SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "film_name"='Totalitarian Romance';
## Task Generate a SQL query to answer the following question: `Which nominations are connected to the film Totalitarian Romance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nominations are connected to the film Totalitarian Romance?`: ```sql
SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "director"='Srdjan Dragojevic';
## Task Generate a SQL query to answer the following question: `Srdjan Dragojevic worked on a film which earned what nomination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Srdjan Dragojevic worked on a film which earned what nomination?`: ```sql
SELECT "actors_name" FROM "stozhary_99_prize_winners" WHERE "country"='Ukraine';
## Task Generate a SQL query to answer the following question: `Which actors are from Ukraine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_99_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which actors are from Ukraine?`: ```sql
SELECT "film_name" FROM "stozhary_95_prize_winners" WHERE "director"='Vadim Ilyenko';
## Task Generate a SQL query to answer the following question: `What was the film that vadim ilyenko directed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the film that vadim ilyenko directed?`: ```sql
SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "director"='Vadim Ilyenko';
## Task Generate a SQL query to answer the following question: `What was the actors name that vadim ilyenko directed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the actors name that vadim ilyenko directed?`: ```sql
SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "film_name"='Fuchzhou' AND "nomination"='Best Non-Professional Actor';
## Task Generate a SQL query to answer the following question: `What was the actors name for fuchzhou and nomination was best non-professional actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the actors name for fuchzhou and nomination was best non-professional actor?`: ```sql
SELECT "film_name" FROM "stozhary_95_prize_winners" WHERE "director"='Michaylo Ilyenko' AND "nomination"='Best Actor in a Supporting Role';
## Task Generate a SQL query to answer the following question: `What film did michaylo ilyenko make with best actor in a supporting role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What film did michaylo ilyenko make with best actor in a supporting role?`: ```sql
SELECT "actors_name" FROM "stozhary_95_prize_winners" WHERE "nomination"='Best Debut';
## Task Generate a SQL query to answer the following question: `What was the actor's name for best debut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the actor's name for best debut?`: ```sql
SELECT COUNT("nomination") FROM "stozhary_95_prize_winners" WHERE "actors_name"='Natalia Raskokoha';
## Task Generate a SQL query to answer the following question: `What was the number of nominations for natalia raskokoha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stozhary_95_prize_winners" ( "nomination" text, "actors_name" text, "film_name" text, "director" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of nominations for natalia raskokoha?`: ```sql
SELECT MAX("total_goals") FROM "barnsley";
## Task Generate a SQL query to answer the following question: `What is the highest value of Total Goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value of Total Goals?`: ```sql
SELECT MIN("fa_cup_goals") FROM "barnsley" WHERE "fa_cup_apps"=9;
## Task Generate a SQL query to answer the following question: `When FA Cup Apps is 9 what is the smallest number of FA Cup Goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `When FA Cup Apps is 9 what is the smallest number of FA Cup Goals?`: ```sql
SELECT MIN("total_goals") FROM "barnsley";
## Task Generate a SQL query to answer the following question: `What is the smallest number of Total Goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barnsley" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of Total Goals?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "fastest_lap"='Hideki Mutoh';
## Task Generate a SQL query to answer the following question: `What circuit was the race where Hideki Mutoh had the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What circuit was the race where Hideki Mutoh had the fastest lap?`: ```sql
SELECT MIN("production_code") FROM "table1_10269427_3" WHERE "title"='\"Foreign Exchange Problem / Turn About\"';
## Task Generate a SQL query to answer the following question: `what is the minimum production code with title "foreign exchange problem / turn about"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the minimum production code with title "foreign exchange problem / turn about"`: ```sql
SELECT "episode_num" FROM "table1_10269427_3" WHERE "title"='\"The Yindianapolis 500 / Personality Problem\"';
## Task Generate a SQL query to answer the following question: `what is the episode # for title "the yindianapolis 500 / personality problem"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the episode # for title "the yindianapolis 500 / personality problem"`: ```sql
SELECT "episode_num" FROM "table1_10269427_3" WHERE "production_code"=227;
## Task Generate a SQL query to answer the following question: `what is the episode # for production code 227` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the episode # for production code 227`: ```sql
SELECT "directed_by" FROM "table1_10269427_3" WHERE "written_by"='Sib Ventress / Aydrea ten Bosch';
## Task Generate a SQL query to answer the following question: `who directed the movie written by is sib ventress / aydrea ten bosch` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `who directed the movie written by is sib ventress / aydrea ten bosch`: ```sql
SELECT "production_code" FROM "table1_10269427_3" WHERE "title"='\"Skirting the Issue / Moon Over my Yinnie\"';
## Task Generate a SQL query to answer the following question: `what is the production code with title "skirting the issue / moon over my yinnie"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10269427_3" ( "episode_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the production code with title "skirting the issue / moon over my yinnie"`: ```sql
SELECT MAX("total_goals") FROM "sheffield_united";
## Task Generate a SQL query to answer the following question: `Whatis the number of total goals maximum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sheffield_united" ( "season" text, "division" text, "league_apps" real, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `Whatis the number of total goals maximum?`: ```sql
SELECT COUNT("temp_c") FROM "technology_overview" WHERE "adhesive_type"='Acryl';
## Task Generate a SQL query to answer the following question: `HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "technology_overview" ( "assembly_type" text, "adhesive_type" text, "time_sec" text, "temp_c" text, "pressure" text ); ### SQL Given the database schema, here is the SQL query that answers `HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL? `: ```sql
SELECT COUNT("opponents") FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';
## Task Generate a SQL query to answer the following question: `How many matches where played with Jim Pugh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matches where played with Jim Pugh?`: ```sql
SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';
## Task Generate a SQL query to answer the following question: `What is the score with partner Jim Pugh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score with partner Jim Pugh?`: ```sql
SELECT COUNT("surface") FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "score"='3–6, 7–6(5), 6–3';
## Task Generate a SQL query to answer the following question: `How many matched scored 3–6, 7–6(5), 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matched scored 3–6, 7–6(5), 6–3?`: ```sql
SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "partner"='Jim Pugh';
## Task Generate a SQL query to answer the following question: `What is the score of the match with partner Jim Pugh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the match with partner Jim Pugh?`: ```sql
SELECT "year" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "championship"='Wimbledon (2)';
## Task Generate a SQL query to answer the following question: `What year was the championship in Wimbledon (2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the championship in Wimbledon (2)?`: ```sql
SELECT "score" FROM "mixed_doubles_6_3_titles_3_runner_ups" WHERE "opponents"='Gretchen Magers Kelly Jones';
## Task Generate a SQL query to answer the following question: `What is the score of the match with opponents Gretchen Magers Kelly Jones?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_6_3_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the match with opponents Gretchen Magers Kelly Jones?`: ```sql
SELECT COUNT("date_of_birth") FROM "historical" WHERE "representative"='Earl Hanley Beshlin';
## Task Generate a SQL query to answer the following question: `How many birthdays does Earl Hanley Beshlin have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); ### SQL Given the database schema, here is the SQL query that answers `How many birthdays does Earl Hanley Beshlin have?`: ```sql
SELECT "party" FROM "historical" WHERE "date_of_birth"='November 10, 1880';
## Task Generate a SQL query to answer the following question: `Which politican party has a birthday of November 10, 1880` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); ### SQL Given the database schema, here is the SQL query that answers `Which politican party has a birthday of November 10, 1880`: ```sql
SELECT "representative" FROM "historical" WHERE "date_of_birth"='January 31, 1866';
## Task Generate a SQL query to answer the following question: `Which representative has a birthday of January 31, 1866?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical" ( "begin_date" text, "end_date" text, "representative" text, "date_of_birth" text, "house_term" text, "state_served" text, "party" text, "age_years_days" text ); ### SQL Given the database schema, here is the SQL query that answers `Which representative has a birthday of January 31, 1866?`: ```sql
SELECT "singles_w_l" FROM "current_team" WHERE "player"='Laurynas Grigelis';
## Task Generate a SQL query to answer the following question: `What is the Singles W-L for the players named Laurynas Grigelis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_team" ( "player" text, "current_singles_ranking" text, "current_doubles_ranking" text, "first_year_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Singles W-L for the players named Laurynas Grigelis?`: ```sql
SELECT "current_singles_ranking" FROM "current_team" WHERE "player"='Mantas Bugailiškis';
## Task Generate a SQL query to answer the following question: `What is the Current singles ranking for the player named Mantas Bugailiškis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_team" ( "player" text, "current_singles_ranking" text, "current_doubles_ranking" text, "first_year_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Current singles ranking for the player named Mantas Bugailiškis?`: ```sql
SELECT COUNT("1999_broadway") FROM "cast_of_major_productions_1954_1999" WHERE "character"='Mrs. Darling';
## Task Generate a SQL query to answer the following question: `How many playerd Mrs. Darling in the 1999 Broadway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); ### SQL Given the database schema, here is the SQL query that answers `How many playerd Mrs. Darling in the 1999 Broadway?`: ```sql
SELECT "1990_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "character"='Peter Pan';
## Task Generate a SQL query to answer the following question: `Who played Peter Pan in the 1990 Broadway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played Peter Pan in the 1990 Broadway?`: ```sql
SELECT "1991_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1999_broadway"='Barbara McCulloh';
## Task Generate a SQL query to answer the following question: `Who played in the 1991 Broadway before Barbara McCulloh played the part in the 1999 Broadway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played in the 1991 Broadway before Barbara McCulloh played the part in the 1999 Broadway?`: ```sql