text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the championship for hard surface 7–5, 6–4 <|assistant|> SELECT "championship" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "score"='7–5, 6–4' AND "surface"='Hard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the surface for nathalie tauziat <|assistant|> SELECT "surface" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "partner"='Nathalie Tauziat';<|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, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text ); Question: Name the most year for money list rank is 74 <|assistant|> SELECT MAX("year") FROM "lpga_tour_career_summary" WHERE "money_list_rank"=74;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the team for avg start being 20.5 <|assistant|> SELECT "team_s" FROM "nationwide_series" WHERE "avg_start"='20.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the team for wins being 0 and top 5 is 0 and poles is 0 and avg start is 37.0 <|assistant|> SELECT "team_s" FROM "nationwide_series" WHERE "wins"=0 AND "top_5"=0 AND "poles"=0 AND "avg_start"='37.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the winnings for 23rd position <|assistant|> SELECT "winnings" FROM "nationwide_series" WHERE "position"='23rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the winnings for 2004 <|assistant|> SELECT "winnings" FROM "nationwide_series" WHERE "year"=2004;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Name the total number of top 10 for avg start being 37.3 <|assistant|> SELECT COUNT("top_10") FROM "nationwide_series" WHERE "avg_start"='37.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); Question: What was the method of elimination in the chamber with a time of 24:02? <|assistant|> SELECT "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='24:02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); Question: what is the maximum number that entered when the eliminator was Triple H? <|assistant|> SELECT MAX("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated_by"='Triple H';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); Question: How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? <|assistant|> SELECT COUNT("wrestler") FROM "elimination_chamber_entrances_and_elimin" WHERE "method_of_elimination"='Pinned after being hit by a lead pipe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); Question: What was the method of elimination for Kofi Kingston/ <|assistant|> SELECT "method_of_elimination" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='Kofi Kingston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slams_11_finals_9_titles_2_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponent" text, "score" text ); Question: What championships were played on clay and the opponent was virginia ruano pascual paola suárez? <|assistant|> SELECT "championship" FROM "grand_slams_11_finals_9_titles_2_runner_" WHERE "surface"='Clay' AND "opponent"='Virginia Ruano Pascual Paola Suárez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slams_11_finals_9_titles_2_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponent" text, "score" text ); Question: What championships had a match where Natasha Zvereva played as partner? <|assistant|> SELECT "championship" FROM "grand_slams_11_finals_9_titles_2_runner_" WHERE "partner"='Natasha Zvereva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conroe_merom_65_nm" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text ); Question: What is the value for model if processor is Kentsfield and brand name is Xeon? <|assistant|> SELECT "model_list" FROM "conroe_merom_65_nm" WHERE "processor"='Kentsfield' AND "brand_name"='Xeon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conroe_merom_65_nm" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text ); Question: What is every value for TDP if model is x53xx? <|assistant|> SELECT "tdp" FROM "conroe_merom_65_nm" WHERE "model_list"='X53xx';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conroe_merom_65_nm" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text ); Question: What is every value for cores if TDP is 17 W? <|assistant|> SELECT "cores" FROM "conroe_merom_65_nm" WHERE "tdp"='17 W';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text, "rank_night" text ); Question: How many records for number of viewers is listed for episode number 8? <|assistant|> SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text, "rank_night" text ); Question: What was the 18 to 49 rating when 9.50 million watched? <|assistant|> SELECT "rating_18_49" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='9.50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text, "rank_night" text ); Question: what episode number had 11.73 million viewers? <|assistant|> SELECT "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text, "rank_night" text ); Question: How many episodes had 11.47 million viewers? <|assistant|> SELECT COUNT("episode") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='11.47';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_4" ( "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 wrote the episode that originally aired April 29, 1994? <|assistant|> SELECT "written_by" FROM "table1_2468961_4" WHERE "original_air_date"='April 29, 1994';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_4" ( "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 was the production code for the episode that debuted October 1, 1993? <|assistant|> SELECT MAX("production_code") FROM "table1_2468961_4" WHERE "original_air_date"='October 1, 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_4" ( "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 wrote the episode "Sister Act"? <|assistant|> SELECT "written_by" FROM "table1_2468961_4" WHERE "title"='\"Sister Act\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_4" ( "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 was the title of series number 56? <|assistant|> SELECT "title" FROM "table1_2468961_4" WHERE "no_in_series"=56;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_4" ( "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 was the title of the episode written by Julia Newton in series 48? <|assistant|> SELECT "title" FROM "table1_2468961_4" WHERE "written_by"='Julia Newton' AND "no_in_series"=48;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the callsign that has a station type of relay and a channel number of TV-2? <|assistant|> SELECT "callsign" FROM "ptv_stations_nationwide" WHERE "station_type"='Relay' AND "ch_num"='TV-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the station type of DWZM-TV? <|assistant|> SELECT "station_type" FROM "ptv_stations_nationwide" WHERE "callsign"='DWZM-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the power in kilowatts of TV-12? <|assistant|> SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "ch_num"='TV-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the power in KW of the transmitter situated in Borongan? <|assistant|> SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "location_transmitter_site"='Borongan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the channel number that has a branding of PTV 4 Laoag? <|assistant|> SELECT "ch_num" FROM "ptv_stations_nationwide" WHERE "branding"='PTV 4 Laoag';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ptv_stations_nationwide" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: What is the power in KW that has a station type of relay and a callsign of DXCL-TV? <|assistant|> SELECT "power_k_w" FROM "ptv_stations_nationwide" WHERE "station_type"='Relay' AND "callsign"='DXCL-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When 15 is the number in season what is the highest number in series? <|assistant|> SELECT MAX("no_in_series") FROM "table1_2468961_7" WHERE "no_in_season"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When 123 is the number in series who is the director? <|assistant|> SELECT "directed_by" FROM "table1_2468961_7" WHERE "no_in_series"=123;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When "the kissing game" is the title who is the director? <|assistant|> SELECT "directed_by" FROM "table1_2468961_7" WHERE "title"='\"The Kissing Game\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When 120 is the number in series who is the writer? <|assistant|> SELECT "written_by" FROM "table1_2468961_7" WHERE "no_in_series"=120;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When 137 is the number in series what is the production code? <|assistant|> SELECT "production_code" FROM "table1_2468961_7" WHERE "no_in_series"=137;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24706337_1" ( "name_of_the_war" text, "ottoman_sultan" text, "persian_shah" text, "treaty_at_the_end_of_the_war" text, "victor" text ); Question: How many victors where there in the War of 1730–1736 , first stage? <|assistant|> SELECT COUNT("victor") FROM "table1_24706337_1" WHERE "name_of_the_war"='War of 1730–1736 , first stage';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24706337_1" ( "name_of_the_war" text, "ottoman_sultan" text, "persian_shah" text, "treaty_at_the_end_of_the_war" text, "victor" text ); Question: Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)? <|assistant|> SELECT "ottoman_sultan" FROM "table1_24706337_1" WHERE "treaty_at_the_end_of_the_war"='Treaty of Constantinople (1590)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24706337_1" ( "name_of_the_war" text, "ottoman_sultan" text, "persian_shah" text, "treaty_at_the_end_of_the_war" text, "victor" text ); Question: What is the name of the war where the Ottoman sultan was Selim I? <|assistant|> SELECT "name_of_the_war" FROM "table1_24706337_1" WHERE "ottoman_sultan"='Selim I';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When "baby come back" is the title what is the air date? <|assistant|> SELECT "original_air_date" FROM "table1_2468961_6" WHERE "title"='\"Baby Come Back\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When 102 is the number in series who is the director? <|assistant|> SELECT "directed_by" FROM "table1_2468961_6" WHERE "no_in_series"=102;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: When "we're going to disney world (part 1)" is the title what is the air date? <|assistant|> SELECT "original_air_date" FROM "table1_2468961_6" WHERE "title"='\"We''re Going to Disney World (Part 1)\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2468961_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name who wrote the episode directed by patrick duffy airing on november 7, 1997 <|assistant|> SELECT "written_by" FROM "table1_2468961_8" WHERE "directed_by"='Patrick Duffy' AND "original_air_date"='November 7, 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text ); Question: What is the last year total for the team with a lowest of 23578? <|assistant|> SELECT MAX("last_year") FROM "match_attendance" WHERE "lowest"=23578;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text ); Question: How many highest figures for the team with lowest of 16415? <|assistant|> SELECT COUNT("highest") FROM "match_attendance" WHERE "lowest"=16415;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text ); Question: Which team has an up/down of + 3479? <|assistant|> SELECT "team" FROM "match_attendance" WHERE "up_down"='+ 3479';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_attendance" ( "team" text, "hosted" real, "average" real, "highest" real, "lowest" real, "total" real, "last_year" real, "up_down" text ); Question: What is the average of the team where the total is 243017? <|assistant|> SELECT "average" FROM "match_attendance" WHERE "total"=243017;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24725951_1" ( "episode" real, "stage" text, "celebrities" text, "directed_and_produced_by" text, "original_airdate" text, "viewers_overnight_estimates" text ); Question: How many episodes had celebrity guest stars Frank Skinner and Lee Mack? <|assistant|> SELECT COUNT("episode") FROM "table1_24725951_1" WHERE "celebrities"='Frank Skinner and Lee Mack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24725951_1" ( "episode" real, "stage" text, "celebrities" text, "directed_and_produced_by" text, "original_airdate" text, "viewers_overnight_estimates" text ); Question: List episode directed and produced by Karen Selway? <|assistant|> SELECT "episode" FROM "table1_24725951_1" WHERE "directed_and_produced_by"='Karen Selway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24725951_1" ( "episode" real, "stage" text, "celebrities" text, "directed_and_produced_by" text, "original_airdate" text, "viewers_overnight_estimates" text ); Question: Which episode had celebrities Nick Hewer and Saira Khan in them? <|assistant|> SELECT "episode" FROM "table1_24725951_1" WHERE "celebrities"='Nick Hewer and Saira Khan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24725951_1" ( "episode" real, "stage" text, "celebrities" text, "directed_and_produced_by" text, "original_airdate" text, "viewers_overnight_estimates" text ); Question: List the director and producer when Nick Hewer and Saira Khan were starring. <|assistant|> SELECT "directed_and_produced_by" FROM "table1_24725951_1" WHERE "celebrities"='Nick Hewer and Saira Khan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24725951_1" ( "episode" real, "stage" text, "celebrities" text, "directed_and_produced_by" text, "original_airdate" text, "viewers_overnight_estimates" text ); Question: List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin. <|assistant|> SELECT "directed_and_produced_by" FROM "table1_24725951_1" WHERE "celebrities"='Bill Turnbull and Louise Minchin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the torque? <|assistant|> SELECT "torque" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: whe, co2 is 206g/km, what is the torque? <|assistant|> SELECT "torque" FROM "981" WHERE "co2"='206g/km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: when co2 is 192g/km, what is the power? <|assistant|> SELECT "power" FROM "981" WHERE "co2"='192g/km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: when co2 is 192g/km, what is the power? <|assistant|> SELECT "power" FROM "981" WHERE "co2"='192g/km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: when 0–100km/h (60mph) is 5.8 seconds (5.5), what is the engine? <|assistant|> SELECT "engine" FROM "981" WHERE "0_100km_h_60mph"='5.8 seconds (5.5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "981" ( "year" real, "engine" text, "power" text, "torque" text, "transmission" text, "0_100km_h_60mph" text, "top_speed" text, "co2" text ); Question: when0–100km/h (60mph) is 5.5 seconds (5.2), whats is the top speed? <|assistant|> SELECT "top_speed" FROM "981" WHERE "0_100km_h_60mph"='5.5 seconds (5.2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: What is the circuit of round 5? <|assistant|> SELECT "circuit" FROM "race_calendar_and_results" WHERE "round"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: What date did Mike Rockenfeller have the fastest lap? <|assistant|> SELECT "date" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_name" ( "name" text, "nation" text, "seasons" text, "championship_titles" text, "races_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text ); Question: How many points for the driver who raced in seasons 2006 – 2007 , 2009? <|assistant|> SELECT "points" FROM "by_name" WHERE "seasons"='2006 – 2007 , 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "rank" text, "player" text, "nationality" text, "team" text, "opponent" text, "score" text, "competition" text, "vote_percentage" text ); Question: What's the name of the competition where the nationality is Brazil and the voting percentage is n/a? <|assistant|> SELECT "competition" FROM "2010" WHERE "vote_percentage"='N/A' AND "nationality"='Brazil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "rank" text, "player" text, "nationality" text, "team" text, "opponent" text, "score" text, "competition" text, "vote_percentage" text ); Question: What's the player's name whose nationality and team are Netherlands? <|assistant|> SELECT "player" FROM "2010" WHERE "nationality"='Netherlands' AND "team"='Netherlands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "rank" text, "player" text, "nationality" text, "team" text, "opponent" text, "score" text, "competition" text, "vote_percentage" text ); Question: What was the score for the game in which Samir Nasri played? <|assistant|> SELECT "score" FROM "2010" WHERE "player"='Samir Nasri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "rank" text, "player" text, "nationality" text, "team" text, "opponent" text, "score" text, "competition" text, "vote_percentage" text ); Question: Who is the player that played in the UEFA Euro 2012 qualifying Group A competition? <|assistant|> SELECT "player" FROM "2010" WHERE "competition"='UEFA Euro 2012 qualifying Group A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010" ( "rank" text, "player" text, "nationality" text, "team" text, "opponent" text, "score" text, "competition" text, "vote_percentage" text ); Question: What is the ranking of the UEFA Euro 2012 qualifying Group A competition? <|assistant|> SELECT "rank" FROM "2010" WHERE "competition"='UEFA Euro 2012 qualifying Group A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpina_previous_models_petrol_engines" ( "alpina_model" text, "bmw_donor_model" text, "alpina_engine" text, "power" text, "torque" text, "production" text ); Question: Name the production for alpina model being b10 4,6 <|assistant|> SELECT "production" FROM "alpina_previous_models_petrol_engines" WHERE "alpina_model"='B10 4,6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24776075_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: How many final score datas are there on Sunday, May 12? <|assistant|> SELECT COUNT("final_score") FROM "table1_24776075_2" WHERE "date"='Sunday, May 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24776075_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: The game on Saturday, May 25 took place on which week? <|assistant|> SELECT MIN("week") FROM "table1_24776075_2" WHERE "date"='Saturday, May 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24776075_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What was the final score on Saturday, May 25? <|assistant|> SELECT "final_score" FROM "table1_24776075_2" WHERE "date"='Saturday, May 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_2" ( "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 10 is the number who is the writer? <|assistant|> SELECT "writer_s" FROM "table1_24781886_2" WHERE "num"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_2" ( "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 6.66 is the amount of viewers what is the lowest production code? <|assistant|> SELECT MIN("production_code") FROM "table1_24781886_2" WHERE "viewers"='6.66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_2" ( "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 7.55 is the amount of viewers what is the lowest number? <|assistant|> SELECT MIN("num") FROM "table1_24781886_2" WHERE "viewers"='7.55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "progressive_conservative" real, "liberal" real, "new_democratic" real ); Question: How many figures are given for the New Democratic for the polling range May 11–31, 2010? <|assistant|> SELECT COUNT("new_democratic") FROM "opinion_polls" WHERE "date_of_polling"='May 11–31, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "progressive_conservative" real, "liberal" real, "new_democratic" real ); Question: What format is the link for the polling data for February 10–28, 2011? <|assistant|> SELECT "link" FROM "opinion_polls" WHERE "date_of_polling"='February 10–28, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_3" ( "total" real, "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When "gary is a boat guy" is the title how many sets of viewers are there? <|assistant|> SELECT COUNT("viewers") FROM "table1_24781886_3" WHERE "title"='\"Gary Is A Boat Guy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_3" ( "total" real, "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 9 is the number what is the title? <|assistant|> SELECT "title" FROM "table1_24781886_3" WHERE "num"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_3" ( "total" real, "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 3 is the number what is the highest total? <|assistant|> SELECT MAX("total") FROM "table1_24781886_3" WHERE "num"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_3" ( "total" real, "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 7.08 is the amount of viewers what is the air date? <|assistant|> SELECT "air_date" FROM "table1_24781886_3" WHERE "viewers"='7.08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24781886_3" ( "total" real, "num" real, "title" text, "director" text, "writer_s" text, "viewers" text, "air_date" text, "production_code" real ); Question: When 7.08 is the amount of viewers how many directors are there? <|assistant|> SELECT COUNT("director") FROM "table1_24781886_3" WHERE "viewers"='7.08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24798489_2" ( "episode_number" real, "location" text, "original_airdate" text, "challenge_winner" text, "challenge" text ); Question: What location did the episode that aired originally on August 26, 2009 take place at? <|assistant|> SELECT "location" FROM "table1_24798489_2" WHERE "original_airdate"='August 26, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24798489_2" ( "episode_number" real, "location" text, "original_airdate" text, "challenge_winner" text, "challenge" text ); Question: How many dates originally aired episodes located in Philadelphia, pennsylvania? <|assistant|> SELECT COUNT("original_airdate") FROM "table1_24798489_2" WHERE "location"='Philadelphia, Pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24798489_2" ( "episode_number" real, "location" text, "original_airdate" text, "challenge_winner" text, "challenge" text ); Question: What was the challenge for episode 28? <|assistant|> SELECT "challenge" FROM "table1_24798489_2" WHERE "episode_number"=28;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24798489_2" ( "episode_number" real, "location" text, "original_airdate" text, "challenge_winner" text, "challenge" text ); Question: How many original air dates were there for episode 22? <|assistant|> SELECT COUNT("original_airdate") FROM "table1_24798489_2" WHERE "episode_number"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_statistics" ( "name" text, "nationality" text, "position" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: What was the lowest goals ever achieved? <|assistant|> SELECT MIN("goals") FROM "playoff_statistics";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many arabic scottish is afghan <|assistant|> SELECT "afghan" FROM "language_program" WHERE "arabic"='Scottish';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many bosnian in cook islands is macedonian <|assistant|> SELECT COUNT("cook_islands") FROM "language_program" WHERE "bosnian"='Macedonian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many colombia in bangladesh is serbian <|assistant|> SELECT "colombian" FROM "language_program" WHERE "bangladeshi"='Serbian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many arabic in colobians is finnish <|assistant|> SELECT "arabic" FROM "language_program" WHERE "colombian"='Finnish';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many bosnian in cook islands is sri lankan <|assistant|> SELECT "bosnian" FROM "language_program" WHERE "cook_islands"='Sri Lankan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language_program" ( "afghan" text, "albanian" text, "arabic" text, "bangladeshi" text, "bosnian" text, "chinese" text, "colombian" text, "cook_islands" text ); Question: how many afghan in banglash is hungarian <|assistant|> SELECT "afghan" FROM "language_program" WHERE "bangladeshi"='Hungarian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_statistics" ( "name" text, "nationality" text, "position" text, "sky_blue_fc_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: What is the name if the appearance is 2 and the position is FW? <|assistant|> SELECT "name" FROM "all_time_statistics" WHERE "position"='FW' AND "appearances"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_statistics" ( "name" text, "nationality" text, "position" text, "sky_blue_fc_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: What is the assists total number if the minutes is 1? <|assistant|> SELECT COUNT("assists") FROM "all_time_statistics" WHERE "minutes"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_statistics" ( "name" text, "nationality" text, "position" text, "sky_blue_fc_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); Question: What is the appearance maximum if the starts is 18? <|assistant|> SELECT MAX("appearances") FROM "all_time_statistics" WHERE "starts"=18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2482547_5" ( "name" text, "team_s" text, "matches" real, "balls_bowled" real, "wickets_taken" real, "average" text ); Question: What are the names of all the players with an average of 15.89? <|assistant|> SELECT "name" FROM "table1_2482547_5" WHERE "average"='15.89';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2482547_5" ( "name" text, "team_s" text, "matches" real, "balls_bowled" real, "wickets_taken" real, "average" text ); Question: What's the maximum wickets taken by players named Bill Lockwood? <|assistant|> SELECT MAX("wickets_taken") FROM "table1_2482547_5" WHERE "name"='Bill Lockwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2482547_5" ( "name" text, "team_s" text, "matches" real, "balls_bowled" real, "wickets_taken" real, "average" text ); Question: What are all the teams with an average of 15.89? <|assistant|> SELECT "team_s" FROM "table1_2482547_5" WHERE "average"='15.89';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2482547_5" ( "name" text, "team_s" text, "matches" real, "balls_bowled" real, "wickets_taken" real, "average" text ); Question: Who are all the players who've bowled more than 4969 balls? <|assistant|> SELECT "name" FROM "table1_2482547_5" WHERE "balls_bowled"=4969;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2482547_5" ( "name" text, "team_s" text, "matches" real, "balls_bowled" real, "wickets_taken" real, "average" text ); Question: What are the averages for games with 212 wickets taken? <|assistant|> SELECT "average" FROM "table1_2482547_5" WHERE "wickets_taken"=212;<|endoftext|>