text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pitchers" ( "pitcher" text, "strikeouts" real, "season" real, "team" text, "league" text, "overall_rank" real ); Question: Name the league for strikeouts being 451 <|assistant|> SELECT "league" FROM "pitchers" WHERE "strikeouts"=451;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pitchers" ( "pitcher" text, "strikeouts" real, "season" real, "team" text, "league" text, "overall_rank" real ); Question: Name the most overall rank for nl/ua league <|assistant|> SELECT MAX("overall_rank") FROM "pitchers" WHERE "league"='NL/UA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pitchers" ( "pitcher" text, "strikeouts" real, "season" real, "team" text, "league" text, "overall_rank" real ); Question: Name the total number of pitcher for 9 overall rank <|assistant|> SELECT COUNT("pitcher") FROM "pitchers" WHERE "overall_rank"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pitchers" ( "pitcher" text, "strikeouts" real, "season" real, "team" text, "league" text, "overall_rank" real ); Question: Name the most season for old hoss radbourn <|assistant|> SELECT MAX("season") FROM "pitchers" WHERE "pitcher"='Old Hoss Radbourn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24278858_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What week did they play the amsterdam admirals? <|assistant|> SELECT MAX("week") FROM "table1_24278858_2" WHERE "opponent"='Amsterdam Admirals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24278858_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What date did the team play on week 8? <|assistant|> SELECT "date" FROM "table1_24278858_2" WHERE "week"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24285393_1" ( "country_or_region" text, "highest_point" text, "maximum_elevation" text, "lowest_point" text, "minimum_elevation" text, "elevation_span" text ); Question: What country has the most height in the northwestern peak of rysy? <|assistant|> SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Northwestern peak of Rysy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24285393_1" ( "country_or_region" text, "highest_point" text, "maximum_elevation" text, "lowest_point" text, "minimum_elevation" text, "elevation_span" text ); Question: What are the highest point in latvia <|assistant|> SELECT "highest_point" FROM "table1_24285393_1" WHERE "country_or_region"='Latvia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24285393_1" ( "country_or_region" text, "highest_point" text, "maximum_elevation" text, "lowest_point" text, "minimum_elevation" text, "elevation_span" text ); Question: What is the maximum elevation in netherlands? <|assistant|> SELECT "maximum_elevation" FROM "table1_24285393_1" WHERE "country_or_region"='Netherlands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24285393_1" ( "country_or_region" text, "highest_point" text, "maximum_elevation" text, "lowest_point" text, "minimum_elevation" text, "elevation_span" text ); Question: In what country is mont sokbaro a highest point <|assistant|> SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Mont Sokbaro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: how many times was third place held by drnovice? <|assistant|> SELECT COUNT("club") FROM "year_by_year" WHERE "third_place"='Drnovice';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: Who is the top goalscorer for the season 2010-11? <|assistant|> SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2010-11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: Who had third place when the champions is baník ostrava (1)? <|assistant|> SELECT "third_place" FROM "year_by_year" WHERE "champions"='Baník Ostrava (1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: Who was the top goalscorer for season 2001-02? <|assistant|> SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2001-02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: Who is the runner-up for the season 2008-09? <|assistant|> SELECT "runner_up" FROM "year_by_year" WHERE "season"='2008-09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" text, "champions" text, "runner_up" text, "third_place" text, "top_goalscorer" text, "club" text ); Question: Who is the top goalscorer for season 1998-99? <|assistant|> SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='1998-99';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_18" ( "year" text, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit? <|assistant|> SELECT "championship" FROM "wins_18" WHERE "margin"='1 stroke' AND "54_holes"='2 shot deficit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2430014_6" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text ); Question: Name the total number directed by for " france : cap gris-nez to mont-saint-michel " <|assistant|> SELECT COUNT("directed_by") FROM "table1_2430014_6" WHERE "title"='\" France : Cap Gris-Nez to Mont-Saint-Michel \"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2430014_6" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text ); Question: Name the written by for john trefor <|assistant|> SELECT "written_by" FROM "table1_2430014_6" WHERE "directed_by"='John Trefor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2430014_8" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text ); Question: How many directors worked on the episode with 2.27m (5) is the ratings? <|assistant|> SELECT COUNT("directed_by") FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2430014_8" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text ); Question: What is the title of episode 2? <|assistant|> SELECT "title" FROM "table1_2430014_8" WHERE "episode_no"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2430014_8" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text ); Question: Who wrote the episode what had the rating 2.27m (5)? <|assistant|> SELECT "written_by" FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the name for 14.5 2013 rev <|assistant|> SELECT "name" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='14.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the 2013 profit for assets being 11.2 <|assistant|> SELECT "2013_profit_mil_usd" FROM "forbes_global_2000" WHERE "assets_2013_bil"='11.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the assets when the rank is 1435 <|assistant|> SELECT "assets_2013_bil" FROM "forbes_global_2000" WHERE "rank_2013"=1435;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the number of rank for april 2013 for 2012 ran kbeing 225 <|assistant|> SELECT COUNT("april_2013_cum_rank") FROM "forbes_global_2000" WHERE "rank_2012"=225;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the market cap where 2013 rev is 2.8 <|assistant|> SELECT "market_cap_march_15_mil" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='2.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "forbes_global_2000" ( "april_2013_cum_rank" real, "name" text, "rank_2012" real, "rank_2013" real, "base" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" text, "assets_2013_bil" text, "market_cap_march_15_mil" real ); Question: Name the number of assets for australia <|assistant|> SELECT COUNT("assets_2013_bil") FROM "forbes_global_2000" WHERE "base"='Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_5" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_dead_lift" text, "event_4_fingals_fingers" text, "event_5_keg_toss" text, "event_6_atlas_stones" text ); Question: What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event? <|assistant|> SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='6 (4 in 34.49s)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_5" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_dead_lift" text, "event_4_fingals_fingers" text, "event_5_keg_toss" text, "event_6_atlas_stones" text ); Question: Who are all the players from the united states? <|assistant|> SELECT "name" FROM "group_5" WHERE "nationality"='United States';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_5" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_dead_lift" text, "event_4_fingals_fingers" text, "event_5_keg_toss" text, "event_6_atlas_stones" text ); Question: What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event? <|assistant|> SELECT COUNT("event_6_atlas_stones") FROM "group_5" WHERE "event_3_dead_lift"='2 (6 in 30.89s)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_5" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_dead_lift" text, "event_4_fingals_fingers" text, "event_5_keg_toss" text, "event_6_atlas_stones" text ); Question: What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event? <|assistant|> SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='5 (4 in 32.66s)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_5" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_dead_lift" text, "event_4_fingals_fingers" text, "event_5_keg_toss" text, "event_6_atlas_stones" text ); Question: What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers? <|assistant|> SELECT "event_2_truck_pull" FROM "group_5" WHERE "event_4_fingals_fingers"='1 (5 in 33.84s)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); Question: When 0 is the top 10's what is the highest amount of cuts made? <|assistant|> SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "top_10s"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); Question: What is the lowest overall amount of times they've been in 3rd? <|assistant|> SELECT MIN("3rd") FROM "lpga_tour_career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); Question: When 2011 is the year what is the lowest money list rank? <|assistant|> SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); Question: What is the lowest overall money list rank? <|assistant|> SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); Question: When t3 is the best finish what is the lowest amount of tournaments played? <|assistant|> SELECT MIN("tournaments_played") FROM "lpga_tour_career_summary" WHERE "best_finish"='T3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_money_won" ( "player" text, "group_legs_won" real, "play_off_legs_won" real, "winners_group_legs_won" real, "winners_play_off_legs_won" real, "final_position_money_won" text, "total_money_won" text ); Question: What is the latest amount of won legs in the payoffs when the prize money was £2,350? <|assistant|> SELECT MAX("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£2,350';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_money_won" ( "player" text, "group_legs_won" real, "play_off_legs_won" real, "winners_group_legs_won" real, "winners_play_off_legs_won" real, "final_position_money_won" text, "total_money_won" text ); Question: How many group legs were won with player Mark Dudbridge? <|assistant|> SELECT "winners_group_legs_won" FROM "prize_money_won" WHERE "player"='Mark Dudbridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_money_won" ( "player" text, "group_legs_won" real, "play_off_legs_won" real, "winners_group_legs_won" real, "winners_play_off_legs_won" real, "final_position_money_won" text, "total_money_won" text ); Question: What is the highest amount of group legs won when the prize money was £21,850? <|assistant|> SELECT MAX("winners_group_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£21,850';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_money_won" ( "player" text, "group_legs_won" real, "play_off_legs_won" real, "winners_group_legs_won" real, "winners_play_off_legs_won" real, "final_position_money_won" text, "total_money_won" text ); Question: How many play-off legs were won when the prize money was £10,300? <|assistant|> SELECT COUNT("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£10,300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "prize_money_won" ( "player" text, "group_legs_won" real, "play_off_legs_won" real, "winners_group_legs_won" real, "winners_play_off_legs_won" real, "final_position_money_won" text, "total_money_won" text ); Question: What is the least amount of playoff legs won? <|assistant|> SELECT MIN("winners_play_off_legs_won") FROM "prize_money_won";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24319661_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); Question: Who directed episode 53 in the series? <|assistant|> SELECT "directed_by" FROM "table1_24319661_5" WHERE "no_in_series"=53;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24319661_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); Question: What as the production code for the episode directed by Robert Duncan McNeill? <|assistant|> SELECT "production_code" FROM "table1_24319661_5" WHERE "directed_by"='Robert Duncan McNeill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24319661_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); Question: What episode number of the season had BCW410 as a production code? <|assistant|> SELECT "no_in_season" FROM "table1_24319661_5" WHERE "production_code"='BCW410';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24319661_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); Question: What episode number in the series had 2.77 million U.S. viewers? <|assistant|> SELECT MAX("no_in_series") FROM "table1_24319661_5" WHERE "u_s_viewers_million"='2.77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "welsh_boroughs" ( "borough" text, "county" text, "franchise_type" text, "members" real, "voters_in_1800" real, "times_contested" real, "fate_in_1832" text ); Question: Name the most times contested for montgomeryshire <|assistant|> SELECT MAX("times_contested") FROM "welsh_boroughs" WHERE "county"='Montgomeryshire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "welsh_boroughs" ( "borough" text, "county" text, "franchise_type" text, "members" real, "voters_in_1800" real, "times_contested" real, "fate_in_1832" text ); Question: Name the fate in 1832 for pembrokeshire <|assistant|> SELECT "fate_in_1832" FROM "welsh_boroughs" WHERE "county"='Pembrokeshire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: what is the least number of podiums for a formula BMW Americas series? <|assistant|> SELECT MIN("podiums") FROM "career_summary" WHERE "series"='Formula BMW Americas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What is the maximum number of wins in the formula 3 euro series? <|assistant|> SELECT MAX("wins") FROM "career_summary" WHERE "series"='Formula 3 Euro Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many positions were given when 30 points were won? <|assistant|> SELECT COUNT("position") FROM "career_summary" WHERE "points"='30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many pole positions were there for the 2011 season? <|assistant|> SELECT MAX("poles") FROM "career_summary" WHERE "season"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: List the tournament that kent state won? <|assistant|> SELECT "conference_tournament" FROM "table1_24348134_3" WHERE "tournament_winner"='Kent State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: List the team that won the 2001 mwc men's basketball tournament <|assistant|> SELECT "tournament_winner" FROM "table1_24348134_3" WHERE "conference_tournament"='2001 MWC Men''s Basketball Tournament';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: What team won the regular season when georgia state won the tournament? <|assistant|> SELECT "regular_season_winner" FROM "table1_24348134_3" WHERE "tournament_winner"='Georgia State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: In what city did oklahoma win the tournament. <|assistant|> SELECT "tournament_venue_city" FROM "table1_24348134_3" WHERE "tournament_winner"='Oklahoma';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: List the players of the year for the tournament held in matadome ( northridge, california )? <|assistant|> SELECT "conference_player_of_the_year" FROM "table1_24348134_3" WHERE "tournament_venue_city"='Matadome ( Northridge, California )';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24348134_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: List the number of tournament winners when iona , siena & niagara won in the regular season. <|assistant|> SELECT COUNT("tournament_winner") FROM "table1_24348134_3" WHERE "regular_season_winner"='Iona , Siena & Niagara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24346010_1" ( "guberniya" text, "total_population" real, "belarusian" real, "russian" real, "polish" real ); Question: What is the population of Mogilev? <|assistant|> SELECT MIN("total_population") FROM "table1_24346010_1" WHERE "guberniya"='Mogilev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24346010_1" ( "guberniya" text, "total_population" real, "belarusian" real, "russian" real, "polish" real ); Question: What are the polish population where guberniya is vitebsk? <|assistant|> SELECT "polish" FROM "table1_24346010_1" WHERE "guberniya"='Vitebsk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24346010_1" ( "guberniya" text, "total_population" real, "belarusian" real, "russian" real, "polish" real ); Question: What is the population of polish where guberniya is grodno? <|assistant|> SELECT MIN("polish") FROM "table1_24346010_1" WHERE "guberniya"='Grodno';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_243664_1" ( "railroad" text, "game_cost" text, "real_life_years_of_operation" text, "real_life_eventual_outcome" text, "currently_part_of" text ); Question: Name the real life for eventual outcome is amtrak <|assistant|> SELECT "real_life_eventual_outcome" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_243664_1" ( "railroad" text, "game_cost" text, "real_life_years_of_operation" text, "real_life_eventual_outcome" text, "currently_part_of" text ); Question: Name the real life years of operation for amtrak <|assistant|> SELECT "real_life_years_of_operation" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_243664_1" ( "railroad" text, "game_cost" text, "real_life_years_of_operation" text, "real_life_eventual_outcome" text, "currently_part_of" text ); Question: Name the game coast for chicago and north western <|assistant|> SELECT "game_cost" FROM "table1_243664_1" WHERE "railroad"='Chicago and North Western';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_243664_1" ( "railroad" text, "game_cost" text, "real_life_years_of_operation" text, "real_life_eventual_outcome" text, "currently_part_of" text ); Question: Name the game cost for merged with new york central to form penn central <|assistant|> SELECT "game_cost" FROM "table1_243664_1" WHERE "real_life_eventual_outcome"='Merged with New York Central to form Penn Central';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grp_lists_of_russian_federal_subjects_in" ( "rank_2008" real, "federal_subjects" text, "russian_name" text, "2008_rub" real, "2008_usd" real, "2007_rub" real, "2007_usd" real, "2005_rub" real, "2005_usd" real ); Question: What is the minimum 2007 USD in Kabardino-Balkaria? <|assistant|> SELECT MIN("2007_usd") FROM "grp_lists_of_russian_federal_subjects_in" WHERE "federal_subjects"='Kabardino-Balkaria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grp_lists_of_russian_federal_subjects_in" ( "rank_2008" real, "federal_subjects" text, "russian_name" text, "2008_rub" real, "2008_usd" real, "2007_rub" real, "2007_usd" real, "2005_rub" real, "2005_usd" real ); Question: What is the Russian name for the area with 139995 RUB in 2005? <|assistant|> SELECT "russian_name" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_rub"=139995;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grp_lists_of_russian_federal_subjects_in" ( "rank_2008" real, "federal_subjects" text, "russian_name" text, "2008_rub" real, "2008_usd" real, "2007_rub" real, "2007_usd" real, "2005_rub" real, "2005_usd" real ); Question: What is the 2008 USD figure for the subject with 2849 USD in 2005? <|assistant|> SELECT "2008_usd" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_usd"=2849;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: Who is every contestant for the position of 4th? <|assistant|> SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: What is every amount for weight lost if the starting weight is 97.4? <|assistant|> SELECT "weight_lost_kg" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='97.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: Who is every contestant for the position of 3rd? <|assistant|> SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: What is the starting weight if weight lost is 54.6? <|assistant|> SELECT "starting_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "weight_lost_kg"='54.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: What is the position for starting weight of 130.6? <|assistant|> SELECT "position_out_of_eliminated_contestants" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='130.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminated_contestants_weigh_in" ( "contestant" text, "starting_weight_kg" text, "final_weight_kg" text, "weight_lost_kg" text, "percentage_lost" text, "position_out_of_eliminated_contestants" text ); Question: What is the final weight for contestant Chris? <|assistant|> SELECT "final_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "contestant"='Chris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: How many times did the sounddock series II aux in? <|assistant|> SELECT COUNT("aux_in") FROM "features_comparison" WHERE "version"='SoundDock series II';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: Was the sounddock series I v2 iphone certified? <|assistant|> SELECT "i_phone_certified" FROM "features_comparison" WHERE "version"='SoundDock series I v2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: How many connections aux in using FIrewire? <|assistant|> SELECT COUNT("aux_in") FROM "features_comparison" WHERE "dock_connection"='FireWire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: how many video out connections does the sounddock portable have? <|assistant|> SELECT COUNT("video_out") FROM "features_comparison" WHERE "version"='SoundDock Portable';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: Does the sounddock series I v2 have dual voltage? <|assistant|> SELECT "dual_voltage" FROM "features_comparison" WHERE "version"='SoundDock series I v2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features_comparison" ( "version" text, "dock_connection" text, "aux_in" text, "battery" text, "i_phone_certified" text, "video_out" text, "dual_voltage" text ); Question: What type of dock connection does the sounddock series III have? <|assistant|> SELECT "dock_connection" FROM "features_comparison" WHERE "version"='SoundDock series III';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24396664_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: Where was the game played that started at 7:00 p.m.? <|assistant|> SELECT "game_site" FROM "table1_24396664_2" WHERE "kickoff"='7:00 p.m.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: how many varsity teams are in west roxbury, ma? <|assistant|> SELECT MAX("varsity_teams") FROM "members" WHERE "location"='West Roxbury, MA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: what is the mascot of st. paul's school? <|assistant|> SELECT "mascot" FROM "members" WHERE "school"='St. Paul''s School';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: where are dragons used as mascots? <|assistant|> SELECT "location" FROM "members" WHERE "mascot"='Dragons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: when was lawrence academy at groton established? <|assistant|> SELECT MIN("founded") FROM "members" WHERE "school"='Lawrence Academy at Groton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: name the school located at Milton, ma. <|assistant|> SELECT "school" FROM "members" WHERE "location"='Milton, MA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "school" text, "mascot" text, "location" text, "founded" real, "entered_isl" real, "grades" text, "number_of_students" text, "varsity_teams" real ); Question: how many places have 17 varsity teams? <|assistant|> SELECT COUNT("location") FROM "members" WHERE "varsity_teams"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24399615_10" ( "episode_no" real, "airdate" text, "viewers" text, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: Which episode had bbc ranking and canle ranking of n/a? <|assistant|> SELECT COUNT("episode_no") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='N/A' AND "cable_rank"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24399615_10" ( "episode_no" real, "airdate" text, "viewers" text, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: List the number of bbc rankings with cable rankings of 6. <|assistant|> SELECT "bbc_three_weekly_ranking" FROM "table1_24399615_10" WHERE "cable_rank"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24399615_10" ( "episode_no" real, "airdate" text, "viewers" text, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: List the number of viewers when the cable rank for Russell Howard's Good New was 5. <|assistant|> SELECT "viewers" FROM "table1_24399615_10" WHERE "cable_rank"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24399615_10" ( "episode_no" real, "airdate" text, "viewers" text, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: How many individuals watched the show that had a bbc ranking of 6? <|assistant|> SELECT COUNT("viewers") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" real, "cable_rank" real ); Question: How many times did episode number 8 air? <|assistant|> SELECT COUNT("cable_rank") FROM "series_3" WHERE "episode_no"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" real, "cable_rank" real ); Question: When did episode number 6 air? <|assistant|> SELECT "airdate" FROM "series_3" WHERE "episode_no"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_2" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: How many items are listed under viewers column when the bbd three weekly ranking was 1? <|assistant|> SELECT COUNT("viewers") FROM "series_2" WHERE "bbc_three_weekly_ranking"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_2" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: What episode number had a cable ranking of 8? <|assistant|> SELECT MIN("episode_no") FROM "series_2" WHERE "cable_rank"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_2" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: What date did the episode air that had n/a for it's bbc three weekly ranking? <|assistant|> SELECT "airdate" FROM "series_2" WHERE "bbc_three_weekly_ranking"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_2" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: What date did the episode air that had a ranking of 17 for cable? <|assistant|> SELECT "airdate" FROM "series_2" WHERE "cable_rank"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_6" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: When 3 is the bbc three weekly ranking what is the airdate? <|assistant|> SELECT "airdate" FROM "series_6" WHERE "bbc_three_weekly_ranking"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_6" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" text, "cable_rank" text ); Question: When 656000 is the amount of viewers and n/a is the cable rank what is the airdate? <|assistant|> SELECT "airdate" FROM "series_6" WHERE "cable_rank"='N/A' AND "viewers"=656000;<|endoftext|>