text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: what's the date of birth with # being 2 <|assistant|> SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "num"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: how many end of term with age at inauguration being 64-066 64years, 66days <|assistant|> SELECT COUNT("end_of_term") FROM "ghanaian_presidents_ages" WHERE "age_at_inauguration"='64-066 64years, 66days';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who was the winning pitcher on june 25? <|assistant|> SELECT "winning_pitcher" FROM "lone_star_series" WHERE "date"='June 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: How many games were on May 20? <|assistant|> SELECT COUNT("attendance") FROM "lone_star_series" WHERE "date"='May 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who is the losing pitcher when the winning pitcher is roy oswalt? <|assistant|> SELECT "losing_pitcher" FROM "lone_star_series" WHERE "winning_pitcher"='Roy Oswalt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lone_star_series" ( "date" text, "winning_team" text, "score" text, "winning_pitcher" text, "losing_pitcher" text, "attendance" real, "location" text ); Question: Who is the winning pitcher when attendance is 38109? <|assistant|> SELECT "winning_pitcher" FROM "lone_star_series" WHERE "attendance"=38109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many NHL teams does Terry French play for? <|assistant|> SELECT COUNT("nhl_team") FROM "round_two" WHERE "player"='Terry French';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Who's the player for the New York Rangers? <|assistant|> SELECT "player" FROM "round_two" WHERE "nhl_team"='New York Rangers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many positions do the players of Chicago Black Hawks play in? <|assistant|> SELECT COUNT("position") FROM "round_two" WHERE "nhl_team"='Chicago Black Hawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the nationality of the player from Buffalo Sabres? <|assistant|> SELECT "nationality" FROM "round_two" WHERE "nhl_team"='Buffalo Sabres';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position does the player from Peterborough Petes (OHA) play on? <|assistant|> SELECT "position" FROM "round_two" WHERE "college_junior_club_team"='Peterborough Petes (OHA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's Dave Fortier's pick number? <|assistant|> SELECT COUNT("pick_num") FROM "round_two" WHERE "player"='Dave Fortier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What team does George Hulme play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_four" WHERE "player"='George Hulme';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position does Neil Komadoski play? <|assistant|> SELECT "position" FROM "round_four" WHERE "player"='Neil Komadoski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: where is team player mike mcniven played for? <|assistant|> SELECT "college_junior_club_team" FROM "round_five" WHERE "player"='Mike McNiven';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what college has nhl team chicago black hawks? <|assistant|> SELECT "college_junior_club_team" FROM "round_five" WHERE "nhl_team"='Chicago Black Hawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what is the college that has the nhl chicago black hawks? <|assistant|> SELECT "college_junior_club_team" FROM "round_five" WHERE "nhl_team"='Chicago Black Hawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: who is the player with the nationality of canada and pick # is 65? <|assistant|> SELECT "player" FROM "round_five" WHERE "nationality"='Canada' AND "pick_num"=65;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many teams did Bob Peppler play for? <|assistant|> SELECT COUNT("nhl_team") FROM "round_three" WHERE "player"='Bob Peppler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the position listed for the team the Philadelphia Flyers? <|assistant|> SELECT "position" FROM "round_three" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many nationalities are listed for the player Glen Irwin? <|assistant|> SELECT COUNT("nationality") FROM "round_three" WHERE "player"='Glen Irwin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which players have the position of centre and play for the nhl team new york rangers <|assistant|> SELECT "player" FROM "round_seven" WHERE "position"='Centre' AND "nhl_team"='New York Rangers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which nhl team has a college/junior/club team named university of notre dame (ncaa) <|assistant|> SELECT "nhl_team" FROM "round_seven" WHERE "college_junior_club_team"='University of Notre Dame (NCAA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what are all the position where player is al simmons <|assistant|> SELECT "position" FROM "round_seven" WHERE "player"='Al Simmons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What nationality is pick # 89 <|assistant|> SELECT "nationality" FROM "round_seven" WHERE "pick_num"=89;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which college/junior/club teams nationality is canada and nhl team is minnesota north stars <|assistant|> SELECT "college_junior_club_team" FROM "round_seven" WHERE "nationality"='Canada' AND "nhl_team"='Minnesota North Stars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what is the total number of pick # where nhl team is philadelphia flyers <|assistant|> SELECT COUNT("pick_num") FROM "round_seven" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the nationality of the player from the Detroit Red Wings? <|assistant|> SELECT "nationality" FROM "round_six" WHERE "nhl_team"='Detroit Red Wings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position does Jim Johnston play? <|assistant|> SELECT "position" FROM "round_six" WHERE "player"='Jim Johnston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which team does Pierre Duguay play for? <|assistant|> SELECT "nhl_team" FROM "round_six" WHERE "player"='Pierre Duguay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What country does the goaltender come from? <|assistant|> SELECT "nationality" FROM "round_six" WHERE "position"='Goaltender';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148018_2" ( "num" real, "episode" text, "director" text, "writer" text, "original_airdate" text, "viewers" text ); Question: who is the writer where viewers is 5.16m <|assistant|> SELECT "writer" FROM "table1_12148018_2" WHERE "viewers"='5.16m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148018_2" ( "num" real, "episode" text, "director" text, "writer" text, "original_airdate" text, "viewers" text ); Question: who is the writer for episode "episode 7" <|assistant|> SELECT "writer" FROM "table1_12148018_2" WHERE "episode"='\"Episode 7\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: For which league is the open cup the quarter finals <|assistant|> SELECT "league" FROM "year_by_year" WHERE "open_cup"='Quarter Finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What open cups where played in 2002 <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What leagues includes division 3 <|assistant|> SELECT "league" FROM "year_by_year" WHERE "division"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What was the result of the playoffs when the regular season was 7th, southeast <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='7th, Southeast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What's the original air date of the episode with production code 2T6719? <|assistant|> SELECT "original_air_date" FROM "table1_12159115_2" WHERE "production_code"='2T6719';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who's the writer of the episode see by 12.13 million US viewers? <|assistant|> SELECT "written_by" FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='12.13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What's the total number of episodes with production code 2T6705? <|assistant|> SELECT COUNT("title") FROM "table1_12159115_2" WHERE "production_code"='2T6705';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What's the total number of directors who've directed episodes seen by 11.34 million US viewers? <|assistant|> SELECT COUNT("directed_by") FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='11.34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What's the production code of the episode seen by 11.64 million US viewers? <|assistant|> SELECT "production_code" FROM "table1_12159115_2" WHERE "u_s_viewers_millions"='11.64';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nations_cup" ( "season" text, "winner" text, "runner_up" text, "third" text, "winner_men" text, "winner_women" text ); Question: What is the season where the winner is norway and the winner women is russia? <|assistant|> SELECT "season" FROM "nations_cup" WHERE "winner"='Norway' AND "winner_women"='Russia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nations_cup" ( "season" text, "winner" text, "runner_up" text, "third" text, "winner_men" text, "winner_women" text ); Question: What is the winner women and third is italy and runner-up is finland? <|assistant|> SELECT "winner_women" FROM "nations_cup" WHERE "third"='Italy' AND "runner_up"='Finland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nations_cup" ( "season" text, "winner" text, "runner_up" text, "third" text, "winner_men" text, "winner_women" text ); Question: What is the number of runner up when the winner of women is norway and third is sweden? <|assistant|> SELECT COUNT("runner_up") FROM "nations_cup" WHERE "winner_women"='Norway' AND "third"='Sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_standings" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what's the report with fastest lap being felipe massa and winning driver being jenson button <|assistant|> SELECT "report" FROM "drivers_standings" WHERE "fastest_lap"='Felipe Massa' AND "winning_driver"='Jenson Button';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_standings" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: what's the grand prix with winning driver being jenson button <|assistant|> SELECT "grand_prix" FROM "drivers_standings" WHERE "winning_driver"='Jenson Button';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_standings" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: who is the the pole position with grand prix being italian grand prix <|assistant|> SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='Italian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_standings" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: who is the the fastest lap with grand prix being european grand prix <|assistant|> SELECT "fastest_lap" FROM "drivers_standings" WHERE "grand_prix"='European Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many viewers, in millions, were for the episode directed by Tawnia McKiernan? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_12159115_3" WHERE "directed_by"='Tawnia McKiernan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many episodes were written only by William N. Fordes? <|assistant|> SELECT COUNT("series_num") FROM "table1_12159115_3" WHERE "written_by"='William N. Fordes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12159115_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many U.S Viewers, in millions, were for series # 26? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_12159115_3" WHERE "series_num"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148147_2" ( "subjects" text, "first_year" text, "second_year" text, "third_year" text, "fourth_year" text ); Question: What is the third year course in science? <|assistant|> SELECT "third_year" FROM "table1_12148147_2" WHERE "subjects"='Science';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148147_2" ( "subjects" text, "first_year" text, "second_year" text, "third_year" text, "fourth_year" text ); Question: What is the second year class following pag-unawa? <|assistant|> SELECT "second_year" FROM "table1_12148147_2" WHERE "first_year"='Pag-unawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148147_2" ( "subjects" text, "first_year" text, "second_year" text, "third_year" text, "fourth_year" text ); Question: How many classes are taken in the third year when pag-unawa was taken in the first year? <|assistant|> SELECT COUNT("third_year") FROM "table1_12148147_2" WHERE "first_year"='Pag-unawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148147_2" ( "subjects" text, "first_year" text, "second_year" text, "third_year" text, "fourth_year" text ); Question: What is the first year course in the program where geometry is taken in the third year? <|assistant|> SELECT "first_year" FROM "table1_12148147_2" WHERE "third_year"='Geometry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12148147_2" ( "subjects" text, "first_year" text, "second_year" text, "third_year" text, "fourth_year" text ); Question: What is the second year course in the program where physics is taken in the fourth year? <|assistant|> SELECT "second_year" FROM "table1_12148147_2" WHERE "fourth_year"='Physics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the womens singles event the year that Jonas Lyduch won? <|assistant|> SELECT "womens_singles" FROM "previous_winners" WHERE "mens_singles"='Jonas Lyduch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the mens doubles the year Alison Humby won the womens singles? <|assistant|> SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Alison Humby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: What are all the .308 Winchester cartridge types with 38 for the 300 m group (mm) <|assistant|> SELECT "308_winchester_cartridge_type" FROM "design_details" WHERE "300_m_group_mm"='38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: For which 100 m group ( moa ) is the 300 m group ( moa ) 0.63 <|assistant|> SELECT "100_m_group_moa" FROM "design_details" WHERE "300_m_group_moa"='0.63';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: What are all the 300 m group (mm) with a .308 winchester cartridge type of ruag swiss p target 168 gr hp-bt <|assistant|> SELECT "300_m_group_mm" FROM "design_details" WHERE "308_winchester_cartridge_type"='RUAG Swiss P Target 168 gr HP-BT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: For which .308 winchester cartridge type is the 300 m group ( moa ) 0.51 <|assistant|> SELECT "308_winchester_cartridge_type" FROM "design_details" WHERE "300_m_group_moa"='0.51';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: For which 300 m group ( moa ) is the 300 m group (mm) 45 <|assistant|> SELECT "300_m_group_moa" FROM "design_details" WHERE "300_m_group_mm"='45';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: What are all the 100 m group (mm) with a .308 winchester cartridge type of .300 winchester magnum cartridge type <|assistant|> SELECT "100_m_group_mm" FROM "design_details" WHERE "308_winchester_cartridge_type"='.300 Winchester Magnum cartridge type';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: How many years did Peter Mikkelsen win the Mens Singles? <|assistant|> SELECT COUNT("year") FROM "previous_winners" WHERE "mens_singles"='Peter Mikkelsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the Men's Doubles when Karina de Wit won the Women's Singles? <|assistant|> SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Karina de Wit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: How many Mixed Doubles won when Oliver Pongratz won the Men's Singles? <|assistant|> SELECT COUNT("mixed_doubles") FROM "previous_winners" WHERE "mens_singles"='Oliver Pongratz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the Men's Doubles when Guo Xin won the Women's Singles? <|assistant|> SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Guo Xin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "overall_pick_num" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: Which college did Dennis Byrd come from? <|assistant|> SELECT "college" FROM "round_one" WHERE "player"='Dennis Byrd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "overall_pick_num" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: Bob Johnson plays for which AFL team? <|assistant|> SELECT "afl_team" FROM "round_one" WHERE "player"='Bob Johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "overall_pick_num" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: What position does the Cincinnati Bengals' player have? <|assistant|> SELECT "position" FROM "round_one" WHERE "afl_team"='Cincinnati Bengals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "overall_pick_num" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: What position does Syracuse's player have? <|assistant|> SELECT "position" FROM "round_one" WHERE "college"='Syracuse';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "overall_pick_num" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: What college did the Cincinnati Bengals' player come from? <|assistant|> SELECT "college" FROM "round_one" WHERE "afl_team"='Cincinnati Bengals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text ); Question: What is the pinyin for explaining music? <|assistant|> SELECT "pinyin" FROM "contents" WHERE "translation"='Explaining Music';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text ); Question: How many subjects have the pinyin shixun? <|assistant|> SELECT COUNT("subject") FROM "contents" WHERE "pinyin"='Shixun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text ); Question: What is the pinyin for explaining beasts? <|assistant|> SELECT "pinyin" FROM "contents" WHERE "translation"='Explaining Beasts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text ); Question: How many pinyin transaltions are available for the chinese phrase 釋蟲? <|assistant|> SELECT COUNT("pinyin") FROM "contents" WHERE "chinese"='釋蟲';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contents" ( "chapter" real, "chinese" text, "pinyin" text, "translation" text, "subject" text ); Question: What chapter number is Shiqiu? <|assistant|> SELECT MIN("chapter") FROM "contents" WHERE "pinyin"='Shiqiu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: How many mens doubles when womens doubles is catrine bengtsson margit borg? <|assistant|> SELECT COUNT("mens_doubles") FROM "past_winners" WHERE "womens_doubles"='Catrine Bengtsson Margit Borg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina? <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Anastasia Chervyakova Romina Gabdullina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who is themens doubles when the mens singles is flemming delfs? <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "mens_singles"='Flemming Delfs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who was the womens doubles when the mixed doubles is jacco arends selena piek? <|assistant|> SELECT "womens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Jacco Arends Selena Piek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who was the mens doubles when womens singles is mette sørensen? <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "womens_singles"='Mette Sørensen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Who is the Motogp winnder for the Catalunya Circuit? <|assistant|> SELECT "moto_gp_winner" FROM "grands_prix" WHERE "circuit"='Catalunya';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Who is the 125cc winnder for the Phillip Island circuit? <|assistant|> SELECT "125cc_winner" FROM "grands_prix" WHERE "circuit"='Phillip Island';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: What is the date of the German Grand Prix? <|assistant|> SELECT "date" FROM "grands_prix" WHERE "grand_prix"='German Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: What circuit was on the date 4 May? <|assistant|> SELECT "circuit" FROM "grands_prix" WHERE "date"='4 May';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12193259_1" ( "season" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the number of mens doubles for 2004/2005 <|assistant|> SELECT COUNT("mens_doubles") FROM "table1_12193259_1" WHERE "season"='2004/2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12193259_1" ( "season" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the total number for mens single for 2002/2003 <|assistant|> SELECT COUNT("mens_singles") FROM "table1_12193259_1" WHERE "season"='2002/2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12193259_1" ( "season" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mens singles for 1944/1945 <|assistant|> SELECT "mens_singles" FROM "table1_12193259_1" WHERE "season"='1944/1945';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text, "defenses" real ); Question: How many times was pernell whitaker an opponent? <|assistant|> SELECT COUNT("date") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='Pernell Whitaker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text, "defenses" real ); Question: How many times was iran barkley an opponent? <|assistant|> SELECT "number" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='Iran Barkley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text, "defenses" real ); Question: Who was the opponent when the result was ud 12/12 and date was 1993-05-22? <|assistant|> SELECT "opponent" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "result"='UD 12/12' AND "date"='1993-05-22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text, "defenses" real ); Question: How many opponents fought on 1982-12-03? <|assistant|> SELECT COUNT("opponent") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "date"='1982-12-03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text, "defenses" real ); Question: What is the name of the title winner in the ring light heavyweight (175) division? <|assistant|> SELECT "name" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "titles"='The Ring Light heavyweight (175)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12221135_3" ( "departure" text, "going_to" text, "calling_at" text, "arrival" text, "operator" text ); Question: How many trains call at Castor, Overton, Peterborough East and are operated by LNWR? <|assistant|> SELECT COUNT("arrival") FROM "table1_12221135_3" WHERE "operator"='LNWR' AND "calling_at"='Castor, Overton, Peterborough East';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12204717_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the mens singles in 2009? <|assistant|> SELECT "mens_singles" FROM "table1_12204717_1" WHERE "year"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_institutions" ( "institution" text, "location" text, "founded" real, "type" text, "joined" real, "nickname" text, "colors" text ); Question: What are the the University of Richmond's school colors? <|assistant|> SELECT "colors" FROM "member_institutions" WHERE "institution"='University of Richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_institutions" ( "institution" text, "location" text, "founded" real, "type" text, "joined" real, "nickname" text, "colors" text ); Question: What are the school colors of the University of New Hampshire? <|assistant|> SELECT "colors" FROM "member_institutions" WHERE "institution"='University of New Hampshire';<|endoftext|>