text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "What is the track whent the vocal percussionist is unknown?". [/INST] SELECT "track" FROM "out_of_the_blue_discography" WHERE "vocal_percussionist"='unknown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the arranger when the vocal percussionist is Alexei Kalveks and Dave Brennan?". [/INST] SELECT "arranger_s" FROM "out_of_the_blue_discography" WHERE "vocal_percussionist"='Alexei Kalveks and Dave Brennan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "What is the original artist when the vocal percussionist is Alexei Kalveks?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "vocal_percussionist"='Alexei Kalveks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "How many km 2 does the area with nominal GDP and 16,852,000,000 in usd(2012) cover?". [/INST] SELECT "area_km_2" FROM "countries" WHERE "gdp_nominal_usd_2012"='16,852,000,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "How few km 2 does the area with Nay Pyi Taw as capital cover?". [/INST] SELECT MIN("area_km_2") FROM "countries" WHERE "capital"='Nay Pyi Taw';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "How many HDI (2012) does the area with nominal GDP and 14,246,000,000 USD (2012) have?". [/INST] SELECT COUNT("hdi_2012") FROM "countries" WHERE "gdp_nominal_usd_2012"='14,246,000,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "What is the 2012 population of Indonesia?". [/INST] SELECT "population_2012" FROM "countries" WHERE "country"='Indonesia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "What is the HDI 2012) of the area with nominal GDP per capita and $849 USD(2012)?". [/INST] SELECT "hdi_2012" FROM "countries" WHERE "gdp_nominal_per_capita_usd_2012"='$849';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "countries" ( "country" text, "area_km_2" real, "population_2012" real, "density_km_2" real, "gdp_nominal_usd_2012" text, "gdp_nominal_per_capita_usd_2012" text, "hdi_2012" text, "capital" text );. Question: "What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital?". [/INST] SELECT COUNT("gdp_nominal_per_capita_usd_2012") FROM "countries" WHERE "capital"='Phnom Penh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "name" text, "jockey" text, "age" real, "weight_st_lb" text, "starting_price" text, "distance" text );. Question: "What is the distance of jockey Jason Titley?". [/INST] SELECT "distance" FROM "finishing_order" WHERE "jockey"='Jason Titley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "name" text, "jockey" text, "age" real, "weight_st_lb" text, "starting_price" text, "distance" text );. Question: "What is the name of the jockey for Pink Gin?". [/INST] SELECT "jockey" FROM "finishing_order" WHERE "name"='Pink Gin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "The location attendance is ford center 17,021 on what dates?". [/INST] SELECT "date" FROM "game_log" WHERE "location_attendance"='Ford Center 17,021';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "In game 73, what were the total number of high assists?". [/INST] SELECT COUNT("high_assists") FROM "game_log" WHERE "game"=73;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pre_season" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the location for the game on October 20 with it's corresponding attendance?". [/INST] SELECT "location_attendance" FROM "pre_season" WHERE "date"='October 20';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28785738_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who directed episode 11 of the season?". [/INST] SELECT "director" FROM "table1_28785738_1" WHERE "no_in_season"=11;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "county" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "Which player has a 50 of 2?". [/INST] SELECT "player" FROM "batting_averages" WHERE "50s"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "county" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "How many 100 for the player with 3 50s?". [/INST] SELECT "100s" FROM "batting_averages" WHERE "50s"=3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "county" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );. Question: "What is the average for the player from Lancashire 1 100?". [/INST] SELECT "average" FROM "batting_averages" WHERE "county"='Lancashire' AND "100s"=1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802668_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers" text );. Question: "How many episode titles does episode 19 in the season have?". [/INST] SELECT COUNT("title") FROM "table1_28802668_3" WHERE "no_in_season"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802668_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers" text );. Question: "How many people watched "it's better to burn out than fae away"?". [/INST] SELECT "viewers" FROM "table1_28802668_3" WHERE "title"='\"It''s Better to Burn Out Than Fae Away\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802668_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers" text );. Question: "How many different title names had 358,000 viewers?". [/INST] SELECT COUNT("title") FROM "table1_28802668_3" WHERE "viewers"='358,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );. Question: "if the bbi is 4/39 what is the average". [/INST] SELECT "average" FROM "bowling_averages" WHERE "bbi"='4/39';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );. Question: "if the economy is 3.63 what is the bbi". [/INST] SELECT "bbi" FROM "bowling_averages" WHERE "economy"='3.63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );. Question: "in the leage what was the minimum 4wi". [/INST] SELECT MIN("4wi") FROM "bowling_averages";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802165_1" ( "townland" text, "s_acre" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the poor law union on Marshalstown?". [/INST] SELECT "poor_law_union" FROM "table1_28802165_1" WHERE "townland"='Marshalstown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802165_1" ( "townland" text, "s_acre" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the maximum acres in Castledermot?". [/INST] SELECT MAX("s_acre") FROM "table1_28802165_1" WHERE "civil_parish"='Castledermot';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802165_1" ( "townland" text, "s_acre" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "What is the civil parish of Aghafullim?". [/INST] SELECT "civil_parish" FROM "table1_28802165_1" WHERE "townland"='Aghafullim';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28802165_1" ( "townland" text, "s_acre" real, "barony" text, "civil_parish" text, "poor_law_union" text );. Question: "How many acres is the townland of Maddenstown Middle?". [/INST] SELECT "s_acre" FROM "table1_28802165_1" WHERE "townland"='Maddenstown Middle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28859177_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "How many original air dates did the episode directed by Bethany rooney have?". [/INST] SELECT COUNT("original_air_date") FROM "table1_28859177_3" WHERE "directed_by"='Bethany Rooney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28859177_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the production code for the episode that aired on October 15, 2004?". [/INST] SELECT "production_code" FROM "table1_28859177_3" WHERE "original_air_date"='October 15, 2004';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28859177_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the original air date for episode graeme clifford directed and lindsay sturman wrote?". [/INST] SELECT "original_air_date" FROM "table1_28859177_3" WHERE "directed_by"='Graeme Clifford' AND "written_by"='Lindsay Sturman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Who was the player that was picked by Los Angeles Kings?". [/INST] SELECT "player" FROM "round_six" WHERE "nhl_team"='Los Angeles Kings';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_six" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What nationality was peter slamiar?". [/INST] SELECT "nationality" FROM "round_six" WHERE "player"='Peter Slamiar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What team did the New York Rangers recruit a player from?". [/INST] SELECT "college_junior_club_team" FROM "round_four" WHERE "nhl_team"='New York Rangers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many countries had players named Marc Savard get picked?". [/INST] SELECT COUNT("nationality") FROM "round_four" WHERE "player"='Marc Savard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What country does the player who joined the Vancouver Canucks originally hail from?". [/INST] SELECT "nationality" FROM "round_four" WHERE "nhl_team"='Vancouver Canucks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many times did Alyn McCauley get picked?". [/INST] SELECT COUNT("pick") FROM "round_four" WHERE "player"='Alyn McCauley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?". [/INST] SELECT "nationality" FROM "round_three" WHERE "position"='Left Wing' AND "college_junior_club_team"='Portland Winterhawks (WHL)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which nhl team has the player kevin mckay?". [/INST] SELECT "nhl_team" FROM "round_three" WHERE "player"='Kevin McKay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many picks have canada as the nationality and larry courville is the player?". [/INST] SELECT COUNT("pick") FROM "round_three" WHERE "nationality"='Canada' AND "player"='Larry Courville';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_three" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which pick has marko makinen as the player?". [/INST] SELECT "pick" FROM "round_three" WHERE "player"='Marko Makinen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_nine" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What college club team did the Dallas Stars choose their draft pick from?". [/INST] SELECT "college_junior_club_team" FROM "round_nine" WHERE "nhl_team"='Dallas Stars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_nine" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Who was picked for the draft by St. Louis Blues?". [/INST] SELECT "player" FROM "round_nine" WHERE "nhl_team"='St. Louis Blues';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "Which stadium is located in Adelaide, South Australia? ". [/INST] SELECT "stadium" FROM "purpose_built_stadiums" WHERE "location"='Adelaide, South Australia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "In what location was a stadium built for the St Kilda Football Club?". [/INST] SELECT "location" FROM "purpose_built_stadiums" WHERE "built_for"='St Kilda Football Club';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "What is the location of the Moorabbin Oval stadium?". [/INST] SELECT "location" FROM "purpose_built_stadiums" WHERE "stadium"='Moorabbin Oval';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "What was the stadium in Adelaide, South Australia built for? ". [/INST] SELECT "built_for" FROM "purpose_built_stadiums" WHERE "location"='Adelaide, South Australia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "What was the stadium in Moorabbin, Victoria built for?". [/INST] SELECT "built_for" FROM "purpose_built_stadiums" WHERE "location"='Moorabbin, Victoria';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "purpose_built_stadiums" ( "stadium" text, "location" text, "opened" real, "built_for" text, "capacity_at_construction" real );. Question: "What was the capacity at construction of the stadium in Gold Coast, Queensland? ". [/INST] SELECT "capacity_at_construction" FROM "purpose_built_stadiums" WHERE "location"='Gold Coast, Queensland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_prix_motorcycle_racing_world_champ" ( "country" text, "moto_gp_500cc" real, "350cc" real, "moto2_250cc" real, "moto3_125cc" real, "80cc_50cc" real, "total" real );. Question: "how many total number of moto2/250cc when country is united states". [/INST] SELECT COUNT("moto2_250cc") FROM "grand_prix_motorcycle_racing_world_champ" WHERE "country"='United States';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_prix_motorcycle_racing_world_champ" ( "country" text, "moto_gp_500cc" real, "350cc" real, "moto2_250cc" real, "moto3_125cc" real, "80cc_50cc" real, "total" real );. Question: "how many minimum 350cc has". [/INST] SELECT MIN("350cc") FROM "grand_prix_motorcycle_racing_world_champ";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_prix_motorcycle_racing_world_champ" ( "country" text, "moto_gp_500cc" real, "350cc" real, "moto2_250cc" real, "moto3_125cc" real, "80cc_50cc" real, "total" real );. Question: "how many country has moto3/125cc with 15". [/INST] SELECT "country" FROM "grand_prix_motorcycle_racing_world_champ" WHERE "moto3_125cc"=15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );. Question: "When arthur collins is the winner what is the reason?". [/INST] SELECT "reason" FROM "changes_during_term" WHERE "winner"='Arthur Collins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );. Question: "When ihaia tainui is the incumbent what is the date?". [/INST] SELECT "date" FROM "changes_during_term" WHERE "incumbent"='Ihaia Tainui';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );. Question: "When rangitikei is the electorate who is the winner?". [/INST] SELECT "winner" FROM "changes_during_term" WHERE "electorate"='Rangitikei';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );. Question: "When waikaia is the electorate what is the highest by-election?". [/INST] SELECT MAX("by_election") FROM "changes_during_term" WHERE "electorate"='Waikaia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );. Question: "When 1881 is the by-election and death is the reason who is the incumbent?". [/INST] SELECT "incumbent" FROM "changes_during_term" WHERE "reason"='Death' AND "by_election"=1881;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_9_3_titles_6_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What is the name of the partner that has a winner outcome and a hard surface?". [/INST] SELECT "partner" FROM "doubles_9_3_titles_6_runners_up" WHERE "outcome"='Winner' AND "surface"='Hard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "judges_scoring_summary" ( "couple" text, "week_1" real, "week_2" real, "week_3" real, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8_final" text );. Question: "How many week 2 scores have a week 7 score of 40 + 40 = 80?". [/INST] SELECT COUNT("week_2") FROM "judges_scoring_summary" WHERE "week_7"='40 + 40 = 80';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "judges_scoring_summary" ( "couple" text, "week_1" real, "week_2" real, "week_3" real, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8_final" text );. Question: "What is the smallest week 3 score?". [/INST] SELECT MIN("week_3") FROM "judges_scoring_summary";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "judges_scoring_summary" ( "couple" text, "week_1" real, "week_2" real, "week_3" real, "week_4" text, "week_5" text, "week_6" text, "week_7" text, "week_8_final" text );. Question: "Which couple had a week 2 score of exactly 23?". [/INST] SELECT "couple" FROM "judges_scoring_summary" WHERE "week_2"=23;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28967275_3" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );. Question: "When "the secret of deep stadium" is the episode title what is the lowest series number?". [/INST] SELECT MIN("series_num") FROM "table1_28967275_3" WHERE "episode_title"='\"The Secret of Deep Stadium\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28967275_3" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );. Question: "when 68 is the episode number what is the series number?". [/INST] SELECT "series_num" FROM "table1_28967275_3" WHERE "episode_num"=68;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28967275_3" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );. Question: "when 69 is the episode number what is the air date?". [/INST] SELECT "original_air_date" FROM "table1_28967275_3" WHERE "episode_num"=69;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What draft pick is a goaltender?". [/INST] SELECT "pick_num" FROM "round_one" WHERE "position"='Goaltender';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position does Olaf Kolzig play?". [/INST] SELECT "position" FROM "round_one" WHERE "player"='Olaf Kolzig';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What team drafted a player from Sweden?". [/INST] SELECT "nhl_team" FROM "round_one" WHERE "nationality"='Sweden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29023680_2" ( "regiment" text, "company" text, "company_commander" text, "date_of_election_commission" text, "county" text );. Question: "How many company commanders were commissioned or elected on November 12, 1861?". [/INST] SELECT COUNT("company_commander") FROM "table1_29023680_2" WHERE "date_of_election_commission"='November 12, 1861';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29023680_2" ( "regiment" text, "company" text, "company_commander" text, "date_of_election_commission" text, "county" text );. Question: "What are the counties who company commander is Captain James R. Jackson and whose election of commission date is April 29, 1861?". [/INST] SELECT "county" FROM "table1_29023680_2" WHERE "date_of_election_commission"='April 29, 1861' AND "company_commander"='Captain James R. Jackson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_12_9_titles_3_runners_up" ( "result" text, "no" real, "date" text, "category" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "In the 250 series on clay what were the scores?". [/INST] SELECT "score" FROM "doubles_12_9_titles_3_runners_up" WHERE "surface"='Clay' AND "category"='250 series';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the most amount of cattle where they live in british columbia". [/INST] SELECT MAX("number_of_dairy_cows") FROM "see_also" WHERE "province"='British Columbia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the most number where cattle is 13000". [/INST] SELECT COUNT("province") FROM "see_also" WHERE "number_of_dairy_cows"=13000;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the amount where the area is new brunswick". [/INST] SELECT "production_hectolitres" FROM "see_also" WHERE "province"='New Brunswick';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the location where there are over 200 cattle businesses". [/INST] SELECT "province" FROM "see_also" WHERE "number_of_dairy_farms"=200;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the least amount of cattle head". [/INST] SELECT MIN("number_of_dairy_cows") FROM "see_also";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "province" text, "number_of_dairy_farms" real, "number_of_dairy_cows" real, "production_hectolitres" real, "dairy_cows_per_farm" real, "production_hectolitres_per_farm" real );. Question: "what is the least amount of milk cattle in ontario". [/INST] SELECT MIN("number_of_dairy_cows") FROM "see_also" WHERE "province"='Ontario';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29054902_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many millions of U.S viewers watched the episode titled "Miss Mystic Falls"?". [/INST] SELECT "u_s_viewers_million" FROM "table1_29054902_1" WHERE "title"='\"Miss Mystic Falls\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29054902_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What is the production code of the episode that was watched by 3.81 million U.S. viewers? ". [/INST] SELECT "production_code" FROM "table1_29054902_1" WHERE "u_s_viewers_million"='3.81';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29054902_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who wrote the episode titled "There Goes the Neighborhood"? ". [/INST] SELECT "written_by" FROM "table1_29054902_1" WHERE "title"='\"There Goes the Neighborhood\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29087004_2" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );. Question: "Who wrote the episode with a production code of 116?". [/INST] SELECT "written_by" FROM "table1_29087004_2" WHERE "production_code"=116;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29087004_2" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );. Question: "What number episode in the series had and original United States air date of December 24, 2010?". [/INST] SELECT MAX("series_num") FROM "table1_29087004_2" WHERE "united_states_original_airdate"='December 24, 2010';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29087004_2" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );. Question: "What number episode in the series was titled "My Fair Rebound"?". [/INST] SELECT "series_num" FROM "table1_29087004_2" WHERE "title"='\"My Fair Rebound\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29087004_2" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );. Question: "Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?". [/INST] SELECT "written_by" FROM "table1_29087004_2" WHERE "directed_by"='Jos Humphrey' AND "canada_original_airdate"='Unknown' AND "united_states_original_airdate"='August 27, 2011';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29087004_2" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );. Question: "What is the original United States air date of the episode written by Mike Ferris? ". [/INST] SELECT "united_states_original_airdate" FROM "table1_29087004_2" WHERE "written_by"='Mike Ferris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29141354_2" ( "episode" text, "first_broadcast" text, "andrew_and_georgies_guest" text, "jamie_and_johns_guest" text, "scores" text );. Question: "Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe?". [/INST] SELECT "andrew_and_georgies_guest" FROM "table1_29141354_2" WHERE "jamie_and_johns_guest"='Joe Calzaghe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29141354_2" ( "episode" text, "first_broadcast" text, "andrew_and_georgies_guest" text, "jamie_and_johns_guest" text, "scores" text );. Question: "What were the scores when Jamie and Johns guest was Phillips Idowu?". [/INST] SELECT "scores" FROM "table1_29141354_2" WHERE "jamie_and_johns_guest"='Phillips Idowu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29141354_2" ( "episode" text, "first_broadcast" text, "andrew_and_georgies_guest" text, "jamie_and_johns_guest" text, "scores" text );. Question: "When was episode 02x02 first broadcast?". [/INST] SELECT "first_broadcast" FROM "table1_29141354_2" WHERE "episode"='02x02';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29141354_2" ( "episode" text, "first_broadcast" text, "andrew_and_georgies_guest" text, "jamie_and_johns_guest" text, "scores" text );. Question: "Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis?". [/INST] SELECT "andrew_and_georgies_guest" FROM "table1_29141354_2" WHERE "jamie_and_johns_guest"='Jessica Ennis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29141354_2" ( "episode" text, "first_broadcast" text, "andrew_and_georgies_guest" text, "jamie_and_johns_guest" text, "scores" text );. Question: "When was episode 02x07 first broadcast?". [/INST] SELECT "first_broadcast" FROM "table1_29141354_2" WHERE "episode"='02x07';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "annual_hottest_mc_chart" ( "position" real, "top_mc" text, "year_inducted" real, "appearances" real, "peak_ranking" real );. Question: "List all the MCs with peak ranking of 6 who were inducted in 2007.". [/INST] SELECT "top_mc" FROM "annual_hottest_mc_chart" WHERE "year_inducted"=2007 AND "peak_ranking"=6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "annual_hottest_mc_chart" ( "position" real, "top_mc" text, "year_inducted" real, "appearances" real, "peak_ranking" real );. Question: "List all the MCs with 5 appearances who were inducted in 2007?". [/INST] SELECT "top_mc" FROM "annual_hottest_mc_chart" WHERE "appearances"=5 AND "year_inducted"=2007;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "annual_hottest_mc_chart" ( "position" real, "top_mc" text, "year_inducted" real, "appearances" real, "peak_ranking" real );. Question: "How many appearances by Meek Mill?". [/INST] SELECT MAX("appearances") FROM "annual_hottest_mc_chart" WHERE "top_mc"='Meek Mill';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_25_15_10" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What are the championship venues where the score was 6β7 (4β7) , 3β6?". [/INST] SELECT "championship" FROM "doubles_25_15_10" WHERE "score"='6β7 (4β7) , 3β6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_25_15_10" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "On what surface was the Australian Open (6) played on?". [/INST] SELECT "surface" FROM "doubles_25_15_10" WHERE "championship"='Australian Open (6)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_25_15_10" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who was Bob Bryan's partner/s on a hard surface in 2003?". [/INST] SELECT "partner" FROM "doubles_25_15_10" WHERE "year"=2003 AND "surface"='Hard';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "yankee_class_significant_dates" ( "num" text, "project" text, "shipyard" text, "laid_down" text, "launched" text, "commissioned" text, "status" text );. Question: "which vessel area was called for on november 30, 1970". [/INST] SELECT "shipyard" FROM "yankee_class_significant_dates" WHERE "commissioned"='November 30, 1970';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "yankee_class_significant_dates" ( "num" text, "project" text, "shipyard" text, "laid_down" text, "launched" text, "commissioned" text, "status" text );. Question: "what project was initially started before september 20, 1968". [/INST] SELECT "commissioned" FROM "yankee_class_significant_dates" WHERE "launched"='September 20, 1968';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "yankee_class_significant_dates" ( "num" text, "project" text, "shipyard" text, "laid_down" text, "launched" text, "commissioned" text, "status" text );. Question: "when was the first start date that actually began on august 6, 1969". [/INST] SELECT "launched" FROM "yankee_class_significant_dates" WHERE "commissioned"='August 6, 1969';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "yankee_class_significant_dates" ( "num" text, "project" text, "shipyard" text, "laid_down" text, "launched" text, "commissioned" text, "status" text );. Question: "where is the boat area that began on november 30, 1970". [/INST] SELECT "shipyard" FROM "yankee_class_significant_dates" WHERE "commissioned"='November 30, 1970';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29273057_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "Who directed the episode with production code ip01003? ". [/INST] SELECT "directed_by" FROM "table1_29273057_1" WHERE "production_code"='IP01003';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.