text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the highest win for the team Nacional? <|assistant|> SELECT MAX("wins") FROM "torneo_apertura" WHERE "team"='Nacional';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the smallest conceded value for the team 12 De Octubre? <|assistant|> SELECT MIN("conceded") FROM "torneo_apertura" WHERE "team"='12 de Octubre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the smallest draws value with 21 points? <|assistant|> SELECT MIN("draws") FROM "torneo_apertura" WHERE "points"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the largest loss for the Tacuary team? <|assistant|> SELECT MAX("losses") FROM "torneo_apertura" WHERE "team"='Tacuary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "packers_points" real, "opponents" real, "first_downs" real, "record" text, "streak" text, "venue" text, "attendance" real ); Question: What is the name of the venue where the opponent scored 51? <|assistant|> SELECT "venue" FROM "schedule" WHERE "opponents"=51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "packers_points" real, "opponents" real, "first_downs" real, "record" text, "streak" text, "venue" text, "attendance" real ); Question: How many first downs were there when the attendance was 13196? <|assistant|> SELECT MIN("first_downs") FROM "schedule" WHERE "attendance"=13196;<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the site of the game against Buffalo Bills ? <|assistant|> SELECT "game_site" FROM "schedule" WHERE "opponent"='Buffalo Bills';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the attendance in week 8? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "week"=8;<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the date when the attendance was 63995 <|assistant|> SELECT "date" FROM "schedule" WHERE "attendance"=63995;<|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, "record" text, "game_site" text, "attendance" real ); Question: Who was the opponent in week 4? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: How many different skippers of the yacht City Index Leopard? <|assistant|> SELECT COUNT("skipper") FROM "line_honours_results_top_10" WHERE "yacht"='City Index Leopard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What are all elapsed time amounts for yacht type Reichel Pugh 55? <|assistant|> SELECT "elapsed_time_d_hh_mm_ss" FROM "line_honours_results_top_10" WHERE "yacht_type"='Reichel Pugh 55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What are all elapsed time for yacht type STP 65? <|assistant|> SELECT "elapsed_time_d_hh_mm_ss" FROM "line_honours_results_top_10" WHERE "yacht_type"='STP 65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: If sail number is AUS 03, what are all associated race numbers? <|assistant|> SELECT "race_number" FROM "line_honours_results_top_10" WHERE "sail_number"='AUS 03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: What are all values of LOA(metres) for an elapsed time of 2:17:01:05? <|assistant|> SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:17:01:05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "line_honours_results_top_10" ( "position" real, "race_number" text, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "elapsed_time_d_hh_mm_ss" text ); Question: When the elapsed time is 2:14:12:49, what are all yachts associated with this value? <|assistant|> SELECT "yacht" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:14:12:49';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "athletes" text, "nationality" text, "year" real, "location" text ); Question: In what location was the fastest time 1:37.071s? <|assistant|> SELECT "location" FROM "women_kayak" WHERE "record"='1:37.071s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "athletes" text, "nationality" text, "year" real, "location" text ); Question: What are all the places where Birgit Fischer competed? <|assistant|> SELECT "location" FROM "women_kayak" WHERE "athletes"='Birgit Fischer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "athletes" text, "nationality" text, "year" real, "location" text ); Question: What are the records when Elzbieta Urbanczik competed? <|assistant|> SELECT "record" FROM "women_kayak" WHERE "athletes"='Elzbieta Urbanczik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Name the number of wins for when points is 17 <|assistant|> SELECT COUNT("wins") FROM "torneo_apertura" WHERE "points"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Name the number of draws for when conceded is 25 <|assistant|> SELECT COUNT("draws") FROM "torneo_apertura" WHERE "conceded"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Name the most conceded when draws is 5 and position is 1 <|assistant|> SELECT MAX("conceded") FROM "torneo_apertura" WHERE "draws"=5 AND "position"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What date was the episode with production code 176265 aired? <|assistant|> SELECT "original_air_date" FROM "table1_14889988_1" WHERE "production_code"=176265;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: On what dates were episodes written by Robert Carlock aired? <|assistant|> SELECT "original_air_date" FROM "table1_14889988_1" WHERE "written_by"='Robert Carlock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What is the production code for episode 229? <|assistant|> SELECT MAX("production_code") FROM "table1_14889988_1" WHERE "no_in_series"=229;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What is the title for the episode written by Robert Carlock & Dana Klein Borkow? <|assistant|> SELECT "title" FROM "table1_14889988_1" WHERE "written_by"='Robert Carlock & Dana Klein Borkow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Who directed the episode with the production code 176252? <|assistant|> SELECT "directed_by" FROM "table1_14889988_1" WHERE "production_code"=176252;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14889988_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What date was the episode entitled "The One Where Ross is Fine" aired? <|assistant|> SELECT "original_air_date" FROM "table1_14889988_1" WHERE "title"='\"The One Where Ross is Fine\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How many points when 15 is scored is considered the minimum? <|assistant|> SELECT MIN("points") FROM "torneo_clausura" WHERE "scored"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: When a team wins 4, how much is the Maximum amount of points? <|assistant|> SELECT MAX("points") FROM "torneo_clausura" WHERE "wins"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How may draws did libertad have? <|assistant|> SELECT COUNT("draws") FROM "torneo_clausura" WHERE "team"='Libertad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_junior_champions" ( "year" real, "mens_singles" text, "womens_singles" text, "men_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the men doubles for els baert <|assistant|> SELECT "men_doubles" FROM "national_junior_champions" WHERE "womens_singles"='Els Baert';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_junior_champions" ( "year" real, "mens_singles" text, "womens_singles" text, "men_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the men doubles for caroline persyn smids <|assistant|> SELECT "men_doubles" FROM "national_junior_champions" WHERE "womens_doubles"='Caroline Persyn Smids';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_junior_champions" ( "year" real, "mens_singles" text, "womens_singles" text, "men_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the number of men doubles for 2007 <|assistant|> SELECT COUNT("men_doubles") FROM "national_junior_champions" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens singles for raina tzvetkova petya nedelcheva <|assistant|> SELECT "womens_singles" FROM "past_winners" WHERE "womens_doubles"='Raina Tzvetkova Petya Nedelcheva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov <|assistant|> SELECT COUNT("year") FROM "past_winners" WHERE "womens_doubles"='Diana Koleva Emilia Dimitrova' AND "mens_singles"='Jeliazko Valkov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mens singles for jeliazko valkov dobrinka peneva <|assistant|> SELECT "mens_singles" FROM "past_winners" WHERE "mixed_doubles"='Jeliazko Valkov Dobrinka Peneva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mens singles for 1989 <|assistant|> SELECT "mens_singles" FROM "past_winners" WHERE "year"=1989;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the year for victoria hristova neli nedialkova <|assistant|> SELECT "year" FROM "past_winners" WHERE "womens_doubles"='Victoria Hristova Neli Nedialkova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the year for womens doubles being raina tzvetkova emilia dimitrova <|assistant|> SELECT "year" FROM "past_winners" WHERE "womens_doubles"='Raina Tzvetkova Emilia Dimitrova';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO? <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Piret Hamer Helen Reino';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE? <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Helen Reino Kai-Riin Saluste';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Kairi Viilup';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY? <|assistant|> SELECT COUNT("year") FROM "past_winners" WHERE "mens_doubles"='Heiki Sorge Meelis Maiste';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens doubles when mens doubles is charalambos kazilas stepan partemian <|assistant|> SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Charalambos Kazilas Stepan Partemian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens doubles when mixed doubles is potten ruth scott <|assistant|> SELECT "womens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Potten Ruth Scott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mens singles when mens doubles is george georgoudis gerostergiou <|assistant|> SELECT "mens_singles" FROM "past_winners" WHERE "mens_doubles"='George Georgoudis Gerostergiou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens doubles when mens doubles is theodoros velkos giorgos patis <|assistant|> SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Theodoros Velkos Giorgos Patis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles <|assistant|> SELECT MIN("year") FROM "table1_14903999_1" WHERE "mixed_doubles"='Þorvaldur Ásgeirsson Lovísa Sigurðardóttir';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010 <|assistant|> SELECT "womens_doubles" FROM "table1_14903999_1" WHERE "mixed_doubles"='Magnús Ingi Helgason Tinna Helgadóttir' AND "womens_singles"='Ragna Ingólfsdóttir' AND "year"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles <|assistant|> SELECT COUNT("womens_doubles") FROM "table1_14903999_1" WHERE "mixed_doubles"='Broddi Kristjánsson Drífa Harðardóttir';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won mixed doubles the years einar jónsson wagner walbom won mens doubles and wagner walbom won mens singles <|assistant|> SELECT "mixed_doubles" FROM "table1_14903999_1" WHERE "mens_doubles"='Einar Jónsson Wagner Walbom' AND "mens_singles"='Wagner Walbom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles <|assistant|> SELECT MAX("year") FROM "table1_14903999_1" WHERE "mixed_doubles"='Árni Þór Hallgrímsson Drífa Harðardóttir';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14903999_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles <|assistant|> SELECT "mens_singles" FROM "table1_14903999_1" WHERE "mens_doubles"='Sveinn Logi Sölvason Tryggvi Nilsen' AND "womens_singles"='Elsa Nielsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: In which position is the team Cerro Porteño? <|assistant|> SELECT "position" FROM "torneo_clausura" WHERE "team"='Cerro Porteño';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How many games were played? <|assistant|> SELECT MIN("played") FROM "torneo_clausura";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: What is the result of men's doubles when there was no competition? <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "mens_doubles"='no competition';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: WHo won men's singles in 1994? <|assistant|> SELECT "mens_singles" FROM "past_winners" WHERE "year"=1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won women's singles in 2001? <|assistant|> SELECT "womens_singles" FROM "past_winners" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Name the least wins <|assistant|> SELECT MIN("wins") FROM "torneo_apertura";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director_s" text, "result" text ); Question: is γолемата вода nominated for anything? <|assistant|> SELECT "result" FROM "submissions" WHERE "original_title"='Γолемата Вода';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director_s" text, "result" text ); Question: how many years has сенки been nominated? <|assistant|> SELECT COUNT("year_ceremony") FROM "submissions" WHERE "original_title"='Сенки';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "language_s" text, "director_s" text, "result" text ); Question: how many directors for the film мајки <|assistant|> SELECT COUNT("director_s") FROM "submissions" WHERE "original_title"='Мајки';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who is the second performer in episode 5? <|assistant|> SELECT "performer_2" FROM "radio_series" WHERE "episode"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: How many times was performer 3 Kate Robbins? <|assistant|> SELECT COUNT("date") FROM "radio_series" WHERE "performer_3"='Kate Robbins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who was perfomer one on 30 January 1988? <|assistant|> SELECT "performer_1" FROM "radio_series" WHERE "date"='30 January 1988';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who was performer 4 when Kate Robbins was performer 3? <|assistant|> SELECT "performer_4" FROM "radio_series" WHERE "performer_3"='Kate Robbins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_series" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: How many episodes was Jimmy Mulville performer 4? <|assistant|> SELECT COUNT("episode") FROM "radio_series" WHERE "performer_4"='Jimmy Mulville';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "songs" text, "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "wix" text, "whitten" text, "linda_mc_cartney" text ); Question: How many instruments did Stuart play on "We Got Married"? <|assistant|> SELECT COUNT("stuart") FROM "instruments_played_by_band_members" WHERE "songs"='\"We Got Married\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_general_elections" ( "year" text, "general_election" text, "seats_won" real, "change_in_seat" real, "pct_of_votes" text, "votes_swing" text ); Question: Which general election had a vote swing of 1.84? <|assistant|> SELECT "general_election" FROM "in_general_elections" WHERE "votes_swing"='1.84';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_general_elections" ( "year" text, "general_election" text, "seats_won" real, "change_in_seat" real, "pct_of_votes" text, "votes_swing" text ); Question: What was the total number of seats won where the % of votes is equal to 20.29? <|assistant|> SELECT COUNT("seats_won") FROM "in_general_elections" WHERE "pct_of_votes"='20.29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_general_elections" ( "year" text, "general_election" text, "seats_won" real, "change_in_seat" real, "pct_of_votes" text, "votes_swing" text ); Question: What was the number of seat changes when the % of votes was 23.75? <|assistant|> SELECT "change_in_seat" FROM "in_general_elections" WHERE "pct_of_votes"='23.75';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_general_elections" ( "year" text, "general_election" text, "seats_won" real, "change_in_seat" real, "pct_of_votes" text, "votes_swing" text ); Question: Which general election had a vote swing of 1.69? <|assistant|> SELECT "general_election" FROM "in_general_elections" WHERE "votes_swing"='1.69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_general_elections" ( "year" text, "general_election" text, "seats_won" real, "change_in_seat" real, "pct_of_votes" text, "votes_swing" text ); Question: What was the vote swing for the general election of the 12th lok sabha? <|assistant|> SELECT "votes_swing" FROM "in_general_elections" WHERE "general_election"='12th Lok Sabha';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the team's result in week 4? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subnet_and_host_counts" ( "prefix_size" text, "network_mask" text, "available_subnets" real, "usable_hosts_per_subnet" real, "total_usable_hosts" real ); Question: When the network mask is 255.255.255.252 what is the prefix size? <|assistant|> SELECT "prefix_size" FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.252';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subnet_and_host_counts" ( "prefix_size" text, "network_mask" text, "available_subnets" real, "usable_hosts_per_subnet" real, "total_usable_hosts" real ); Question: available subnets leading total is? <|assistant|> SELECT MAX("available_subnets") FROM "subnet_and_host_counts";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subnet_and_host_counts" ( "prefix_size" text, "network_mask" text, "available_subnets" real, "usable_hosts_per_subnet" real, "total_usable_hosts" real ); Question: When the network mask is 255.255.255.128 what is the lowest available subnet? <|assistant|> SELECT MIN("available_subnets") FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.128';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subnet_and_host_counts" ( "prefix_size" text, "network_mask" text, "available_subnets" real, "usable_hosts_per_subnet" real, "total_usable_hosts" real ); Question: When the network mask is 255.255.255.224 what is the highest total usable host? <|assistant|> SELECT MAX("total_usable_hosts") FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.224';<|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, "record" text, "game_site" text, "attendance" real ); Question: Who were all of the opponents when the date was November 12, 1978? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='November 12, 1978';<|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, "record" text, "game_site" text, "attendance" real ); Question: What is the total number of values for attendance for the date October 1, 1978? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "date"='October 1, 1978';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the highest attendance? <|assistant|> SELECT MAX("attendance") FROM "schedule";<|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, "record" text, "game_site" text, "attendance" real ); Question: What date did the Colts play New York Jets? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='New York Jets';<|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, "record" text, "game_site" text, "attendance" real ); Question: How many games had the attendance of 60225? <|assistant|> SELECT COUNT("result") FROM "schedule" WHERE "attendance"=60225;<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the result of the game on October 6, 1974? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='October 6, 1974';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the record on September 22, 1974? <|assistant|> SELECT "record" FROM "schedule" WHERE "date"='September 22, 1974';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_standings" ( "rank" real, "name" text, "nationality" text, "total_points" text, "oberstdorf_rk" text, "ga_pa_rk" text, "bhofennum1_rk" text, "bhofennum2_rk" text ); Question: What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)? <|assistant|> SELECT "bhofennum1_rk" FROM "overall_standings" WHERE "bhofennum2_rk"='231.2 (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_standings" ( "rank" real, "name" text, "nationality" text, "total_points" text, "oberstdorf_rk" text, "ga_pa_rk" text, "bhofennum1_rk" text, "bhofennum2_rk" text ); Question: What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)? <|assistant|> SELECT "bhofennum2_rk" FROM "overall_standings" WHERE "ga_pa_rk"='233.4 (16)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_standings" ( "rank" real, "name" text, "nationality" text, "total_points" text, "oberstdorf_rk" text, "ga_pa_rk" text, "bhofennum1_rk" text, "bhofennum2_rk" text ); Question: What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)? <|assistant|> SELECT "bhofennum2_rk" FROM "overall_standings" WHERE "ga_pa_rk"='227.5 (19)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overall_standings" ( "rank" real, "name" text, "nationality" text, "total_points" text, "oberstdorf_rk" text, "ga_pa_rk" text, "bhofennum1_rk" text, "bhofennum2_rk" text ); Question: How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)? <|assistant|> SELECT "total_points" FROM "overall_standings" WHERE "oberstdorf_rk"='252.6 (11)';<|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, "record" text, "game_site" text, "attendance" real ); Question: On which week was the attendance 74303? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "attendance"=74303;<|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, "record" text, "game_site" text, "attendance" real ); Question: On which date was the game played at Tiger Stadium? <|assistant|> SELECT "date" FROM "schedule" WHERE "game_site"='Tiger Stadium';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the final score of the game against the Dallas Cowboys? <|assistant|> SELECT "result" FROM "schedule" WHERE "opponent"='Dallas Cowboys';<|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, "record" text, "game_site" text, "attendance" real ); Question: What was the attendance at the game played on December 10, 1972? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "date"='December 10, 1972';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" ( "character" text, "french_voice_actor" text, "italian_voice_actor" text, "german_voice_actor" text, "spanish_voice_actor" text ); Question: Name the french actor with javier romano <|assistant|> SELECT COUNT("french_voice_actor") FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "spanish_voice_actor"='Javier Romano';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" ( "character" text, "french_voice_actor" text, "italian_voice_actor" text, "german_voice_actor" text, "spanish_voice_actor" text ); Question: Name the german voice actor for alain dorval <|assistant|> SELECT "german_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "french_voice_actor"='Alain Dorval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" ( "character" text, "french_voice_actor" text, "italian_voice_actor" text, "german_voice_actor" text, "spanish_voice_actor" text ); Question: Name the german voice actor for rafael torres <|assistant|> SELECT "german_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "spanish_voice_actor"='Rafael Torres';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" ( "character" text, "french_voice_actor" text, "italian_voice_actor" text, "german_voice_actor" text, "spanish_voice_actor" text ); Question: Name the character for sophie arthuys <|assistant|> SELECT "character" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "french_voice_actor"='Sophie Arthuys';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" ( "character" text, "french_voice_actor" text, "italian_voice_actor" text, "german_voice_actor" text, "spanish_voice_actor" text ); Question: Name the italian voice actor for dirk fenselau <|assistant|> SELECT "italian_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "german_voice_actor"='Dirk Fenselau';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_a" text, "total" text ); Question: what is the Europe number for the league cup of 36 (0)? <|assistant|> SELECT "europe" FROM "appearances" WHERE "league_cup"='36 (0)';<|endoftext|>