text
stringlengths
310
1.28k
<|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 is the the mens singles with mens doubles being kaj lindfors kaj osterberg <|assistant|> SELECT "mens_singles" FROM "past_winners" WHERE "mens_doubles"='Kaj Lindfors Kaj Osterberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "islands_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text ); Question: How big (in sq mi) is the island that's 4065 km2? <|assistant|> SELECT "area_sqmi" FROM "islands_over_square_miles_km" WHERE "area_km_2"=4065;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "islands_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text ); Question: What is the smallest rank number of those used to rank the islands? <|assistant|> SELECT MIN("rank") FROM "islands_over_square_miles_km";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "islands_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text ); Question: What's the name is the island with a population of just 64? <|assistant|> SELECT "islands_name" FROM "islands_over_square_miles_km" WHERE "population_2000"='64';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the tries against with try bonus being 10 <|assistant|> SELECT "tries_against" FROM "2007_2008_table" WHERE "try_bonus"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the points with played being 22 and points against being 319 <|assistant|> SELECT "points" FROM "2007_2008_table" WHERE "played"='22' AND "points_against"='319';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the losing bonus with played being 22 and tries against being 38 <|assistant|> SELECT "losing_bonus" FROM "2007_2008_table" WHERE "played"='22' AND "tries_against"='38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the try bonus with club being abercwmboi rfc <|assistant|> SELECT "try_bonus" FROM "2007_2008_table" WHERE "club"='Abercwmboi RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the points for with points against being 556 <|assistant|> SELECT "points_for" FROM "2007_2008_table" WHERE "points_against"='556';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the won with points against being 304 <|assistant|> SELECT "won" FROM "2007_2008_table" WHERE "points_against"='304';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_ceremonies" ( "episode" text, "original_air_date" text, "viewers_millions" text, "presenter" text, "location" text ); Question: Where was held the ceremony for the 12th Pride of Britain Awards? <|assistant|> SELECT "location" FROM "award_ceremonies" WHERE "episode"='12th Pride of Britain Awards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_ceremonies" ( "episode" text, "original_air_date" text, "viewers_millions" text, "presenter" text, "location" text ); Question: What episode of the Pride of Britain Awards had an audience of 6.06 million viewers? <|assistant|> SELECT "episode" FROM "award_ceremonies" WHERE "viewers_millions"='6.06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_ceremonies" ( "episode" text, "original_air_date" text, "viewers_millions" text, "presenter" text, "location" text ); Question: How much audience did the 7th Pride of Britain Awards ceremony have? <|assistant|> SELECT COUNT("viewers_millions") FROM "award_ceremonies" WHERE "episode"='7th Pride of Britain Awards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet <|assistant|> SELECT "vineyard_surface_2010" FROM "list_of_grand_crus" WHERE "grand_cru"='Bienvenues-Bâtard-Montrachet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres) <|assistant|> SELECT "village" FROM "list_of_grand_crus" WHERE "wine_style"='Red wine' AND "vineyard_surface_2010"='hectares (acres)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres) <|assistant|> SELECT "village" FROM "list_of_grand_crus" WHERE "wine_style"='Red wine' AND "vineyard_surface_2010"='hectares (acres)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the wine style with grand cru being romanée-conti <|assistant|> SELECT "wine_style" FROM "list_of_grand_crus" WHERE "grand_cru"='Romanée-Conti';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the wine style with grand cru being romanée-conti <|assistant|> SELECT "wine_style" FROM "list_of_grand_crus" WHERE "grand_cru"='Romanée-Conti';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: what's the wine style with village being puligny-montrachet [d ] <|assistant|> SELECT "wine_style" FROM "list_of_grand_crus" WHERE "village"='Puligny-Montrachet [d ]';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13967239_2" ( "subject" text, "freshman_grade_7" text, "sophomore_grade_8" text, "junior_3rd_year" text, "senior_4th_year" text ); Question: How many classes between senior and junior year for world history <|assistant|> SELECT COUNT("senior_4th_year") FROM "table1_13967239_2" WHERE "junior_3rd_year"='World History';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13967239_2" ( "subject" text, "freshman_grade_7" text, "sophomore_grade_8" text, "junior_3rd_year" text, "senior_4th_year" text ); Question: What is after intermediate algebra <|assistant|> SELECT "senior_4th_year" FROM "table1_13967239_2" WHERE "sophomore_grade_8"='Intermediate Algebra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "num" real, "episode_title" text, "writer_s" text, "director" text, "prod_code" text, "original_airdate" text ); Question: what is the maximum # with original airdate being march 14, 2001 <|assistant|> SELECT MAX("num") FROM "season_2" WHERE "original_airdate"='March 14, 2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "num" real, "episode_title" text, "writer_s" text, "director" text, "prod_code" text, "original_airdate" text ); Question: how many original airdate with writer(s) being becky hartman edwards and director being adam nimoy <|assistant|> SELECT COUNT("original_airdate") FROM "season_2" WHERE "writer_s"='Becky Hartman Edwards' AND "director"='Adam Nimoy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "num" real, "episode_title" text, "writer_s" text, "director" text, "prod_code" text, "original_airdate" text ); Question: who is the the writer(s) with original airdate being february 7, 2001 <|assistant|> SELECT "writer_s" FROM "season_2" WHERE "original_airdate"='February 7, 2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text, "notes" text ); Question: what's the frequency mhz with city of license being chattanooga, tennessee <|assistant|> SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='Chattanooga, Tennessee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text, "notes" text ); Question: how many height m ( ft ) with frequency mhz being 100.1 <|assistant|> SELECT COUNT("height_m_ft") FROM "translators" WHERE "frequency_m_hz"='100.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text, "notes" text ); Question: what's the fcc info with call sign being w221aw <|assistant|> SELECT "fcc_info" FROM "translators" WHERE "call_sign"='W221AW';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text, "notes" text ); Question: how many height m ( ft ) with notes being via wccv; formerly w236aj <|assistant|> SELECT COUNT("height_m_ft") FROM "translators" WHERE "notes"='via WCCV; formerly W236AJ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "height_m_ft" text, "fcc_info" text, "notes" text ); Question: what's the fcc info with call sign being w265av <|assistant|> SELECT "fcc_info" FROM "translators" WHERE "call_sign"='W265AV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: what's the capacity with team being berwick rangers <|assistant|> SELECT "capacity" FROM "stadia_and_attendances" WHERE "team"='Berwick Rangers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: what's the team with stadium being borough briggs <|assistant|> SELECT "team" FROM "stadia_and_attendances" WHERE "stadium"='Borough Briggs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: what is the maximum lowest with average being 734 <|assistant|> SELECT MAX("lowest") FROM "stadia_and_attendances" WHERE "average"=734;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: how many highest with team being forfar athletic <|assistant|> SELECT COUNT("highest") FROM "stadia_and_attendances" WHERE "team"='Forfar Athletic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the bleeding time with condition being factor v deficiency <|assistant|> SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor V deficiency';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the bleeding time with condition being liver failure, end-stage <|assistant|> SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Liver failure, end-stage';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the bleeding time with platelet count being decreased or unaffected <|assistant|> SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased or unaffected';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the condition with bleeding time being unaffected and prothrombin time being prolonged <|assistant|> SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Unaffected' AND "prothrombin_time"='Prolonged';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the bleeding time with platelet count being decreased and prothrombin time being prolonged <|assistant|> SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased' AND "prothrombin_time"='Prolonged';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); Question: what's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early <|assistant|> SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "condition"='Liver failure , early';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: How many of the elected officials are on the Economic Matters committee? <|assistant|> SELECT COUNT("first_elected") FROM "current_members_of_the_howard_county_del" WHERE "committee"='Economic Matters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: Name the delegate first elected in 2003? <|assistant|> SELECT "delegate" FROM "current_members_of_the_howard_county_del" WHERE "first_elected"=2003;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: What are the counties represented in District 12.1 12a? <|assistant|> SELECT "counties_represented" FROM "current_members_of_the_howard_county_del" WHERE "district"='12.1 12A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members_of_the_howard_county_del" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); Question: Which country has a delegate who was first elected in 2006? <|assistant|> SELECT "counties_represented" FROM "current_members_of_the_howard_county_del" WHERE "first_elected"=2006;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: Who are the foreign players representing Ekaterinburg? <|assistant|> SELECT "foreign_players_max_2" FROM "teams" WHERE "town"='Ekaterinburg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: What town is Volleyball Sportiv Complex (3 500) located in? <|assistant|> SELECT "town" FROM "teams" WHERE "arena_capacity"='Volleyball Sportiv Complex (3 500)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: What arena was season 6 played at? <|assistant|> SELECT "arena_capacity" FROM "teams" WHERE "previous_season"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: Who was the head coach in season 2? <|assistant|> SELECT "head_coach" FROM "teams" WHERE "previous_season"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text, "report" text ); Question: On what circuit was the City of Ipswich 400 race held? <|assistant|> SELECT "circuit" FROM "race_calendar" WHERE "race_title"='City of Ipswich 400';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text, "report" text ); Question: Who was the winner on the Symmons Plains Raceway? <|assistant|> SELECT "winner" FROM "race_calendar" WHERE "circuit"='Symmons Plains Raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text, "report" text ); Question: What were the dates for Round 8? <|assistant|> SELECT "date" FROM "race_calendar" WHERE "rd"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text, "report" text ); Question: What was the number of rounds on the Hidden Valley Raceway? <|assistant|> SELECT COUNT("rd") FROM "race_calendar" WHERE "circuit"='Hidden Valley Raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "rd" real, "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text, "report" text ); Question: What round was held at the Queensland Raceway? <|assistant|> SELECT "rd" FROM "race_calendar" WHERE "circuit"='Queensland Raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_defensive_players_of_the_year" ( "year" real, "player_name" text, "nfl_team" text, "position" text, "team_defense_rank" real, "team_performance" text ); Question: what the highest number for the opposite of offense for the green bay packers <|assistant|> SELECT MAX("team_defense_rank") FROM "nfl_defensive_players_of_the_year" WHERE "nfl_team"='Green Bay Packers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404414_2" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: How many counties have an area of 1,205.4 km2? <|assistant|> SELECT COUNT("code") FROM "table1_1404414_2" WHERE "area_km_2"='1,205.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404414_2" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: What capital has a population of 596268? <|assistant|> SELECT "capital" FROM "table1_1404414_2" WHERE "population_census_2009"=596268;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: what's the capital with area (km 2 ) being 12,245.9 <|assistant|> SELECT "capital" FROM "table1_1404456_1" WHERE "area_km_2"='12,245.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: what's the former province with area (km 2 ) being 12,245.9 <|assistant|> SELECT "former_province" FROM "table1_1404456_1" WHERE "area_km_2"='12,245.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: how many capital with population census 2009 being 284657 <|assistant|> SELECT COUNT("capital") FROM "table1_1404456_1" WHERE "population_census_2009"=284657;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: what's the area (km 2 ) with population census 2009 being 939370 <|assistant|> SELECT "area_km_2" FROM "table1_1404456_1" WHERE "population_census_2009"=939370;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: what is the minimum code with area (km 2 ) being 12,245.9 <|assistant|> SELECT MIN("code") FROM "table1_1404456_1" WHERE "area_km_2"='12,245.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1404456_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); Question: what's the county with code being 2 <|assistant|> SELECT "county" FROM "table1_1404456_1" WHERE "code"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1405704_1" ( "season" real, "race_name" text, "winning_driver" text, "chassis" text, "engine" text, "tires" text, "team" text ); Question: In what year did Tom Sneva win a race? <|assistant|> SELECT "season" FROM "table1_1405704_1" WHERE "winning_driver"='Tom Sneva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1405704_1" ( "season" real, "race_name" text, "winning_driver" text, "chassis" text, "engine" text, "tires" text, "team" text ); Question: What kind of chassis did a winning car with a Foyt engine have in 1979? <|assistant|> SELECT "chassis" FROM "table1_1405704_1" WHERE "season"=1979 AND "engine"='Foyt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1405704_1" ( "season" real, "race_name" text, "winning_driver" text, "chassis" text, "engine" text, "tires" text, "team" text ); Question: What team does Al Unser drive for? <|assistant|> SELECT "team" FROM "table1_1405704_1" WHERE "winning_driver"='Al Unser';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1405704_1" ( "season" real, "race_name" text, "winning_driver" text, "chassis" text, "engine" text, "tires" text, "team" text ); Question: What team has a vehicle with an Offenhauser engine and a McLaren chassis? <|assistant|> SELECT "team" FROM "table1_1405704_1" WHERE "chassis"='McLaren' AND "engine"='Offenhauser';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1405704_1" ( "season" real, "race_name" text, "winning_driver" text, "chassis" text, "engine" text, "tires" text, "team" text ); Question: What team raced with a Foyt engine in the Texas Grand Prix? <|assistant|> SELECT "team" FROM "table1_1405704_1" WHERE "race_name"='Texas Grand Prix' AND "engine"='Foyt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: What network is virtual channel 9.1 linked to? <|assistant|> SELECT "network" FROM "broadcast" WHERE "virtual_channel"='9.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: Who owns the station on channel 33.3? <|assistant|> SELECT "station_ownership" FROM "broadcast" WHERE "virtual_channel"='33.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: What is JCTV's digital channel? <|assistant|> SELECT "digital_channel" FROM "broadcast" WHERE "network"='JCTV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: What is channel 33.7's official call sign? <|assistant|> SELECT "call_sign" FROM "broadcast" WHERE "virtual_channel"='33.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: What is HSN's official virtual channel in Minneapolis-St. Paul? <|assistant|> SELECT "virtual_channel" FROM "broadcast" WHERE "network"='HSN';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast" ( "call_sign" text, "analog_channel" text, "digital_channel" text, "virtual_channel" text, "network" text, "station_ownership" text ); Question: How many stations own Bounce TV? <|assistant|> SELECT COUNT("station_ownership") FROM "broadcast" WHERE "network"='Bounce TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many points were made when the tries for was 83? <|assistant|> SELECT "points" FROM "2009_2010_table" WHERE "tries_for"='83';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many points are there when the lost is 7? <|assistant|> SELECT "points_for" FROM "2009_2010_table" WHERE "lost"='7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the losing bonus when the points are 24? <|assistant|> SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points"='24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many losing points does Llandudno RFC have? <|assistant|> SELECT "losing_bonus" FROM "2009_2010_table" WHERE "club"='Llandudno RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the try bonus for Ruthin RFC? <|assistant|> SELECT "try_bonus" FROM "2009_2010_table" WHERE "club"='Ruthin 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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: how many tries against with lost being 11 <|assistant|> SELECT COUNT("tries_against") FROM "2008_2009_table" WHERE "lost"='11';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the won with try bonus being 12 <|assistant|> SELECT "won" FROM "2008_2009_table" WHERE "try_bonus"='12';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the drawn with lost being 4 <|assistant|> SELECT "drawn" FROM "2008_2009_table" WHERE "lost"='4';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the points against with lost being 13 <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "lost"='13';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the points against with won being 11 <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "won"='11';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the drawn with points for being 350 <|assistant|> SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='350';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: how many points for with points against being 177 <|assistant|> SELECT COUNT("points_for") FROM "2007_2008_table" WHERE "points_against"='177';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the lost with club being colwyn bay rfc <|assistant|> SELECT "lost" FROM "2007_2008_table" WHERE "club"='Colwyn Bay RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the won with tries for being 84 <|assistant|> SELECT "won" FROM "2007_2008_table" WHERE "tries_for"='84';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the won with points for being 596 <|assistant|> SELECT "won" FROM "2007_2008_table" WHERE "points_for"='596';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the points for with lost being 4 <|assistant|> SELECT "points_for" FROM "2007_2008_table" WHERE "lost"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what's the won with points for being 643 <|assistant|> SELECT "won" FROM "2007_2008_table" WHERE "points_for"='643';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_modern_languages" ( "num" real, "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); Question: What is the Telugu word for хонгорцог in Mongolian? <|assistant|> SELECT "telugu" FROM "names_in_modern_languages" WHERE "mongolian"='Хонгорцог';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_modern_languages" ( "num" real, "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); Question: What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada? <|assistant|> SELECT "malayalam" FROM "names_in_modern_languages" WHERE "kannada"='Punarvasu ಪುನರ್ವಸು';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_modern_languages" ( "num" real, "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); Question: What is the Malayalam word that is listed as #10 in the table? <|assistant|> SELECT "malayalam" FROM "names_in_modern_languages" WHERE "num"=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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: tell the score when the times gone was 75 <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "tries_against"='75';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: was the the score when the tries was 743 <|assistant|> SELECT "points_against" FROM "2008_2009_table" WHERE "points_for"='743';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: tell how many wins there was when the score was 490 <|assistant|> SELECT COUNT("won") FROM "2008_2009_table" WHERE "points_for"='490';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: how many extra points were there when the score was 48 <|assistant|> SELECT "try_bonus" FROM "2008_2009_table" WHERE "points"='48';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what was the extra score when the overall score was 52 <|assistant|> SELECT "losing_bonus" FROM "2008_2009_table" WHERE "tries_for"='52';<|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, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: what was the score when the extras were 6 <|assistant|> SELECT "points" FROM "2008_2009_table" WHERE "try_bonus"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14098_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text ); Question: What country's capital is buenos aires? <|assistant|> SELECT "country_or_territory_with_flag" FROM "table1_14098_1" WHERE "capital"='Buenos Aires';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14098_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text ); Question: What unit of measurement for uruguay? <|assistant|> SELECT "area_km_per_sqmi" FROM "table1_14098_1" WHERE "country_or_territory_with_flag"='Uruguay';<|endoftext|>