text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: Who was the producer for the film directed by 1997? <|assistant|> SELECT "producer" FROM "1990s" WHERE "director"='1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: For the directed by 1991, what was the gross in Singapore? <|assistant|> SELECT "singapore_gross" FROM "1990s" WHERE "director"='1991';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played? <|assistant|> SELECT MAX("points") FROM "2_lyga_zone_north" WHERE "goals_scored"<25 AND "draws"=3 AND "games_played">21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "game" real, "date" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "result_sets" text, "result_pts" text ); Question: What day was there a set 1 of 25-18? <|assistant|> SELECT "date" FROM "pool_a" WHERE "set_1"='25-18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "opponent" text, "result" text, "record" text, "game_site" text, "nfl_com_recap" text ); Question: What is the Week when the kick off was at 4:05 pm, and the result was w 31–14? <|assistant|> SELECT "week" FROM "schedule" WHERE "kickoff_et"='4:05 pm' AND "result"='w 31–14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "opponent" text, "result" text, "record" text, "game_site" text, "nfl_com_recap" text ); Question: What time was the kickoff when the miami dolphins were the opponent? <|assistant|> SELECT "kickoff_et" FROM "schedule" WHERE "opponent"='miami dolphins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is Round 2 when Round 4 is Double and Round 3 is Single? <|assistant|> SELECT "round_2" FROM "scoring_format" WHERE "round_4"='double' AND "round_3"='single';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is Round 5 when Round 4 is Triple, Round 3 is Double and Round 6+ is Triple? <|assistant|> SELECT "round_5" FROM "scoring_format" WHERE "round_4"='triple' AND "round_3"='double' AND "round_6"='triple';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double? <|assistant|> SELECT "round_1" FROM "scoring_format" WHERE "round_4"='double' AND "from"=1977 AND "round_3"='double';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is Round 2 from 1999? <|assistant|> SELECT "round_2" FROM "scoring_format" WHERE "from"=1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single? <|assistant|> SELECT "round_4" FROM "scoring_format" WHERE "round_6"='triple' AND "round_5"='triple' AND "round_3"='single';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_format" ( "from" real, "goal" text, "round_1" text, "round_2" text, "round_3" text, "round_4" text, "round_5" text, "round_6" text ); Question: What is round 3 where From is earlier than 1990 and the Goal is 400? <|assistant|> SELECT "round_3" FROM "scoring_format" WHERE "from"<1990 AND "goal"='400';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What points has united kingdom as the country, and 10 as the place? <|assistant|> SELECT "points" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "country"='united kingdom' AND "place"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What machine has tony rutter as the rider? <|assistant|> SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "rider"='tony rutter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What machine has 5 as the place? <|assistant|> SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "place"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: How many places have yamaha as the machine, and 89.85mph as the speed? <|assistant|> SELECT SUM("place") FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "machine"='yamaha' AND "speed"='89.85mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "festival_da_can_o_2008_9_march_2008" ( "draw" real, "artist" text, "song" text, "producer" text, "votes" real, "place" real ); Question: How many places did the artist Big Hit have with less than 2934 votes? <|assistant|> SELECT COUNT("place") FROM "festival_da_can_o_2008_9_march_2008" WHERE "artist"='big hit' AND "votes"<2934;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "festival_da_can_o_2008_9_march_2008" ( "draw" real, "artist" text, "song" text, "producer" text, "votes" real, "place" real ); Question: How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5? <|assistant|> SELECT AVG("votes") FROM "festival_da_can_o_2008_9_march_2008" WHERE "place"<6 AND "producer"='carlos coelho' AND "draw">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the name of the MySpace Band with an Original Airdate of 19 february 2008? <|assistant|> SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='19 february 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the Musical Guest/Song with a pilot of 3? <|assistant|> SELECT "musical_guest_song_performed" FROM "series_1" WHERE "pilot"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the Original Airdate for the YouTube Hero greg pattillo? <|assistant|> SELECT "original_airdate" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the Musical Guest/Song with an original airdate of january 2008? <|assistant|> SELECT "musical_guest_song_performed" FROM "series_1" WHERE "original_airdate"='january 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the Pilot number for the YouTube Hero greg pattillo? <|assistant|> SELECT "pilot" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "pilot" text, "original_airdate" text, "musical_guest_song_performed" text, "you_tube_hero" text, "my_space_band" text ); Question: What is the name of the MySpace Band with an Original Airdate of 25 march 2008? <|assistant|> SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='25 march 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events? <|assistant|> SELECT COUNT("top_25") FROM "summary" WHERE "wins"=0 AND "cuts_made"=1 AND "events">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the fewest number of top-5s for events with more than 1 win? <|assistant|> SELECT MIN("top_5") FROM "summary" WHERE "wins">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest number of top-25s for events with 0 wins? <|assistant|> SELECT MAX("top_25") FROM "summary" WHERE "wins"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "season" text, "round" text, "opponents" text, "home_leg" text, "away_leg" text, "aggregate" text ); Question: What is the home leg who are opponents of rotor volgograd <|assistant|> SELECT "home_leg" FROM "european_record" WHERE "opponents"='rotor volgograd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "season" text, "round" text, "opponents" text, "home_leg" text, "away_leg" text, "aggregate" text ); Question: What is the round with ajax opponents <|assistant|> SELECT "round" FROM "european_record" WHERE "opponents"='ajax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: Which acquisition via has a position of forward and is on the state school or club? <|assistant|> SELECT "acquisition_via" FROM "g" WHERE "position"='forward' AND "school_club_team"='state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: Which is the acquisition via that has a school or club team of state? <|assistant|> SELECT "acquisition_via" FROM "g" WHERE "school_club_team"='state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: What is the position of Allen Gamboa? <|assistant|> SELECT "position" FROM "g" WHERE "name"='allen gamboa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "g" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: Which position is number 16? <|assistant|> SELECT "position" FROM "g" WHERE "number"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_history" ( "year" real, "date" text, "television" text, "designated_visitors" text, "designated_home" text, "stadium" text, "city" text ); Question: What year had a date of TBA where the Oakland raiders were the home team? <|assistant|> SELECT AVG("year") FROM "game_history" WHERE "date"='tba' AND "designated_home"='oakland raiders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_history" ( "year" real, "date" text, "television" text, "designated_visitors" text, "designated_home" text, "stadium" text, "city" text ); Question: Who was the home team on October 28 when the new england patriots were the visitors? <|assistant|> SELECT "designated_home" FROM "game_history" WHERE "date"='october 28' AND "designated_visitors"='new england patriots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_history" ( "year" real, "date" text, "television" text, "designated_visitors" text, "designated_home" text, "stadium" text, "city" text ); Question: Who were the visitors when the Atlanta Falcons were the home team? <|assistant|> SELECT "designated_visitors" FROM "game_history" WHERE "designated_home"='atlanta falcons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_history" ( "year" real, "date" text, "television" text, "designated_visitors" text, "designated_home" text, "stadium" text, "city" text ); Question: Who were the home team during the game that aired on Fox after 2007 on October 23? <|assistant|> SELECT "designated_home" FROM "game_history" WHERE "television"='fox' AND "year">2007 AND "date"='october 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2007_2008_team" text ); Question: What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984? <|assistant|> SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=98 AND "birthdate"='may 1, 1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_number" real, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1995_96_team" text ); Question: What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84? <|assistant|> SELECT AVG("jersey_number") FROM "list_of_united_states_national_ice_hocke" WHERE "1995_96_team"='calgary flames' AND "weight_kg">84;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_number" real, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1995_96_team" text ); Question: What was the average Height (cm), for a player who had the Position, C, and whose 1995-96 team was the Buffalo Sabres, and whose Weight (kg) was less than 82? <|assistant|> SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='c' AND "1995_96_team"='buffalo sabres' AND "weight_kg"<82;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_number" real, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1995_96_team" text ); Question: What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2? <|assistant|> SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=84 AND "position"='d' AND "jersey_number"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "result_summary_in_champions_league" ( "opposition" text, "span" text, "lost" real, "tied" real, "win_pct" real ); Question: What is the lowest win percentage for when Perth Scorchers is the opposition? <|assistant|> SELECT MIN("win_pct") FROM "result_summary_in_champions_league" WHERE "opposition"='perth scorchers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: On which date was the game played on Week 13? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, "z_aa_ps_z_ii_ps" text, "ic_fs" text, "opt_sa_ps" text, "std_sa_ps" real, "std_spares" real, "standard_memory_gb" text, "flexible_memory_gb" text ); Question: What is the total number of Std SAPs with 0-11 Opt SAPS? <|assistant|> SELECT COUNT("std_sa_ps") FROM "enterprise_class" WHERE "opt_sa_ps"='0-11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, "z_aa_ps_z_ii_ps" text, "ic_fs" text, "opt_sa_ps" text, "std_sa_ps" real, "std_spares" real, "standard_memory_gb" text, "flexible_memory_gb" text ); Question: For Model e64 what is the zAAPs/zIIPs? <|assistant|> SELECT "z_aa_ps_z_ii_ps" FROM "enterprise_class" WHERE "model"='e64';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enterprise_class" ( "model" text, "books_p_us" text, "if_ls_u_if_ls" text, "z_aa_ps_z_ii_ps" text, "ic_fs" text, "opt_sa_ps" text, "std_sa_ps" real, "std_spares" real, "standard_memory_gb" text, "flexible_memory_gb" text ); Question: For Model e12 what is the IFLs/uIFLs? <|assistant|> SELECT "if_ls_u_if_ls" FROM "enterprise_class" WHERE "model"='e12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vital_statistics" ( "average_population_x_1000" real, "live_births" real, "deaths" real, "natural_change" real, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, "natural_change_per_1000" real ); Question: What is the average Natural Change (Per 1000), when Crude Death Rate (Per 1000) is greater than 13.2, when Deaths is 4,142, and when Natural Change is less than 752? <|assistant|> SELECT AVG("natural_change_per_1000") FROM "vital_statistics" WHERE "crude_death_rate_per_1000">13.2 AND "deaths"='4,142' AND "natural_change"<752;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vital_statistics" ( "average_population_x_1000" real, "live_births" real, "deaths" real, "natural_change" real, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, "natural_change_per_1000" real ); Question: What is the highest Crude Death Rate (per 1000), when Natural Change (Per 1000) is greater than 16.1, when Natural Change is 5,049, and when Crude Birth Rate (Per 1000) is less than 27.1? <|assistant|> SELECT MAX("crude_death_rate_per_1000") FROM "vital_statistics" WHERE "natural_change_per_1000">16.1 AND "natural_change"='5,049' AND "crude_birth_rate_per_1000"<27.1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vital_statistics" ( "average_population_x_1000" real, "live_births" real, "deaths" real, "natural_change" real, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, "natural_change_per_1000" real ); Question: What is the sum of Natural Change, when Natural Change (Per 1000) is greater than 5.4, when Crude Death Rate (Per 1000) is less than 14.3, when Live Births is less than 6,950, and when Crude Birth Rate (Per 1000) is less than 28.2? <|assistant|> SELECT SUM("natural_change") FROM "vital_statistics" WHERE "natural_change_per_1000">5.4 AND "crude_death_rate_per_1000"<14.3 AND "live_births"<'6,950' AND "crude_birth_rate_per_1000"<28.2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vital_statistics" ( "average_population_x_1000" real, "live_births" real, "deaths" real, "natural_change" real, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, "natural_change_per_1000" real ); Question: What is the highest Crude Death Rate (Per 1000), when Natural Change (Per 1000) is less than 5.2, when Average Population (x 1000) is 305, when Crude Birth Rate (Per 1000) is 16.1, and when Natural Change is greater than 954? <|assistant|> SELECT MAX("crude_death_rate_per_1000") FROM "vital_statistics" WHERE "natural_change_per_1000"<5.2 AND "average_population_x_1000"=305 AND "crude_birth_rate_per_1000"=16.1 AND "natural_change">954;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "vital_statistics" ( "average_population_x_1000" real, "live_births" real, "deaths" real, "natural_change" real, "crude_birth_rate_per_1000" real, "crude_death_rate_per_1000" real, "natural_change_per_1000" real ); Question: What is the lowest Natural Change, when Natural Change (Per 1000) is 19.1, and when Crude Birth Rate (Per 1000) is less than 28.3? <|assistant|> SELECT MIN("natural_change") FROM "vital_statistics" WHERE "natural_change_per_1000"=19.1 AND "crude_birth_rate_per_1000"<28.3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Player has a School/Club Team of Illinois? <|assistant|> SELECT "player" FROM "c" WHERE "school_club_team"='illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Player plays Guard-Forward Position for School/Club Team Pepperdine? <|assistant|> SELECT "player" FROM "c" WHERE "position"='guard-forward' AND "school_club_team"='pepperdine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What Position does the Player Vince Carter hold? <|assistant|> SELECT "position" FROM "c" WHERE "player"='vince carter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which School/Club Team does Vince Carter Play for? <|assistant|> SELECT "school_club_team" FROM "c" WHERE "player"='vince carter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Who is the Player for School/Club Team Illinois? <|assistant|> SELECT "player" FROM "c" WHERE "school_club_team"='illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What score has 7-0 as the result? <|assistant|> SELECT "score" FROM "international_goals" WHERE "result"='7-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What competition has 17-1 as the result? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "result"='17-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What competition has 17-1 as the result? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "result"='17-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the set 2 with a 25-23 set 1 and a 17-19 set 5? <|assistant|> SELECT "set_2" FROM "results_pool_b" WHERE "set_1"='25-23' AND "set_5"='17-19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the set 5 with a 25-23 set 3? <|assistant|> SELECT "set_5" FROM "results_pool_b" WHERE "set_3"='25-23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970_new_york_giants_season" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: Who had the high pick of the round of 10 for Fairmont State college? <|assistant|> SELECT MAX("pick") FROM "1970_new_york_giants_season" WHERE "college"='fairmont state' AND "round">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970_new_york_giants_season" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: What was the name of the player for pick 402? <|assistant|> SELECT "player" FROM "1970_new_york_giants_season" WHERE "pick"=402;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the date of the week 4 game? <|assistant|> SELECT "date" FROM "season_schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What is the result of the game on October 17, 1965? <|assistant|> SELECT "result" FROM "season_schedule" WHERE "date"='october 17, 1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the Rank for Viktors Dobrecovs with less than 325 Matches? <|assistant|> SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='viktors dobrecovs' AND "matches"<325;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the number of Matches for Vits Rimkus with a Rank of less than 3? <|assistant|> SELECT AVG("matches") FROM "list_of_top_association_football_goal_sc" WHERE "name"='vits rimkus' AND "rank"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the Date for the game at michie stadium • west point, ny? <|assistant|> SELECT "date" FROM "schedule" WHERE "location"='michie stadium • west point, ny';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the Opponent when the location was groves stadium • winston-salem, nc, with a result of t 17-17? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "location"='groves stadium • winston-salem, nc' AND "result"='t 17-17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hugh_smellie_1878_1890" ( "class" real, "date" text, "builder" text, "no_built" real, "1919_nos" text, "lms_class" text, "lms_nos" text ); Question: In 1879-81 with number built 4, what is the LMS nos? <|assistant|> SELECT "lms_nos" FROM "hugh_smellie_1878_1890" WHERE "date"='1879-81' AND "no_built"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hugh_smellie_1878_1890" ( "class" real, "date" text, "builder" text, "no_built" real, "1919_nos" text, "lms_class" text, "lms_nos" text ); Question: On which date was the class 157? <|assistant|> SELECT "date" FROM "hugh_smellie_1878_1890" WHERE "class"=157;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "locale" text, "skip" text, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: Can you tell me the lowest Ends Lost that has the Locale of norway, and the Blank Ends larger than 17? <|assistant|> SELECT MIN("ends_lost") FROM "standings" WHERE "locale"='norway' AND "blank_ends">17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text ); Question: What was the Margin of Victory of winning score 68-67-69-65=269? <|assistant|> SELECT "margin_of_victory" FROM "european_tour_wins_19" WHERE "winning_score"='68-67-69-65=269';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text ); Question: What is the To Par of winning score 71-66-70-67=274? <|assistant|> SELECT "to_par" FROM "european_tour_wins_19" WHERE "winning_score"='71-66-70-67=274';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_19" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text ); Question: Which tournament had a winning score of 67-61-68-67=263? <|assistant|> SELECT "tournament" FROM "european_tour_wins_19" WHERE "winning_score"='67-61-68-67=263';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many tries for are associated with 5 points and 2 tries against? <|assistant|> SELECT "tries_for" FROM "league_table" WHERE "points"='5' AND "tries_against"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the losing bonus associated with 0 tries for? <|assistant|> SELECT "losing_bonus" FROM "league_table" WHERE "tries_for"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What's the highest against score that drew more than 5, and had more than 18 points? <|assistant|> SELECT MAX("against") FROM "campeonato_paulista" WHERE "drawn">5 AND "points">18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What's the number of losses where played was less than 17? <|assistant|> SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played"<17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is team ypiranga-sp's average position when they lost by less than 7? <|assistant|> SELECT AVG("position") FROM "campeonato_paulista" WHERE "team"='ypiranga-sp' AND "lost"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "location"='groves stadium • winston-salem, nc' AND "result"='l 0-14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: Who was the opponent when the result was L 0-14? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "result"='l 0-14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "number" real, "position" text, "year" text, "hometown" text ); Question: What is the name of the position of the person whose hometown is Queens, NY? <|assistant|> SELECT "position" FROM "roster" WHERE "hometown"='queens, ny';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "number" real, "position" text, "year" text, "hometown" text ); Question: What is Tim Andree's greatest number? <|assistant|> SELECT MAX("number") FROM "roster" WHERE "name"='tim andree';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "number" real, "position" text, "year" text, "hometown" text ); Question: What is the lowest number of the player with a hometown of Bellwood, IL? <|assistant|> SELECT MIN("number") FROM "roster" WHERE "hometown"='bellwood, il';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" text ); Question: What is Score, when Attendance is 2,444? <|assistant|> SELECT "score" FROM "first_round_proper" WHERE "attendance"='2,444';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" text ); Question: What is Home Team, when Tie No is Replay, and when Attendance is 2,048? <|assistant|> SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "attendance"='2,048';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" text ); Question: What is Score, when Tie No is 17? <|assistant|> SELECT "score" FROM "first_round_proper" WHERE "tie_no"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" text ); Question: What is Away Team, when Tie No is 4? <|assistant|> SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" text ); Question: What is Score, when Attendance is 3,416? <|assistant|> SELECT "score" FROM "first_round_proper" WHERE "attendance"='3,416';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text, "away_wins" real, "away_losses" real ); Question: What is the highest No Result when there were less than 7 losses, and more than 3 away wins, with a success Rate of 50.00%? <|assistant|> SELECT MAX("no_result") FROM "overall_results_in_the_ipl" WHERE "losses">7 AND "away_wins">3 AND "success_rate"='50.00%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text, "away_wins" real, "away_losses" real ); Question: What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91? <|assistant|> SELECT SUM("away_losses") FROM "overall_results_in_the_ipl" WHERE "no_result">0 AND "losses">6 AND "matches">91;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text, "away_wins" real, "away_losses" real ); Question: What is the sum of Wins with a result of 0, and the away wins of 1, and the losses are less than 5? <|assistant|> SELECT SUM("wins") FROM "overall_results_in_the_ipl" WHERE "no_result"=0 AND "away_wins"=1 AND "losses"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: What stadium was the December 29, 2008 game played at? <|assistant|> SELECT "stadium" FROM "bowl_games" WHERE "date"='december 29, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: Which bowl game had a conference matchup of Ohio State vs. Texas? <|assistant|> SELECT "bowl_game" FROM "bowl_games" WHERE "conference_matchups"='ohio state vs. texas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: What stadium was the Fiesta Bowl played at? <|assistant|> SELECT "stadium" FROM "bowl_games" WHERE "bowl_game"='fiesta bowl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: What was the payout in US dollars at the Insight Bowl? <|assistant|> SELECT "payout_us" FROM "bowl_games" WHERE "bowl_game"='insight bowl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: What was the conference matchup in the bowl game with a $3 million payout? <|assistant|> SELECT "conference_matchups" FROM "bowl_games" WHERE "payout_us"='$3 million';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "conference_matchups" text, "payout_us" text ); Question: What was the conference matchup for the bowl game played in Glendale, Arizona? <|assistant|> SELECT "conference_matchups" FROM "bowl_games" WHERE "city"='glendale, arizona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Team has Tries for smaller than 10? <|assistant|> SELECT "team" FROM "pool_3" WHERE "tries_for"<10;<|endoftext|>