text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_germanic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: How many verbs mean to grow, to produce <|assistant|> SELECT COUNT("part_1") FROM "north_germanic" WHERE "verb_meaning"='to grow, to produce';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers? <|assistant|> SELECT "written_by" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: What is the original air date of episode 8? Answer: Dec. 21, 2006 <|assistant|> SELECT COUNT("original_airdate") FROM "table1_17467578_1" WHERE "episode_num"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: Who wrote the episode "The Cold Turkey", which was viewed by 3.73 million viewers? <|assistant|> SELECT "written_by" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: What is the production code of the episode "The Night Moves", which was directed by Patrick Norris? <|assistant|> SELECT "production_code" FROM "table1_17467578_1" WHERE "directed_by"='Patrick Norris' AND "title"='\"The Night Moves\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: Who wrote episode 11? <|assistant|> SELECT "written_by" FROM "table1_17467578_1" WHERE "episode_num"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers? <|assistant|> SELECT "original_airdate" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Name the class for boten <|assistant|> SELECT "class" FROM "german" WHERE "part_3"='boten';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Name the part 3 for treffen <|assistant|> SELECT "part_3" FROM "german" WHERE "part_1"='treffen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Name the part one for to give <|assistant|> SELECT "part_1" FROM "german" WHERE "verb_meaning"='to give';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Name the class for schliefen <|assistant|> SELECT "class" FROM "german" WHERE "part_3"='schliefen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Name the verb meaning for half drosch <|assistant|> SELECT "verb_meaning" FROM "german" WHERE "part_2"='half drosch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: If the product code is 2t6267, who was the director? <|assistant|> SELECT "directed_by" FROM "table1_17467447_1" WHERE "production_code"='2T6267';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: What is the air date when the U.S. viewers was 5.50 million? <|assistant|> SELECT "original_airdate" FROM "table1_17467447_1" WHERE "u_s_viewers_million"='5.50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); Question: Who were the writers for production code 2t6268? <|assistant|> SELECT "written_by" FROM "table1_17467447_1" WHERE "production_code"='2T6268';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); Question: Name the number of builders for number 96 <|assistant|> SELECT COUNT("builder") FROM "table1_1748444_1" WHERE "number"='96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); Question: Name the builder for date built is january 1910 <|assistant|> SELECT "builder" FROM "table1_1748444_1" WHERE "date_built"='January 1910';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); Question: Name the disposition for date built is march 1909 <|assistant|> SELECT "disposition" FROM "table1_1748444_1" WHERE "date_built"='March 1909';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What is the title of episode number 96 in the series? <|assistant|> SELECT "title" FROM "table1_17482534_1" WHERE "no_in_series"='96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What number in season is the episode directed by Gene Stupnitsky? <|assistant|> SELECT "no_in_season" FROM "table1_17482534_1" WHERE "directed_by"='Gene Stupnitsky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_17482534_1" WHERE "written_by"='Warren Lieberstein & Halsted Sullivan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many writers are listed for the episode with a production code of 5008? <|assistant|> SELECT COUNT("written_by") FROM "table1_17482534_1" WHERE "production_code"='5008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What number in the series are the episodes with production code 5016/5017? <|assistant|> SELECT "no_in_series" FROM "table1_17482534_1" WHERE "production_code"='5016/5017';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); Question: How many locations have the call signs dxjp-fm? <|assistant|> SELECT COUNT("location") FROM "sbn_mom_s_radio_stations" WHERE "callsign"='DXJP-FM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); Question: What is the call sign of the station with the frequency of 90.3mhz <|assistant|> SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "frequency"='90.3MHz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); Question: What is the call sign for the station that uses the branding, mom's radio 101.5 tacloban? <|assistant|> SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "branding"='Mom''s Radio 101.5 Tacloban';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); Question: What is the branding for stations located in Cebu? <|assistant|> SELECT "branding" FROM "sbn_mom_s_radio_stations" WHERE "location"='Cebu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); Question: Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu? <|assistant|> SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Dr. Kozaburo Nambu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); Question: Which battle of the planets where ova (harmony gold dub) is solaris? <|assistant|> SELECT "battle_of_the_planets" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Solaris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); Question: Which eagle riders have battle of the planets as zoltar? <|assistant|> SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "battle_of_the_planets"='Zoltar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); Question: Which gatchaman has eagle riders as lukan? <|assistant|> SELECT "gatchaman" FROM "table1_17480471_3" WHERE "eagle_riders"='Lukan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); Question: What eagle riders where ova (harmony gold dub) is lord zortek? <|assistant|> SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Lord Zortek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); Question: What pregame host was on espn and had taylor twellman color commentating? <|assistant|> SELECT "pregame_host" FROM "2010s" WHERE "network"='ESPN' AND "color_commentator"='Taylor Twellman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); Question: What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2? <|assistant|> SELECT "pregame_analysts" FROM "2010s" WHERE "sideline_reporters"='Rob Stone and Monica Gonzalez' AND "network"='TSN2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); Question: What color commentator(s) were in 2010? <|assistant|> SELECT "color_commentator" FROM "2010s" WHERE "year"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); Question: What is the last year that had sideline reporters rob stone and monica gonzalez? <|assistant|> SELECT MAX("year") FROM "2010s" WHERE "sideline_reporters"='Rob Stone and Monica Gonzalez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); Question: Who had the play-by-play on espn with sideline reporter monica gonzalez? <|assistant|> SELECT "play_by_play" FROM "2010s" WHERE "network"='ESPN' AND "sideline_reporters"='Monica Gonzalez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); Question: What was the name of race #28? <|assistant|> SELECT "name" FROM "course" WHERE "number"=28;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); Question: The Eyserweg race was which race #? <|assistant|> SELECT MAX("number") FROM "course" WHERE "name"='Eyserweg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); Question: Which race had an average climb of 40%? <|assistant|> SELECT "location" FROM "course" WHERE "average_climb_pct"=40;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); Question: The Keutenberg race had what race length? <|assistant|> SELECT MAX("length_in_m") FROM "course" WHERE "name"='Keutenberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); Question: In the Champions league, what is the Minimum <|assistant|> SELECT MIN("champions_league") FROM "top_assister";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); Question: In the Champions league is the forward position smaller than 6.0 <|assistant|> SELECT COUNT("champions_league") FROM "top_assister" WHERE "position"='Forward' AND "league"<6.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); Question: when the total is 8 and copa del rey is 0 what is the minimum league <|assistant|> SELECT MIN("league") FROM "top_assister" WHERE "total"=8 AND "copa_del_rey"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); Question: when the position is forward and the league is 5 what number is the Champion league <|assistant|> SELECT COUNT("champions_league") FROM "top_assister" WHERE "league"=5 AND "position"='Forward';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); Question: if p is bigger than 4.0 what is total number <|assistant|> SELECT COUNT("total") FROM "top_assister" WHERE "p">4.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); Question: What was the 2008 election status when glenn nye was the running democrat? <|assistant|> SELECT "2008_status" FROM "match_up_summary" WHERE "democratic"='Glenn Nye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); Question: Who was the republican candidate in the race with incumbent thelma drake? <|assistant|> SELECT "republican" FROM "match_up_summary" WHERE "incumbent"='Thelma Drake';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); Question: How many districts had republican Bob Goodlatte as a candidate? <|assistant|> SELECT COUNT("district") FROM "match_up_summary" WHERE "republican"='Bob Goodlatte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); Question: Who was the democratic candidate when the republican was frank wolf? <|assistant|> SELECT "democratic" FROM "match_up_summary" WHERE "republican"='Frank Wolf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many won when points against is 410? <|assistant|> SELECT COUNT("won") FROM "league_table" WHERE "points_against"='410';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many bonus points are there when points for is 385? <|assistant|> SELECT "bonus_points" FROM "league_table" WHERE "points_for"='385';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many clubs have 62 points? <|assistant|> SELECT COUNT("club") FROM "league_table" WHERE "points"='62';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many bonus points were won by 5? <|assistant|> SELECT "bonus_points" FROM "league_table" WHERE "won"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many have been played for 362 points? <|assistant|> SELECT "played" FROM "league_table" WHERE "points_for"='362';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); Question: How many points against have a lose of 13? <|assistant|> SELECT "points_against" FROM "league_table" WHERE "lost"='13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); Question: What is the highest possible level? <|assistant|> SELECT MAX("level") FROM "calculations";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); Question: What is the shuttle time for the level where the speed is 15.5 km/h? <|assistant|> SELECT "shuttle_time_seconds" FROM "calculations" WHERE "speed_km_h"='15.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); Question: What is the fewest number of shuttles where the shuttle time is 6.55 seconds? <|assistant|> SELECT MIN("shuttles") FROM "calculations" WHERE "shuttle_time_seconds"='6.55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); Question: What is the distance (in meters) when the shuttle time is 6.86 seconds? <|assistant|> SELECT MIN("distance_m") FROM "calculations" WHERE "shuttle_time_seconds"='6.86';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); Question: Name the number of lead margin for republican joe kenney being 31% <|assistant|> SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='31%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); Question: Namethe democrat john lynch for joe kenney being 27% <|assistant|> SELECT "democrat_john_lynch" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='27%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); Question: Name the poll source for republican joe kenney being 28% <|assistant|> SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='28%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); Question: Name the lead margin for democrat john lynch being 62% <|assistant|> SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_john_lynch"='62%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); Question: Name the most lead margin for republican joe kenney being 23% <|assistant|> SELECT MAX("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='23%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); Question: How many 3rd ru does Costa Rica have? <|assistant|> SELECT MAX("3rd_ru") FROM "by_country_tally" WHERE "country"='Costa Rica';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); Question: How many 3rd ru does Canada have? <|assistant|> SELECT COUNT("3rd_ru") FROM "by_country_tally" WHERE "country"='Canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); Question: What is the least number of miss united continents? <|assistant|> SELECT MIN("miss_united_continent") FROM "by_country_tally";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); Question: Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes? <|assistant|> SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='54%' AND "lead_margin"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); Question: What poll source claimed that Republican: Kenny Hulshof had 43%? <|assistant|> SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_kenny_hulshof"='43%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); Question: How many different lead margins were stated in the poll administered on September 11, 2008? <|assistant|> SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "dates_administered"='September 11, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); Question: What percentage was claimed that Republican: Kenny Hulshof got in the poll that also claimed Democrat: Jay Nixon got 48%? <|assistant|> SELECT "republican_kenny_hulshof" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='48%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); Question: Name the common name for rhampholeon spectrum <|assistant|> SELECT "common_name" FROM "description" WHERE "scientific_name"='Rhampholeon spectrum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); Question: Name the scientific name for veiled chameleon <|assistant|> SELECT "scientific_name" FROM "description" WHERE "common_name"='Veiled chameleon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); Question: Name the common name for furcifer pardalis <|assistant|> SELECT "common_name" FROM "description" WHERE "scientific_name"='Furcifer pardalis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); Question: Name the number of color for furcifer pardalis <|assistant|> SELECT COUNT("color") FROM "description" WHERE "scientific_name"='Furcifer pardalis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); Question: Name the number of international frieghts for domestic mail of 260 <|assistant|> SELECT COUNT("international_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "domestic_mail"=260;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); Question: Name the total number of domestic mail for 7853 for total frieght and mail <|assistant|> SELECT COUNT("domestic_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "total_freight_and_mail"=7853;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); Question: Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260 <|assistant|> SELECT COUNT("domestic_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "international_mail">1.0 AND "domestic_mail"=260;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); Question: What was the highest vote for others? <|assistant|> SELECT MAX("othersnum") FROM "by_county";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); Question: When the result was +2.5, what were the kerry%? <|assistant|> SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+2.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); Question: When Kerry# was 199060, what was the percentage? <|assistant|> SELECT "kerrypct" FROM "by_county" WHERE "kerrynum"=199060;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); Question: What was the highest vote number for Bush? <|assistant|> SELECT MAX("bushnum") FROM "by_county";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); Question: When the 200 result was +1.6, what was the percentage? <|assistant|> SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+1.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: How many transfer windows coming from Crystal Palace? <|assistant|> SELECT COUNT("transfer_window") FROM "in" WHERE "moving_from"='Crystal Palace';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: What country has a P of GK? <|assistant|> SELECT "country" FROM "in" WHERE "p"='GK';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: What is the P for the player moving from Everton? <|assistant|> SELECT "p" FROM "in" WHERE "moving_from"='Everton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17594659_1" ( "season" text, "competition" text, "round" text, "opposition" text, "first_leg" text, "second_leg" text, "aggregate" text ); Question: Name the competition of panathinaikos <|assistant|> SELECT "competition" FROM "table1_17594659_1" WHERE "opposition"='Panathinaikos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot? <|assistant|> SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "ranking"='#51' AND "timeslot"='Tuesday 9:00 p.m.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What finales took place in the Tuesday 9:30 p.m. timeslot? <|assistant|> SELECT "finale" FROM "u_s_television_ratings" WHERE "timeslot"='Tuesday 9:30 p.m.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What premieres had a finale on May 25, 2004? <|assistant|> SELECT "premiere" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What seasons had a finale on May 25, 2004? <|assistant|> SELECT "season" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What seasons had a ranking of #47? <|assistant|> SELECT "season" FROM "u_s_television_ratings" WHERE "ranking"='#47';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: What are all values for viewers for 1st season? <|assistant|> SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "season"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text ); Question: What is the withdraw date for secr no. 771? <|assistant|> SELECT "date_withdrawn" FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=771;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text ); Question: Who is the builder for br no. 31779? <|assistant|> SELECT "builder" FROM "l_class_locomotive_fleet_summary" WHERE "br_no"=31779;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "no" real, "p" text, "name" text, "country" text, "age" real, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: what ist he country where the loan club is fulham? <|assistant|> SELECT "country" FROM "loans_in" WHERE "loan_club"='Fulham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans_in" ( "no" real, "p" text, "name" text, "country" text, "age" real, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); Question: what ist he total number of ages where the start date is 6 november? <|assistant|> SELECT COUNT("age") FROM "loans_in" WHERE "started"='6 November';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17624965_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 was the name of eipsode 618? <|assistant|> SELECT "title" FROM "table1_17624965_1" WHERE "production_code"=618;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17624965_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: When did "secrets" air? <|assistant|> SELECT "original_air_date" FROM "table1_17624965_1" WHERE "title"='\"Secrets\"';<|endoftext|>