text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "record" text, "date_and_time" text, "competition" text, "home_or_away" text, "opponent" text, "score" text ); Question: Is the biggest win recorded as home or away? <|assistant|> SELECT "home_or_away" FROM "scores" WHERE "record"='Biggest win';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "record" text, "date_and_time" text, "competition" text, "home_or_away" text, "opponent" text, "score" text ); Question: What competitions record a date and time of 17.04.1920 at 15:00? <|assistant|> SELECT "competition" FROM "scores" WHERE "date_and_time"='17.04.1920 at 15:00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "record" text, "date_and_time" text, "competition" text, "home_or_away" text, "opponent" text, "score" text ); Question: What records are hit where the opponent is Aylesbury United? <|assistant|> SELECT "record" FROM "scores" WHERE "opponent"='Aylesbury United';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "record" text, "date_and_time" text, "competition" text, "home_or_away" text, "opponent" text, "score" text ); Question: Who was the opponent during the biggest defeat? <|assistant|> SELECT "opponent" FROM "scores" WHERE "record"='Biggest defeat';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12369913_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)? <|assistant|> SELECT COUNT("result") FROM "table1_12369913_1" WHERE "original_title"='Ani Ohev Otach Roza (אני אוהב אותך רוזה)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "coverage_transmitter_site" text ); Question: What is the power when ch# is tv-26 and dyfj-tv? <|assistant|> SELECT "power_k_w" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "ch_num"='TV-26' AND "callsign"='DYFJ-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "coverage_transmitter_site" text ); Question: What is the coverage for relay tv-37? <|assistant|> SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "ch_num"='TV-37';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "coverage_transmitter_site" text ); Question: What is the ch# of dwlj-tv? <|assistant|> SELECT "ch_num" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "callsign"='DWLJ-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "coverage_transmitter_site" text ); Question: What is the coverage of relay 5kw of dyfj-tv? <|assistant|> SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "power_k_w"='5kW' AND "callsign"='DYFJ-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "num" real, "athlete" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What is the running of marlene sanchez? <|assistant|> SELECT "running" FROM "women" WHERE "athlete"='Marlene Sanchez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "num" real, "athlete" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What is the numberof running wiht pamela zapata? <|assistant|> SELECT COUNT("running") FROM "women" WHERE "athlete"='Pamela Zapata';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What's Luis Siri's shooting score? <|assistant|> SELECT "shooting" FROM "men" WHERE "athlete_noc"='Luis Siri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What's Eduardo Salas' riding score? <|assistant|> SELECT "riding" FROM "men" WHERE "athlete_noc"='Eduardo Salas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What's the number of the player with 68.46 (1144 pts) in riding? <|assistant|> SELECT MAX("num") FROM "men" WHERE "riding"='68.46 (1144 pts)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: Who's the player with 2:05.63 (1296 pts) swimming score? <|assistant|> SELECT "athlete_noc" FROM "men" WHERE "swimming"='2:05.63 (1296 pts)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What's the fencing score of the player with 9:40.31 (1080 pts) in running? <|assistant|> SELECT "fencing" FROM "men" WHERE "running"='9:40.31 (1080 pts)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "num" real, "athlete_noc" text, "shooting" text, "fencing" text, "swimming" text, "riding" text, "running" text, "total" real ); Question: What's Eli Bremer's fencing score? <|assistant|> SELECT "fencing" FROM "men" WHERE "athlete_noc"='Eli Bremer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12419515_4" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "total_viewers_in_millions" text ); Question: What is the total number of titles written by Casey Johnson? <|assistant|> SELECT COUNT("title") FROM "table1_12419515_4" WHERE "written_by"='Casey Johnson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12419515_4" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "total_viewers_in_millions" text ); Question: Who wrote the title that received 1.211 million total viewers? <|assistant|> SELECT "written_by" FROM "table1_12419515_4" WHERE "total_viewers_in_millions"='1.211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12419515_4" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "total_viewers_in_millions" text ); Question: Who directed the title that was written by Adam Milch? <|assistant|> SELECT "directed_by" FROM "table1_12419515_4" WHERE "written_by"='Adam Milch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12419515_4" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "total_viewers_in_millions" text ); Question: How many millions of total viewers watched series #57? <|assistant|> SELECT COUNT("total_viewers_in_millions") FROM "table1_12419515_4" WHERE "series_num"=57;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12419515_4" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "total_viewers_in_millions" text ); Question: How many millions of total viewers watched season #8? <|assistant|> SELECT "total_viewers_in_millions" FROM "table1_12419515_4" WHERE "season_num"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strongs_num" text, "hebrew_word" text, "strongs_transliteration" text, "strongs_words_compounded" text, "english_spelling" text ); Question: What is the English spelling of the strongs transliteration: 'adoniyah? <|assistant|> SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_transliteration"='''Adoniyah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strongs_num" text, "hebrew_word" text, "strongs_transliteration" text, "strongs_words_compounded" text, "english_spelling" text ); Question: What is the hebrew word listed for strongs # 5418? <|assistant|> SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_num"='5418';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strongs_num" text, "hebrew_word" text, "strongs_transliteration" text, "strongs_words_compounded" text, "english_spelling" text ); Question: List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu <|assistant|> SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_words_compounded"='''adown [# 113] & Yahu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strongs_num" text, "hebrew_word" text, "strongs_transliteration" text, "strongs_words_compounded" text, "english_spelling" text ); Question: What is the strongs # for the hebrew word יִרְמְיָה? <|assistant|> SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "hebrew_word"='יִרְמְיָה';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strongs_num" text, "hebrew_word" text, "strongs_transliteration" text, "strongs_words_compounded" text, "english_spelling" text ); Question: What is the strongs # for the english spelling of the word jirmejah? <|assistant|> SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "english_spelling"='Jirmejah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the latest year that 6th, Heartland is regular season? <|assistant|> SELECT MAX("year") FROM "year_by_year" WHERE "regular_season"='6th, Heartland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Which regular season contains playoffs in division finals? <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Division Finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the lowest year that regular season is 4th, Rocky Mountain? <|assistant|> SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='4th, Rocky Mountain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12444503_1" ( "season" text, "winner" text, "score" text, "runner_up" text, "lost_to_eventual_winner" text, "lost_to_eventual_runner_up" text ); Question: How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up? <|assistant|> SELECT COUNT("lost_to_eventual_winner") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='ASC Jeanne d''Arc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12444503_1" ( "season" text, "winner" text, "score" text, "runner_up" text, "lost_to_eventual_winner" text, "lost_to_eventual_runner_up" text ); Question: What's the number of seasons i which USC Bassam lost to eventual runner-up? <|assistant|> SELECT COUNT("season") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='USC Bassam';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12444503_1" ( "season" text, "winner" text, "score" text, "runner_up" text, "lost_to_eventual_winner" text, "lost_to_eventual_runner_up" text ); Question: In which season was Jeanne d'Arc (Bamako) the runner-up? <|assistant|> SELECT "season" FROM "table1_12444503_1" WHERE "runner_up"='Jeanne d''Arc (Bamako)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What was the regular season listing in 2007? <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "year"='2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What was the playoff result in 2002? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "year"='2002';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What was the open cup results in 2004? <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "year"='2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: How many divisions were listed in 2006? <|assistant|> SELECT COUNT("division") FROM "year_by_year" WHERE "year"='2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: Kevin lucas appears in which seasons? <|assistant|> SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Kevin Lucas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: How many people named Nick Lucas are on the show? <|assistant|> SELECT COUNT("portrayed_by") FROM "cast_members" WHERE "character"='Nick Lucas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: What seasons does stella malone appear? <|assistant|> SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Stella Malone';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: What seasons does Nick lucas appear? <|assistant|> SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: What seasons does Kevin Jonas appear? <|assistant|> SELECT "main_cast_seasons" FROM "cast_members" WHERE "portrayed_by"='Kevin Jonas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_members" ( "character" text, "portrayed_by" text, "main_cast_seasons" text, "recurring_cast_seasons" text, "num_of_episodes" real ); Question: What seasons does Nick Lucas appear in? <|assistant|> SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text ); Question: How many networks aired the franchise in 1981 only? <|assistant|> SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "dates_aired"='1981';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_in_the_family_till_death_us_do_part" ( "region_country" text, "local_name" text, "network" text, "dates_aired" text, "starring" text ); Question: In how many networks the local name of the franchise was "in sickness and in health"? <|assistant|> SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "local_name"='In Sickness and in Health';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12451376_3" ( "series_ep_num" real, "season_3_ep_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text, "production_code" real ); Question: What is the title of season 3 ep# 12? <|assistant|> SELECT "title" FROM "table1_12451376_3" WHERE "season_3_ep_num"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "isc_tracks" ( "track_name" text, "location" text, "length" text, "seating" real, "year_opened" real, "year_acquired_a" real ); Question: What is the length of the track named michigan international speedway? <|assistant|> SELECT "length" FROM "isc_tracks" WHERE "track_name"='Michigan International Speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "isc_tracks" ( "track_name" text, "location" text, "length" text, "seating" real, "year_opened" real, "year_acquired_a" real ); Question: Where is the track that opened in 1995? <|assistant|> SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1995;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "isc_tracks" ( "track_name" text, "location" text, "length" text, "seating" real, "year_opened" real, "year_acquired_a" real ); Question: What is the location of the daytona international speedway? <|assistant|> SELECT "location" FROM "isc_tracks" WHERE "track_name"='Daytona International Speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "isc_tracks" ( "track_name" text, "location" text, "length" text, "seating" real, "year_opened" real, "year_acquired_a" real ); Question: What is the location of the track that opened in 1950? <|assistant|> SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1950;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1245350_1" ( "quattroporte_iv" text, "units_produced" real, "production_period" text, "engine_capacity" text, "power" text, "max_speed" text ); Question: What is the power of the 3.2i v8 32v? <|assistant|> SELECT "power" FROM "table1_1245350_1" WHERE "quattroporte_iv"='3.2i V8 32v';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1245350_1" ( "quattroporte_iv" text, "units_produced" real, "production_period" text, "engine_capacity" text, "power" text, "max_speed" text ); Question: What type of quattroporte iv only produced 340 units? <|assistant|> SELECT "quattroporte_iv" FROM "table1_1245350_1" WHERE "units_produced"=340;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1245350_1" ( "quattroporte_iv" text, "units_produced" real, "production_period" text, "engine_capacity" text, "power" text, "max_speed" text ); Question: When were 668 units produced? <|assistant|> SELECT "production_period" FROM "table1_1245350_1" WHERE "units_produced"=668;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1246208_5" ( "club" text, "overall_record" text, "goals_for" real, "goals_for_avg" text, "goals_against" real, "goals_against_avg" text ); Question: what is the overall record when the club is dallas burn? <|assistant|> SELECT "overall_record" FROM "table1_1246208_5" WHERE "club"='Dallas Burn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1246208_5" ( "club" text, "overall_record" text, "goals_for" real, "goals_for_avg" text, "goals_against" real, "goals_against_avg" text ); Question: what is the goals for when the club is new england revolution? <|assistant|> SELECT "goals_for" FROM "table1_1246208_5" WHERE "club"='New England Revolution';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); Question: What was the total prize money where John Tabatabai was the runner-up? <|assistant|> SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='John Tabatabai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); Question: Who is the winner where the losing hand is Ah 7s? <|assistant|> SELECT "winner" FROM "main_event_winners" WHERE "losing_hand"='Ah 7s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); Question: What was the losing hand where the winning hand was 7h 7s? <|assistant|> SELECT "losing_hand" FROM "main_event_winners" WHERE "winning_hand"='7h 7s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); Question: How many losing hands are there before 2007? <|assistant|> SELECT COUNT("losing_hand") FROM "main_event_winners" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_event_winners" ( "year" real, "winner" text, "winning_hand" text, "prize_money" text, "entrants" real, "runner_up" text, "losing_hand" text ); Question: When Fabrizio Baldassari is the runner-up what is the total prize money? <|assistant|> SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='Fabrizio Baldassari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: What is the August 15, 2012 population when the population density of 2012 is 307? <|assistant|> SELECT MAX("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_density_2012_km_2"=307;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: What is the sector when the population change 2002-2012 (%) is 79.6? <|assistant|> SELECT "sector" FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='79.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: For the sector of Gatunda how many entires are show for the August 15, 2012 population? <|assistant|> SELECT COUNT("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors? <|assistant|> SELECT MAX("rank_in_nyagatare_sectors_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='35.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: What is the population density for 2012 for Gatunda sector? <|assistant|> SELECT MIN("population_density_2012_km_2") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_nyagatare_sectors_by_population_" ( "rank_in_nyagatare_sectors_2012" real, "sector" text, "area_in_sqkm" real, "population_august_15_2012" real, "population_august_15_2002" real, "population_change_2002_2012_pct" text, "population_density_2012_km_2" real ); Question: What is the highest population for the <|assistant|> SELECT MAX("population_august_15_2002") FROM "list_of_nyagatare_sectors_by_population_";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real ); Question: What is the biggended for 1947? <|assistant|> SELECT MAX("biggenden") FROM "population" WHERE "year"=1947;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real ); Question: What is the monto where the total region is 11230? <|assistant|> SELECT COUNT("monto") FROM "population" WHERE "total_region"=11230;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real ); Question: What is the gayndah when perry is 304? <|assistant|> SELECT MAX("gayndah") FROM "population" WHERE "perry"=304;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real ); Question: What is the minimum mundubbera when biggenden is 1882 <|assistant|> SELECT MIN("mundubbera") FROM "population" WHERE "biggenden"=1882;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1253396_5" ( "club" text, "overall_record" text, "goals_for" real, "goals_for_avg" text, "goals_against" real, "goals_against_avg" text ); Question: The Kansas City Wizards had a 9-10-9 record and what goals against avg? <|assistant|> SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-10-9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1253396_5" ( "club" text, "overall_record" text, "goals_for" real, "goals_for_avg" text, "goals_against" real, "goals_against_avg" text ); Question: The Dallas Burn had a 12-9-7 record and what number of goals for? <|assistant|> SELECT "goals_for" FROM "table1_1253396_5" WHERE "overall_record"='12-9-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1253396_5" ( "club" text, "overall_record" text, "goals_for" real, "goals_for_avg" text, "goals_against" real, "goals_against_avg" text ); Question: D.C. United had a 9-14-5 record and what goals against avg.? <|assistant|> SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-14-5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalkeeping_leaders" ( "no" real, "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" text, "wins" real, "loses" real ); Question: What is the highest value under the column goals against? <|assistant|> SELECT MAX("goals_against") FROM "goalkeeping_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: what is the date (from) where date (to) is 1919? <|assistant|> SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: how many times is the date (to) 1919? <|assistant|> SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: what is the date (from) where the notes are apeldoornsche tramweg-maatschappij? <|assistant|> SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "notes"='Apeldoornsche Tramweg-Maatschappij';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: how many notes are form the date (from) 14 march 1910? <|assistant|> SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='14 March 1910';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: what is the location for the date (to) 8 october 1922? <|assistant|> SELECT "location" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='8 October 1922';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_town_tramway_systems_in_the_neth" ( "name_of_system" text, "location" text, "traction_type" text, "date_from" text, "date_to" text, "notes" text ); Question: what are the notes for date (from) 12 august 1897? <|assistant|> SELECT "notes" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='12 August 1897';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: what's the livingstone with fitzroy being 9499 <|assistant|> SELECT "livingstone" FROM "population" WHERE "fitzroy"=9499;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: what is the maximum total region with fitzroy being 8047 <|assistant|> SELECT MAX("total_region") FROM "population" WHERE "fitzroy"=8047;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: what is the minimum rockhampton <|assistant|> SELECT MIN("rockhampton") FROM "population";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosenthal" real ); Question: How many population figures are given for Glengallen for the year when the region's total is 30554? <|assistant|> SELECT COUNT("population_glengallan") FROM "population" WHERE "population_region_total"=30554;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosenthal" real ); Question: What is the maximum population size in the town of Stanthorpe? <|assistant|> SELECT MAX("population_stanthorpe") FROM "population";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosenthal" real ); Question: What is the maximum population size in the town of Glengallen? <|assistant|> SELECT MAX("population_glengallan") FROM "population";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosenthal" real ); Question: What was the population in Stanthorpe in the year when the population in Rosenthal was 1548? <|assistant|> SELECT MAX("population_stanthorpe") FROM "population" WHERE "population_rosenthal"=1548;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_region_total" real, "population_stanthorpe" real, "population_warwick" real, "population_allora" real, "population_glengallan" real, "population_rosenthal" real ); Question: How many population total figures are there for the year when Allora's population was 2132? <|assistant|> SELECT COUNT("population_region_total") FROM "population" WHERE "population_allora"=2132;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "builder" text, "namesake" text, "renamed" text, "laid_down" real, "launched" text, "commissioned_or_completed" text ); Question: When was the ship launched when the commissioned or completed(*) is 6 june 1864? <|assistant|> SELECT "launched" FROM "ships" WHERE "commissioned_or_completed"='6 June 1864';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "builder" text, "namesake" text, "renamed" text, "laid_down" real, "launched" text, "commissioned_or_completed" text ); Question: When was the ship tecumseh launched? <|assistant|> SELECT "launched" FROM "ships" WHERE "ship"='Tecumseh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "builder" text, "namesake" text, "renamed" text, "laid_down" real, "launched" text, "commissioned_or_completed" text ); Question: What is the namesake of the ship that was commissioned or completed(*) 16 april 1864? <|assistant|> SELECT "namesake" FROM "ships" WHERE "commissioned_or_completed"='16 April 1864';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships" ( "ship" text, "builder" text, "namesake" text, "renamed" text, "laid_down" real, "launched" text, "commissioned_or_completed" text ); Question: What is the minimum laid down? <|assistant|> SELECT MIN("laid_down") FROM "ships";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postgraduate" ( "program" text, "degree" text, "focus" text, "teaching_language" text, "duration_years" text, "full_time_part_time" text, "ects_credit_points" real ); Question: What is the program where the focus is general management? <|assistant|> SELECT "program" FROM "postgraduate" WHERE "focus"='General Management';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postgraduate" ( "program" text, "degree" text, "focus" text, "teaching_language" text, "duration_years" text, "full_time_part_time" text, "ects_credit_points" real ); Question: what is teaching language where the focus is auditing? <|assistant|> SELECT "teaching_language" FROM "postgraduate" WHERE "focus"='Auditing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postgraduate" ( "program" text, "degree" text, "focus" text, "teaching_language" text, "duration_years" text, "full_time_part_time" text, "ects_credit_points" real ); Question: WHat is the program where duration (years) is 1.5 and teaching language is german/english? <|assistant|> SELECT "program" FROM "postgraduate" WHERE "duration_years"='1.5' AND "teaching_language"='German/English';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postgraduate" ( "program" text, "degree" text, "focus" text, "teaching_language" text, "duration_years" text, "full_time_part_time" text, "ects_credit_points" real ); Question: What is the teaching language with the duration (years) 3.5? <|assistant|> SELECT "teaching_language" FROM "postgraduate" WHERE "duration_years"='3.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postgraduate" ( "program" text, "degree" text, "focus" text, "teaching_language" text, "duration_years" text, "full_time_part_time" text, "ects_credit_points" real ); Question: What is the program where the focus is risk management and regulation? <|assistant|> SELECT "program" FROM "postgraduate" WHERE "focus"='Risk Management and Regulation';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12588029_3" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "release_date" text, "single_pack" text ); Question: What are the release dates for songs in 2003? <|assistant|> SELECT "release_date" FROM "table1_12588029_3" WHERE "year"=2003;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12588029_3" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "release_date" text, "single_pack" text ); Question: How many singles have a song titled "Antisocial"? <|assistant|> SELECT "single_pack" FROM "table1_12588029_3" WHERE "song_title"='\"Antisocial\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12588029_3" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "release_date" text, "single_pack" text ); Question: Which artist has a song titled "Soothsayer"? <|assistant|> SELECT "artist" FROM "table1_12588029_3" WHERE "song_title"='\"Soothsayer\"';<|endoftext|>