text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); Question: How many clubs were remaining in the preliminary round? <|assistant|> SELECT "clubs_remaining" FROM "teams" WHERE "round"='Preliminary round';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); Question: What was the round when there were 16 winners from the previous round? <|assistant|> SELECT "round" FROM "teams" WHERE "winners_from_previous_round"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); Question: How many clubs were involved in the second round? <|assistant|> SELECT "clubs_involved" FROM "teams" WHERE "round"='Second round';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tour" ( "week" real, "start_date" text, "type" text, "tournament" text, "surface" text, "town" text, "country" text, "continent" text, "prize_money" text ); Question: When grand prix de sar la princesse lalla meryem is the tournament what is the town? <|assistant|> SELECT "town" FROM "wta_tour" WHERE "tournament"='Grand Prix De SAR La Princesse Lalla Meryem';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tour" ( "week" real, "start_date" text, "type" text, "tournament" text, "surface" text, "town" text, "country" text, "continent" text, "prize_money" text ); Question: When stuttgart is the town what is the type? <|assistant|> SELECT "type" FROM "wta_tour" WHERE "town"='Stuttgart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); Question: who is the person that is part of the belgian vw club that works with frédéric miclotte <|assistant|> SELECT "driver" FROM "selected_entries" WHERE "entrant"='Belgian VW Club' AND "co_driver"='Frédéric Miclotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); Question: what is the type of vehicle driven by mark higgins <|assistant|> SELECT "car" FROM "selected_entries" WHERE "driver"='Mark Higgins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); Question: what is the entry where the other person is zdeněk hrůza <|assistant|> SELECT "entrant" FROM "selected_entries" WHERE "co_driver"='Zdeněk Hrůza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); Question: who is the other person where the assistant is paulo babo <|assistant|> SELECT "driver" FROM "selected_entries" WHERE "co_driver"='Paulo Babo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); Question: what are all the people where the entries is peugeot sport polska <|assistant|> SELECT "driver" FROM "selected_entries" WHERE "entrant"='Peugeot Sport Polska';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: Who wrote the episode that had 6.05 million U.s. viewers? <|assistant|> SELECT "written_by" FROM "table1_28037619_2" WHERE "u_s_viewers_million"='6.05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: How many production codes are there for the episode that had 4.36 million u.s. viewers? <|assistant|> SELECT COUNT("production_code") FROM "table1_28037619_2" WHERE "u_s_viewers_million"='4.36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: How many people wrote the episode that had 7.26 million u.s. viewers? <|assistant|> SELECT COUNT("written_by") FROM "table1_28037619_2" WHERE "u_s_viewers_million"='7.26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_28037619_2" WHERE "directed_by"='Roger Young' AND "written_by"='Debra J. Fisher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: What is the name of the episode written by David Matthews? <|assistant|> SELECT "title" FROM "table1_28037619_2" WHERE "written_by"='David Matthews';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "nickname" text, "location" text, "colors" text, "tenure" text ); Question: What are the colors of the Hudson school? <|assistant|> SELECT "colors" FROM "former_members" WHERE "school"='Hudson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "nickname" text, "location" text, "colors" text, "tenure" text ); Question: When were the members tenured in the Field school? <|assistant|> SELECT "tenure" FROM "former_members" WHERE "school"='Field';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many pick# for CFL team of Toronto Argonauts? <|assistant|> SELECT COUNT("pick_num") FROM "round_one" WHERE "cfl_team"='Toronto Argonauts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is every CFL team from the Calgary college? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "college"='Calgary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is every position for the CFL Edmonton? <|assistant|> SELECT "position" FROM "round_one" WHERE "cfl_team"='Edmonton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is every CFL team for the college of Calgary? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "college"='Calgary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is every CFL team with pick#1? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "pick_num"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is every CFL team with the player Mark Farraway? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "player"='Mark Farraway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What draft pick number was Andy Brereton? <|assistant|> SELECT MIN("pick_num") FROM "round_five" WHERE "player"='Andy Brereton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What pick number was the player that was picked by Edmonton? <|assistant|> SELECT "pick_num" FROM "round_five" WHERE "cfl_team"='Edmonton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position did the draft pick going to saskatchewan play? <|assistant|> SELECT "position" FROM "round_five" WHERE "cfl_team"='Saskatchewan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the highest numbered draft pick? <|assistant|> SELECT MAX("pick_num") FROM "round_five";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What CFL team got the player from york? <|assistant|> SELECT "cfl_team" FROM "round_five" WHERE "college"='York';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many positions does Trent Bagnail play? <|assistant|> SELECT COUNT("position") FROM "round_five" WHERE "player"='Trent Bagnail';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position was the player who was drafted by Edmonton? <|assistant|> SELECT "position" FROM "round_six" WHERE "cfl_team"='Edmonton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What college did the player whose position was RB go to? <|assistant|> SELECT "college" FROM "round_six" WHERE "position"='RB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What college did Francis Bellefroid go to? <|assistant|> SELECT "college" FROM "round_six" WHERE "player"='Francis Bellefroid';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which player was drafted by Winnipeg? <|assistant|> SELECT "player" FROM "round_six" WHERE "cfl_team"='Winnipeg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What college did the player who was drafted by Calgary go to? <|assistant|> SELECT "college" FROM "round_six" WHERE "cfl_team"='Calgary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); Question: What was the height of representative #1? <|assistant|> SELECT "height" FROM "contestants" WHERE "represent"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); Question: Which contestant was sponsored by Yogurt Vita Slim? <|assistant|> SELECT "contestant" FROM "contestants" WHERE "sponsor"='Yogurt Vita Slim';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); Question: What was the height of representative #6? <|assistant|> SELECT "height" FROM "contestants" WHERE "represent"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: how many people wrote the episode directed by rob schrab? <|assistant|> SELECT COUNT("written_by") FROM "table1_28081876_4" WHERE "directed_by"='Rob Schrab';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: name the title of the episode with production code 201 <|assistant|> SELECT "title" FROM "table1_28081876_4" WHERE "production_code"=201;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: Who were the authors of the episode first broadcast on August 10, 2012? <|assistant|> SELECT "written_by" FROM "table1_28081876_6" WHERE "original_air_date"='August 10, 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: How many million people in the US viewed the episode titled "Behind the Scenes"? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_28081876_6" WHERE "title"='\"Behind the Scenes\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: When was originally aired the episode with an audience of 1.57 million us viewers? <|assistant|> SELECT "original_air_date" FROM "table1_28081876_6" WHERE "u_s_viewers_millions"='1.57';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: What season number was assigned to the episode identified with the production code 401? <|assistant|> SELECT "season_no" FROM "table1_28081876_6" WHERE "production_code"=401;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); Question: List the number of assists for the DF. <|assistant|> SELECT MAX("total") FROM "top_assistants" WHERE "position"='DF';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); Question: List the lowest super league for a 0 champion league. <|assistant|> SELECT MIN("super_league") FROM "top_assistants" WHERE "champions_league"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); Question: What is the minimum sum? <|assistant|> SELECT MIN("total") FROM "top_assistants";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); Question: What was the intermediate sprint classification for the race whose winner was Daniel Martin? <|assistant|> SELECT "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" FROM "category_leadership_table" WHERE "winner"='Daniel Martin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); Question: Which teams classification winners had a general classification winner of Allan Davis? <|assistant|> SELECT "teams_classification" FROM "category_leadership_table" WHERE "general_classification_ta_koszulka"='Allan Davis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); Question: Who won the points classification when the teams classification winner was Lampre-Farnese? <|assistant|> SELECT "points_classification_klasyfikacja_punktowa" FROM "category_leadership_table" WHERE "teams_classification"='Lampre-Farnese';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_slavic_languages" ( "english_word" text, "slovak" text, "czech" text, "rusyn" text, "ukrainian" text, "belarusian" text, "polish" text, "serbo_croatian" text, "bulgarian" text ); Question: How do you say the ukrainian word дякую (diakuju) in English? <|assistant|> SELECT "english_word" FROM "other_slavic_languages" WHERE "ukrainian"='Дякую (diakuju)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_slavic_languages" ( "english_word" text, "slovak" text, "czech" text, "rusyn" text, "ukrainian" text, "belarusian" text, "polish" text, "serbo_croatian" text, "bulgarian" text ); Question: How many words are there in rusyn for the bulgarian word купува (kupuva)? <|assistant|> SELECT COUNT("rusyn") FROM "other_slavic_languages" WHERE "bulgarian"='купува (kupuva)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); Question: Name the new adherents per year for buddhism <|assistant|> SELECT "new_adherents_per_year" FROM "table1_28137918_5" WHERE "religion"='Buddhism';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); Question: Name the number of new adherents per year for confucianism <|assistant|> SELECT COUNT("new_adherents_per_year") FROM "table1_28137918_5" WHERE "religion"='Confucianism';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); Question: Name the least births for conversion being 26,333 <|assistant|> SELECT MIN("births") FROM "table1_28137918_5" WHERE "conversions"='26,333';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); Question: Name the least amount of new adherents per year <|assistant|> SELECT MIN("new_adherents_per_year") FROM "table1_28137918_5";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); Question: Name the religion that has a growth rate of 1.56% <|assistant|> SELECT "religion" FROM "table1_28137918_5" WHERE "growth_rate"='1.56%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); Question: What is the length when the propulsion is controllable pitch propeller? <|assistant|> SELECT "length" FROM "current_fleet" WHERE "propulsion"='Controllable pitch propeller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); Question: What is the max speed when the vessel is gallion? <|assistant|> SELECT "max_speed" FROM "current_fleet" WHERE "vessel"='Gallion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); Question: How many breadth entries are there when the vessel is marianarray? <|assistant|> SELECT COUNT("breadth") FROM "current_fleet" WHERE "vessel"='Marianarray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); Question: What is the propulsion when the vessel is marianarray? <|assistant|> SELECT "propulsion" FROM "current_fleet" WHERE "vessel"='Marianarray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); Question: How many breadth entries are there when propulsion is jet? <|assistant|> SELECT COUNT("breadth") FROM "current_fleet" WHERE "propulsion"='Jet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" 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 for "chuck versus the balcony"? <|assistant|> SELECT "production_code" FROM "table1_28116528_1" WHERE "title"='\"Chuck Versus the Balcony\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What episode title had a production code of 3x6306? <|assistant|> SELECT "title" FROM "table1_28116528_1" WHERE "production_code"='3X6306';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What date did the episode with a production code of 3x6316 originally air? <|assistant|> SELECT "original_air_date" FROM "table1_28116528_1" WHERE "production_code"='3X6316';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won the mens doubles when wu yang won the womens singles? <|assistant|> SELECT "mens_doubles" FROM "polish_open" WHERE "womens_singles"='Wu Yang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: What year and where was the tournament when fan ying won the womens singles? <|assistant|> SELECT "year_location" FROM "polish_open" WHERE "womens_singles"='Fan Ying';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won the mens singles when lau sui fei won the womens singles? <|assistant|> SELECT "mens_singles" FROM "polish_open" WHERE "womens_singles"='Lau Sui Fei';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won the mens doubles when wang hao won the mens singles? <|assistant|> SELECT "mens_doubles" FROM "polish_open" WHERE "mens_singles"='Wang Hao';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "english_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won in the men singles group in the year when Yoshie Takada won in the women singles? <|assistant|> SELECT "mens_singles" FROM "english_open" WHERE "womens_singles"='Yoshie Takada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "english_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: When and where did Chen Qi win in men singles? <|assistant|> SELECT "year_location" FROM "english_open" WHERE "mens_singles"='Chen Qi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who is listed under mens singles when womens has wang nan zhang yining? <|assistant|> SELECT "mens_singles" FROM "table1_28138035_27" WHERE "womens_doubles"='Wang Nan Zhang Yining';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many womens singles entries are there when womens doubles is li xiaodan wen jia? <|assistant|> SELECT COUNT("womens_singles") FROM "table1_28138035_27" WHERE "womens_doubles"='Li Xiaodan Wen Jia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who is listed under womens singles when year location is 1998 doha? <|assistant|> SELECT "womens_singles" FROM "table1_28138035_27" WHERE "year_location"='1998 Doha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who is listed under mens singles when the year location is 2009 doha? <|assistant|> SELECT "mens_singles" FROM "table1_28138035_27" WHERE "year_location"='2009 Doha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many year locations are there for the womens doubles in jing junhong li jiawei? <|assistant|> SELECT COUNT("year_location") FROM "japan_open" WHERE "womens_doubles"='Jing Junhong Li Jiawei';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many players are there for mens singles when chen qi ma lin played mens doubles? <|assistant|> SELECT COUNT("mens_singles") FROM "japan_open" WHERE "mens_doubles"='Chen Qi Ma Lin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who played mens doubles for the 1999 kobe tour? <|assistant|> SELECT "mens_doubles" FROM "japan_open" WHERE "year_location"='1999 Kobe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Where was the tour when jing junhong li jiawei played womens doubles? <|assistant|> SELECT "year_location" FROM "japan_open" WHERE "womens_doubles"='Jing Junhong Li Jiawei';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many years did lin gaoyuan wu jiaji play mens doubles? <|assistant|> SELECT COUNT("year_location") FROM "japan_open" WHERE "mens_doubles"='Lin Gaoyuan Wu Jiaji';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many people are shown for mens doubles when guo yue played womens singles? <|assistant|> SELECT COUNT("mens_doubles") FROM "japan_open" WHERE "womens_singles"='Guo Yue';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won the Womens Singles in the year the Jean-Michel Saive won the Mens Singles? <|assistant|> SELECT "womens_singles" FROM "us_open" WHERE "mens_singles"='Jean-Michel Saive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: In what year and location did Liu Guozheng win the Mens Singles? <|assistant|> SELECT "year_location" FROM "us_open" WHERE "mens_singles"='Liu Guozheng';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: In what year and location did Wang Liqin win the Mens Singles? <|assistant|> SELECT "year_location" FROM "us_open" WHERE "mens_singles"='Wang Liqin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who won the mens doubles at the 2006 guangzhou event? <|assistant|> SELECT "mens_doubles" FROM "china_open" WHERE "year_location"='2006 Guangzhou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many times was the womens doubles in china? <|assistant|> SELECT COUNT("mens_singles") FROM "china_open" WHERE "womens_doubles"='China';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: How many times did li ju win the womens singles and wang liqin win the mens singles? <|assistant|> SELECT COUNT("womens_doubles") FROM "china_open" WHERE "womens_singles"='Li Ju' AND "mens_singles"='Wang Liqin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the mens singles for lee eun-sil moon hyun-jung <|assistant|> SELECT "mens_singles" FROM "brazil_open" WHERE "womens_doubles"='Lee Eun-Sil Moon Hyun-Jung';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the number of womens doubles for 2011 rio de janeiro <|assistant|> SELECT COUNT("womens_doubles") FROM "brazil_open" WHERE "year_location"='2011 Rio de Janeiro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the year location for haruna fukuoka <|assistant|> SELECT "year_location" FROM "brazil_open" WHERE "womens_singles"='Haruna Fukuoka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the mens doubles for dimitrij ovtcharov <|assistant|> SELECT "mens_doubles" FROM "brazil_open" WHERE "mens_singles"='Dimitrij Ovtcharov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the number of womens singles for 1999 rio de janeiro <|assistant|> SELECT COUNT("womens_singles") FROM "brazil_open" WHERE "year_location"='1999 Rio de Janeiro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Name the womens doubles for werner schlager <|assistant|> SELECT "womens_doubles" FROM "brazil_open" WHERE "mens_singles"='Werner Schlager';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "slovenian_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); Question: Who was the womens double winner when the womens singles winner was Ding Ning? <|assistant|> SELECT "womens_doubles" FROM "slovenian_open" WHERE "womens_singles"='Ding Ning';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28140578_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Who wrote episode number 19 in the series? <|assistant|> SELECT "written_by" FROM "table1_28140578_1" WHERE "no_in_series"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_statistics" ( "year" real, "team" text, "number" real, "games" real, "kicks" real, "handballs" real, "total_disposals" real, "marks" real, "tackles" real, "goals" real, "behinds" real, "goal_accuracy_pct" text, "brownlow_medal_votes" real ); Question: How many marks are there when tackles are 3? <|assistant|> SELECT "marks" FROM "season_statistics" WHERE "tackles"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_statistics" ( "year" real, "team" text, "number" real, "games" real, "kicks" real, "handballs" real, "total_disposals" real, "marks" real, "tackles" real, "goals" real, "behinds" real, "goal_accuracy_pct" text, "brownlow_medal_votes" real ); Question: What was the goal accuracy % when the total disposals are 481? <|assistant|> SELECT "goal_accuracy_pct" FROM "season_statistics" WHERE "total_disposals"=481;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28140590_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Who directed "it's a wonderful lie"? <|assistant|> SELECT "directed_by" FROM "table1_28140590_1" WHERE "title"='\"It''s a Wonderful Lie\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28140590_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What date did the episode with a production code of 60072 originally air? <|assistant|> SELECT "original_air_date" FROM "table1_28140590_1" WHERE "production_code"=60072;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many different people directed the episode titled "Fail Fish"? <|assistant|> SELECT COUNT("directed_by") FROM "table1_28146944_2" WHERE "title"='\"Fail Fish\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many millions of people in the US watched the episode titled "Peopleing"? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_28146944_2" WHERE "title"='\"Peopleing\"';<|endoftext|>