text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); Question: Where was the opponent Germany? <|assistant|> SELECT "location" FROM "national_team_matches" WHERE "opponenent"='germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); Question: Who was the opponent when the result was 2-2 (draw)? <|assistant|> SELECT "opponenent" FROM "national_team_matches" WHERE "result"='2-2 (draw)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); Question: What was the match type in Budapest where the opponent was Luxembourg? <|assistant|> SELECT "match_type" FROM "national_team_matches" WHERE "location"='budapest' AND "opponenent"='luxembourg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which player has the score 72-67-69=208? <|assistant|> SELECT "player" FROM "third_round" WHERE "score"='72-67-69=208';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Who has the par score of 70-76-68-214? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "score"='70-76-68-214';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which country has the score 70-76-68-214? <|assistant|> SELECT "country" FROM "third_round" WHERE "score"='70-76-68-214';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: when was the first performance for the ballet with peter mazurowski in the final cast? <|assistant|> SELECT "first_performance" FROM "billy_elliot" WHERE "style"='ballet' AND "status"='final cast' AND "name"='peter mazurowski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: who had the first performance on 3 july 2011? <|assistant|> SELECT "name" FROM "billy_elliot" WHERE "first_performance"='3 july 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: who had a last performance of 3 july 2011? <|assistant|> SELECT "name" FROM "billy_elliot" WHERE "last_performance"='3 july 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: what's the status in the style of ballet/ gymnastics? <|assistant|> SELECT "status" FROM "billy_elliot" WHERE "style"='ballet/ gymnastics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: what's the name with final cast status and first performance on 12 november 2011? <|assistant|> SELECT "name" FROM "billy_elliot" WHERE "status"='final cast' AND "first_performance"='12 november 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: what last performance has past status, ballet as style and tommy batchelor? <|assistant|> SELECT "last_performance" FROM "billy_elliot" WHERE "status"='past' AND "style"='ballet' AND "name"='tommy batchelor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" text, "transfer_fee" text ); Question: How many goals was by Rix from Eng who started before 2005 in the youth system? <|assistant|> SELECT COUNT("goals") FROM "squad_information" WHERE "nat"='eng' AND "transfer_fee"='youth system' AND "since"<2005 AND "name"='rix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" text, "transfer_fee" text ); Question: Where is Rix from? <|assistant|> SELECT "nat" FROM "squad_information" WHERE "name"='rix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the specification of the locomotives with a total produced more than 19 and a model of fb-1? <|assistant|> SELECT "specification" FROM "cab_units_fa_fp_series" WHERE "total_produced">19 AND "model"='fb-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the build date of the locomotives with a total produced less than 45 and a fb-2 model? <|assistant|> SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "total_produced"<45 AND "model"='fb-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the prime mover of the locomotive with a fa-2 model? <|assistant|> SELECT "prime_mover" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cab_units_fa_fp_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text ); Question: What is the build date of the locomotive with a fa-2 model? <|assistant|> SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); Question: What region has a transmitter located at Mount Sugarloaf? <|assistant|> SELECT "region_served" FROM "main_transmitters" WHERE "transmitter_location"='mount sugarloaf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Name the 3rd round for 1st eound of out of playoffs <|assistant|> SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='out of playoffs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Name the finals for prelim of out of playoffs <|assistant|> SELECT "finals" FROM "playoffs" WHERE "prelim"='out of playoffs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "season" text, "prelim" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); Question: Name the 2nd round for 1st round of l, 1–3, sjnb <|assistant|> SELECT "2nd_round" FROM "playoffs" WHERE "1st_round"='l, 1–3, sjnb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_filmography" ( "year" real, "song" text, "film" text, "language" text, "music_director" text ); Question: Who is the musical director of the film Vettaiyaadu vilaiyaadu? <|assistant|> SELECT "music_director" FROM "notable_filmography" WHERE "film"='vettaiyaadu vilaiyaadu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_filmography" ( "year" real, "song" text, "film" text, "language" text, "music_director" text ); Question: What is the 2007 film in Hindi with a music director Shantanu moitra? <|assistant|> SELECT "film" FROM "notable_filmography" WHERE "year"=2007 AND "language"='hindi' AND "music_director"='shantanu moitra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); Question: What is the number of losses that coach John Kowalski has with a PTS smaller than 9? <|assistant|> SELECT COUNT("loss") FROM "winningest_coaches_by_wins" WHERE "coach"='john kowalski' AND "pts"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); Question: What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? <|assistant|> SELECT AVG("pct") FROM "winningest_coaches_by_wins" WHERE "pts"<9 AND "wins">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); Question: What is the sum of PTS when there is a PCT smaller than 0.1? <|assistant|> SELECT SUM("pts") FROM "winningest_coaches_by_wins" WHERE "pct"<0.1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winningest_coaches_by_wins" ( "coach" text, "team" text, "wins" real, "loss" real, "pct" real, "pts" real ); Question: What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? <|assistant|> SELECT "coach" FROM "winningest_coaches_by_wins" WHERE "pct">0.1 AND "pts">9 AND "loss"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What's the name of spain rank greater than 2? <|assistant|> SELECT "name" FROM "semifinal_2" WHERE "rank">2 AND "nationality"='spain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Spain had what time with lanes smaller than 4? <|assistant|> SELECT "time" FROM "semifinal_2" WHERE "lane"<4 AND "nationality"='spain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What's the smallest rank of noriko inada? <|assistant|> SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='noriko inada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ppl_2004_final_standings" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: How many total losses have teams that played more than 30 games? <|assistant|> SELECT COUNT("lost") FROM "ppl_2004_final_standings" WHERE "played">30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the number of the rank when the time is 2:15.98, in a lane larger than 7? <|assistant|> SELECT COUNT("rank") FROM "semifinal_2" WHERE "time"='2:15.98' AND "lane">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the number of the rank for the name of Chen Yan in a lane less than 2? <|assistant|> SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"='chen yan' AND "lane"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the smallest lane for rank 6? <|assistant|> SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the total for a league cup less than 1? <|assistant|> SELECT COUNT("league_cup") FROM "goals" WHERE "total"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the FA Cup that has a league less than 1? <|assistant|> SELECT SUM("fa_cup") FROM "goals" WHERE "league"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "area_km" real, "population" real, "villages" real ); Question: Which town has the most villages with the hanzi 南桁乑 and a population larger than 24,802? <|assistant|> SELECT MAX("villages") FROM "administrative_divisions" WHERE "hanzi"='南桁乑' AND "population">'24,802';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text ); Question: What position did lap 296 come in? <|assistant|> SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"=296;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question: How many games did the Club that has a try bonus of 4 and 391 points against play ? <|assistant|> SELECT "played" FROM "2008_2009_table" WHERE "try_bonus"='4' AND "points_against"='391';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question: How many points against did Carmarthen Athletic RFC have when they played 22 games ? <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "club"='carmarthen athletic rfc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question: Which club lost 10 games ? <|assistant|> SELECT "club" FROM "2008_2009_table" WHERE "lost"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question: How many points for did the club that had 77 tries for have ? <|assistant|> SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question: Which club has a try bonus of 2 ? <|assistant|> SELECT "club" FROM "2008_2009_table" WHERE "try_bonus"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the most attendance for october 11 <|assistant|> SELECT MAX("attendance") FROM "regular_season" WHERE "date"='october 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the visitor for october 19 <|assistant|> SELECT "visitor" FROM "regular_season" WHERE "date"='october 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dragon_laws_television_films" ( "year" real, "series_title" text, "chinese_title" text, "role" text, "channel" text ); Question: The highest year for the series titled dragon laws ii: kidnapped is what? <|assistant|> SELECT MAX("year") FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws ii: kidnapped';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dragon_laws_television_films" ( "year" real, "series_title" text, "chinese_title" text, "role" text, "channel" text ); Question: The series titled dragon laws i: the undercover has what role? <|assistant|> SELECT "role" FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws i: the undercover';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "paralympic_women" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); Question: Which athlete has the fastest time of 15.82? <|assistant|> SELECT "athlete" FROM "paralympic_women" WHERE "fastest_time_s"=15.82;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the total number of years that an entrant had more than 0 points? <|assistant|> SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "points">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the total number of years for brm straight-4 <|assistant|> SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm straight-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the total number of points for chassis of bmw t269 (f2) <|assistant|> SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='bmw t269 (f2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_through_the_2011_12_season" ( "seasons" real, "team" text, "ch_wins" real, "promotions" real, "relegations" real ); Question: Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? <|assistant|> SELECT MAX("promotions") FROM "appearances_through_the_2011_12_season" WHERE "team"='pallacanestro messina' AND "relegations">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); Question: What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985? <|assistant|> SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 841' AND "year"<1985;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); Question: What is the lowest year with tyres in g and less than 0 points? <|assistant|> SELECT MIN("year") FROM "complete_world_championship_formula_one_" WHERE "tyres"='g' AND "points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); Question: Which year has an Engine(s) of yamaha v8? <|assistant|> SELECT "year" FROM "complete_world_championship_formula_one_" WHERE "engine_s"='yamaha v8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real ); Question: What are the average points with a Chassis of zakspeed 881? <|assistant|> SELECT AVG("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 881';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which League has a Venue of martin luther king, jr. recreation center? <|assistant|> SELECT "league" FROM "minor_sports_teams" WHERE "venue"='martin luther king, jr. recreation center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium? <|assistant|> SELECT "championships_years" FROM "minor_sports_teams" WHERE "league"='milb, florida state league' AND "venue"='ed smith stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which Sport has a League of continental basketball league, and a Venue of avalon middle school? <|assistant|> SELECT "sport" FROM "minor_sports_teams" WHERE "league"='continental basketball league' AND "venue"='avalon middle school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads? <|assistant|> SELECT "venue" FROM "minor_sports_teams" WHERE "sport"='baseball' AND "championships_years"='0' AND "league"='milb, florida state league' AND "club"='jupiter hammerheads';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which club has a League of american basketball association, and a Venue of tba? <|assistant|> SELECT "club" FROM "minor_sports_teams" WHERE "league"='american basketball association' AND "venue"='tba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school? <|assistant|> SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "decile"<7 AND "name"='waikari school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the average decile with Years of 1–8, and an Area of waipara? <|assistant|> SELECT AVG("decile") FROM "hurunui_district" WHERE "years"='1–8' AND "area"='waipara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which area has Years of 1–8, and a Name of broomfield school? <|assistant|> SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "name"='broomfield school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the smallest roll with a Decile larger than 6, and a Name of broomfield school? <|assistant|> SELECT MIN("roll") FROM "hurunui_district" WHERE "decile">6 AND "name"='broomfield school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hurunui_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which name has a Roll of 270? <|assistant|> SELECT "name" FROM "hurunui_district" WHERE "roll"=270;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2007_2009" ( "prod_no" text, "title" text, "written_by" text, "directed_by" text, "original_airdate" text ); Question: Who directed the episode written by Dan Serafin and aired on July 23, 2008? <|assistant|> SELECT "directed_by" FROM "season_1_2007_2009" WHERE "written_by"='dan serafin' AND "original_airdate"='july 23, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2007_2009" ( "prod_no" text, "title" text, "written_by" text, "directed_by" text, "original_airdate" text ); Question: What is the title of the episode originally aired on February 2, 2008? <|assistant|> SELECT "title" FROM "season_1_2007_2009" WHERE "original_airdate"='february 2, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: How much money did James Seddon request? <|assistant|> SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='james seddon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: Which Entrepreneur(s) first aired on 24 August 2006? <|assistant|> SELECT "entrepreneur_s" FROM "series_3" WHERE "first_aired"='24 august 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: Which Entrepreneur(s) have mixalbum? <|assistant|> SELECT "entrepreneur_s" FROM "series_3" WHERE "company_or_product_name"='mixalbum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: How much money did Ian Chamings request? <|assistant|> SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='ian chamings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_3" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: Which Investing Dragon(s) requested 100,000 in money and has autosafe? <|assistant|> SELECT "investing_dragon_s" FROM "series_3" WHERE "money_requested"='100,000' AND "company_or_product_name"='autosafe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed" ( "name" text, "height_of_bridge_structure" text, "longest_span" text, "type" text, "opened" real, "location" text ); Question: How tall is the Anqing Bridge which opened prior to 2011? <|assistant|> SELECT "height_of_bridge_structure" FROM "completed" WHERE "opened"<2011 AND "name"='anqing bridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed" ( "name" text, "height_of_bridge_structure" text, "longest_span" text, "type" text, "opened" real, "location" text ); Question: Where did the cable-stayed Badong Bridge open in 2005? <|assistant|> SELECT "location" FROM "completed" WHERE "type"='cable-stayed' AND "opened"=2005 AND "name"='badong bridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_silpathorn_award_winners" ( "year" real, "literature" text, "music" text, "film" text, "performing_arts" text ); Question: Name the average year for janaprakal chandruang <|assistant|> SELECT AVG("year") FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='janaprakal chandruang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_silpathorn_award_winners" ( "year" real, "literature" text, "music" text, "film" text, "performing_arts" text ); Question: Name the literature for pradit prasarttong <|assistant|> SELECT "literature" FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='pradit prasarttong';<|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 first year Fabrice Soulier was a runner-up? <|assistant|> SELECT MIN("year") FROM "main_event_winners" WHERE "runner_up"='fabrice soulier';<|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 entrants were there in 2011? <|assistant|> SELECT COUNT("entrants") FROM "main_event_winners" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the rank of Bobby Grim when he finished 1059 laps? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "laps"=1059;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); Question: What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent? <|assistant|> SELECT "rd_time" FROM "professional_boxing_record" WHERE "res"='win' AND "type"='tko' AND "opponent"='carlos molina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); Question: What is the record of the match on 2009-07-18? <|assistant|> SELECT "record" FROM "professional_boxing_record" WHERE "date"='2009-07-18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_boxing_record" ( "res" text, "record" text, "opponent" text, "type" text, "rd_time" text, "date" text ); Question: What is the type of the match with a win result and Michael Gomez as the opponent? <|assistant|> SELECT "type" FROM "professional_boxing_record" WHERE "res"='win' AND "opponent"='michael gomez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); Question: What were the goals when the caps were set at 48? <|assistant|> SELECT "goals" FROM "internationally_capped_players" WHERE "caps"=48;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); Question: How many caps did the player Mile Sterjovski have? <|assistant|> SELECT "caps" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); Question: What are the goals of Mile Sterjovski as a player? <|assistant|> SELECT "goals" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "internationally_capped_players" ( "player" text, "country" text, "caps" real, "goals" text, "years_active" text ); Question: How many caps did Mitchell Duke have overall? <|assistant|> SELECT COUNT("caps") FROM "internationally_capped_players" WHERE "player"='mitchell duke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Which opponent has a Date of 16 february 2003? <|assistant|> SELECT "opponent" FROM "fa_cup" WHERE "date"='16 february 2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Which date has an A venue with an Opponent of stoke city? <|assistant|> SELECT "date" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='stoke city';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Which opponent has a Round of r5? <|assistant|> SELECT "opponent" FROM "fa_cup" WHERE "round"='r5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Which Scorers have a Venue of A, and an Opponent of arsenal? <|assistant|> SELECT "scorers" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='arsenal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Which Opponent has a Round of qf replay? <|assistant|> SELECT "opponent" FROM "fa_cup" WHERE "round"='qf replay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Who took the loss on the April 6 game? <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='april 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the record after the April 15 game? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='april 15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Who was the opponent that led to a 10-13 record? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='10-13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What is the record after the April 6 game? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='april 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score for the April 12 game? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='april 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: What team has the most wins with at least 18 goals and less than 5 losses? <|assistant|> SELECT MAX("wins") FROM "final_standing" WHERE "goals_for"=18 AND "losses"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: How many times has the Cornwall HC team, that has scored more than 18 goals, lost ? <|assistant|> SELECT COUNT("losses") FROM "final_standing" WHERE "team"='cornwall hc' AND "goals_for">18;<|endoftext|>