text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24547593_1" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text ); Question: Who was in the pole position for knockhill? <|assistant|> SELECT "pole_position" FROM "table1_24547593_1" WHERE "circuit"='Knockhill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24547593_1" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text ); Question: How many dates was knockhill? <|assistant|> SELECT COUNT("date") FROM "table1_24547593_1" WHERE "circuit"='Knockhill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "core_i7" ( "codename_main_article" text, "brand_name_list" text, "cores" real, "l3_cache" text, "socket" text, "tdp" text, "process" text, "i_o_bus" text, "release_date" text ); Question: Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm <|assistant|> SELECT "l3_cache" FROM "core_i7" WHERE "brand_name_list"='Core i7-2xxxQE, i7-26xxQM, i7-27xxQM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text ); Question: Who had most laps led at Chicagoland speedway? <|assistant|> SELECT "most_laps_led" FROM "2005_indy_car_series_schedule" WHERE "track"='Chicagoland Speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text ); Question: In what race did Buddy Rice hav fastest lap? <|assistant|> SELECT "race_name" FROM "2005_indy_car_series_schedule" WHERE "fastest_lap"='Buddy Rice';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text ); Question: On what tra k was the march 19 race held? <|assistant|> SELECT "track" FROM "2005_indy_car_series_schedule" WHERE "date"='March 19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text ); Question: On what track is the Argent mortgage Indy 300 held? <|assistant|> SELECT "track" FROM "2005_indy_car_series_schedule" WHERE "race_name"='Argent Mortgage Indy 300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text ); Question: who held the fastes lap in Phoenix, Arizona? <|assistant|> SELECT "fastest_lap" FROM "2005_indy_car_series_schedule" WHERE "location"='Phoenix, Arizona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many games were played with 25 legs won with 35 100+? <|assistant|> SELECT "played" FROM "statistics" WHERE "legs_won"=25 AND "100"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How many sets were lost with a 3-dart average of 87.55? <|assistant|> SELECT MAX("sets_lost") FROM "statistics" WHERE "3_dart_average"='87.55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How man players checked out at 84? <|assistant|> SELECT COUNT("player") FROM "statistics" WHERE "high_checkout"=84;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "lwat" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text ); Question: How man 3-dart averages did gary anderson have? <|assistant|> SELECT COUNT("3_dart_average") FROM "statistics" WHERE "player"='Gary Anderson';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: List all results from the 3-3 scoring game. <|assistant|> SELECT "result" FROM "schedule" WHERE "record"='3-3';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: List all opponents from the 4-4 scoring game. <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='4-4';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: List the record from the game where Wildcats had 48 points. <|assistant|> SELECT "record" FROM "schedule" WHERE "wildcats_points"=48;<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: How many points did the Wildcats get when Baylor was an opponent? <|assistant|> SELECT "wildcats_points" FROM "schedule" WHERE "opponent"='Baylor';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: Who was the opponent on Oct. 4? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='Oct. 4';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: What was the minimum number for opponents? <|assistant|> SELECT MIN("opponents") FROM "schedule";<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: What is the minimum number of opponents' points for the game at Michigan State? <|assistant|> SELECT MIN("opponents") FROM "schedule" WHERE "opponent"='at Michigan State';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: Which opponent led to a 5-2 record? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='5-2';<|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, "wildcats_points" real, "opponents" real, "record" text ); Question: How many opponents' points numbers are associated with the game at Ole Miss? <|assistant|> SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='at Ole Miss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the total number of period for yvon le roux <|assistant|> SELECT COUNT("period") FROM "l" WHERE "name"='Yvon Le Roux';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the period for michel llodra <|assistant|> SELECT "period" FROM "l" WHERE "name"='Michel Llodra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "l" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the number of position for democratic republic of the congo <|assistant|> SELECT COUNT("position") FROM "l" WHERE "nationality"='Democratic Republic of the Congo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: How many names correspond to the value 101 for appearances? <|assistant|> SELECT COUNT("name") FROM "m" WHERE "appearances"=101;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What positions correspond to the name Thierry Morin? <|assistant|> SELECT "position" FROM "m" WHERE "name"='Thierry Morin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What time period had appearances of 219? <|assistant|> SELECT "period" FROM "j" WHERE "appearances"=219;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: How many periods had 15 goals? <|assistant|> SELECT COUNT("period") FROM "j" WHERE "goals"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: at least how many times was Pierre Vermeulen at a game? <|assistant|> SELECT MIN("appearances") FROM "v" WHERE "name"='Pierre Vermeulen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What country is Richard Vanquelef from? <|assistant|> SELECT "nationality" FROM "v" WHERE "name"='Richard Vanquelef';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "v" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What country is Pierre Vermeulen from? <|assistant|> SELECT "nationality" FROM "v" WHERE "name"='Pierre Vermeulen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the number of appearances for yugoslavia <|assistant|> SELECT COUNT("appearances") FROM "s" WHERE "nationality"='Yugoslavia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the nationality for defender 201 <|assistant|> SELECT "nationality" FROM "s" WHERE "position"='Defender' AND "appearances"=201;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the goals for daniel sanchez <|assistant|> SELECT "goals" FROM "s" WHERE "name"='Daniel Sanchez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the most goals for algeria <|assistant|> SELECT MIN("goals") FROM "s" WHERE "nationality"='Algeria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "t" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What was the lowest score. <|assistant|> SELECT MIN("goals") FROM "t";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "t" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: List the minimum impressions for sammy traorΓ© <|assistant|> SELECT MIN("appearances") FROM "t" WHERE "name"='Sammy TraorΓ©';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "t" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: During what years did nabatingue toko play. <|assistant|> SELECT "period" FROM "t" WHERE "name"='Nabatingue Toko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the number of goals for mauricio pochettino <|assistant|> SELECT COUNT("goals") FROM "p" WHERE "name"='Mauricio Pochettino';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the period for michel prost <|assistant|> SELECT "period" FROM "p" WHERE "name"='Michel Prost';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the goals for mauricio pochettino <|assistant|> SELECT "goals" FROM "p" WHERE "name"='Mauricio Pochettino';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the period for appearances being 380 <|assistant|> SELECT "period" FROM "a" WHERE "appearances"=380;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the appearances for bernard allou <|assistant|> SELECT "appearances" FROM "a" WHERE "name"='Bernard Allou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Name the most appearances for bernard allou <|assistant|> SELECT MAX("appearances") FROM "a" WHERE "name"='Bernard Allou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What is the highest number of goals scored <|assistant|> SELECT MAX("goals") FROM "f";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What is the lowest number of appearances a player had <|assistant|> SELECT MIN("appearances") FROM "f";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What is the nationality of Louis floch <|assistant|> SELECT "nationality" FROM "f" WHERE "name"='Louis Floch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: Which player had 252 appearances <|assistant|> SELECT "name" FROM "f" WHERE "appearances"=252;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "f" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text ); Question: What is the nationality of the player who scored 13 goals <|assistant|> SELECT "nationality" FROM "f" WHERE "goals"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "season" real, "regular_season" text, "playoffs" text, "u_s_open_cup" text, "concacaf" text, "final_record" text ); Question: how many time is the final record is 9–16–5? <|assistant|> SELECT COUNT("season") FROM "year_by_year" WHERE "final_record"='9–16–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "station_crews" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: What station was sent on flight up and was launched on 23 July 1980 18:33:03? <|assistant|> SELECT "flight_up" FROM "station_crews" WHERE "launch_date"='23 July 1980 18:33:03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "station_crews" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Who were the crews on the flight up of Soyuz T-3? <|assistant|> SELECT "crew" FROM "station_crews" WHERE "flight_up"='Soyuz T-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "station_crews" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: How many days were the station of Soyuz 35 in flight down were in orbit? <|assistant|> SELECT "duration_days" FROM "station_crews" WHERE "flight_down"='Soyuz 35';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the number of gn divisions for mannar <|assistant|> SELECT COUNT("gn_divisions") FROM "table1_24574438_1" WHERE "ds_division"='Mannar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the sinhalese for manthai west <|assistant|> SELECT MAX("sinhalese") FROM "table1_24574438_1" WHERE "ds_division"='Manthai West';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the least indian tamil for population density being 240 <|assistant|> SELECT MIN("indian_tamil") FROM "table1_24574438_1" WHERE "population_density_km_2"=240;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the popultion density being manthai west <|assistant|> SELECT "population_density_km_2" FROM "table1_24574438_1" WHERE "ds_division"='Manthai West';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the total number of sinhalese for indian tamil being 177 <|assistant|> SELECT COUNT("sinhalese") FROM "table1_24574438_1" WHERE "indian_tamil"=177;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24574438_1" ( "ds_division" text, "main_town" text, "gn_divisions" real, "area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: Name the least area <|assistant|> SELECT MIN("area_km_2") FROM "table1_24574438_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When westcott is in division one how many leagues are in division 5? <|assistant|> SELECT COUNT("division_five") FROM "recent_champions" WHERE "division_one"='Westcott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When godstone is in division five who is in division four? <|assistant|> SELECT "division_four" FROM "recent_champions" WHERE "division_five"='Godstone';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When the wallington new foresters are in division four what is the season? <|assistant|> SELECT "season" FROM "recent_champions" WHERE "division_four"='Wallington New Foresters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When racing epsom is in division two how many seasons are there? <|assistant|> SELECT COUNT("season") FROM "recent_champions" WHERE "division_two"='Racing Epsom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When westcott 1935 is in division two how many leagues are in division three? <|assistant|> SELECT COUNT("division_three") FROM "recent_champions" WHERE "division_two"='Westcott 1935';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text, "division_four" text, "division_five" text ); Question: When real holmesdale reserves is division four who is in division one? <|assistant|> SELECT "division_one" FROM "recent_champions" WHERE "division_four"='Real Holmesdale Reserves';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spacewalks" ( "spacecraft" text, "spacewalker" text, "start_utc" text, "end_utc" text, "duration" text, "comments" text ); Question: When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration? <|assistant|> SELECT "duration" FROM "spacewalks" WHERE "spacecraft"='Salyut 7 – VE-4 – EVA 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spacewalks" ( "spacecraft" text, "spacewalker" text, "start_utc" text, "end_utc" text, "duration" text, "comments" text ); Question: When first woman eva is the comment what is the end -utc? <|assistant|> SELECT "end_utc" FROM "spacewalks" WHERE "comments"='First woman EVA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_results" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What series did the racer earn 68 points in? <|assistant|> SELECT "series" FROM "career_results" WHERE "points"='68';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "expeditions" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Name the duration for georgi grechko <|assistant|> SELECT "duration_days" FROM "expeditions" WHERE "crew"='Georgi Grechko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "expeditions" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Name the flight up for 10 december 1982 19:02:36 utc <|assistant|> SELECT "flight_up" FROM "expeditions" WHERE "landing_date"='10 December 1982 19:02:36 UTC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "expeditions" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov <|assistant|> SELECT "launch_date" FROM "expeditions" WHERE "crew"='Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "expeditions" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Name the flight down for vladimir vasyutin , alexander volkov <|assistant|> SELECT "flight_down" FROM "expeditions" WHERE "crew"='Vladimir Vasyutin , Alexander Volkov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "expeditions" ( "expedition" text, "crew" text, "launch_date" text, "flight_up" text, "landing_date" text, "flight_down" text, "duration_days" text ); Question: Name the duration for vladimir vasyutin , alexander volkov <|assistant|> SELECT COUNT("duration_days") FROM "expeditions" WHERE "crew"='Vladimir Vasyutin , Alexander Volkov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What team was he on the year he had 38 points? <|assistant|> SELECT "team" FROM "career_summary" WHERE "points"=38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What was the least amount of wins when he had 10 poles? <|assistant|> SELECT MIN("wins") FROM "career_summary" WHERE "poles"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the team for 22 points <|assistant|> SELECT "team" FROM "career_summary" WHERE "points"='22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the f/laps for gp2 series <|assistant|> SELECT "f_laps" FROM "career_summary" WHERE "series"='GP2 Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the most wins <|assistant|> SELECT MIN("wins") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the least races for carlin <|assistant|> SELECT MIN("races") FROM "career_summary" WHERE "team"='Carlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Name the position for 0 podiums and carlin team <|assistant|> SELECT "position" FROM "career_summary" WHERE "podiums"=0 AND "team"='Carlin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topographical_survey" ( "name_of_village" text, "name_in_syriac" text, "number_of_believers" real, "number_of_priests" real, "number_of_churches" real ); Question: Name the name in syriac for 500 believers <|assistant|> SELECT "name_in_syriac" FROM "topographical_survey" WHERE "number_of_believers"=500;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topographical_survey" ( "name_of_village" text, "name_in_syriac" text, "number_of_believers" real, "number_of_priests" real, "number_of_churches" real ); Question: Name the least number of believers <|assistant|> SELECT MIN("number_of_believers") FROM "topographical_survey";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topographical_survey" ( "name_of_village" text, "name_in_syriac" text, "number_of_believers" real, "number_of_priests" real, "number_of_churches" real ); Question: Name the most number of believers for ά“ά˜άά ά’ <|assistant|> SELECT MAX("number_of_believers") FROM "topographical_survey" WHERE "name_in_syriac"='ά“ά˜άά ά’';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topographical_survey" ( "name_of_village" text, "name_in_syriac" text, "number_of_believers" real, "number_of_priests" real, "number_of_churches" real ); Question: Name the number of believers for khosrowa <|assistant|> SELECT "number_of_believers" FROM "topographical_survey" WHERE "name_of_village"='Khosrowa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topographical_survey" ( "name_of_village" text, "name_in_syriac" text, "number_of_believers" real, "number_of_priests" real, "number_of_churches" real ); Question: Name the number of believers for patavur <|assistant|> SELECT COUNT("number_of_believers") FROM "topographical_survey" WHERE "name_of_village"='Patavur';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24598274_20" ( "country" text, "local_title" text, "presenter_s" text, "judges" text, "channel" text, "series" text ); Question: The local title "Live to Dance" was aired in which channel? <|assistant|> SELECT "channel" FROM "table1_24598274_20" WHERE "local_title"='Live to Dance';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24598274_20" ( "country" text, "local_title" text, "presenter_s" text, "judges" text, "channel" text, "series" text ); Question: Which country did Johanna Klum presented the show? <|assistant|> SELECT "country" FROM "table1_24598274_20" WHERE "presenter_s"='Johanna Klum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tracklist" ( "artist_band" text, "song" text, "disney_affiliated" text, "released" real, "us_exclusive" text, "eu_exclusive" text ); Question: Name the most released for the in crowd <|assistant|> SELECT MAX("released") FROM "tracklist" WHERE "song"='The In Crowd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tracklist" ( "artist_band" text, "song" text, "disney_affiliated" text, "released" real, "us_exclusive" text, "eu_exclusive" text ); Question: Name the most released for apologize <|assistant|> SELECT MAX("released") FROM "tracklist" WHERE "song"='Apologize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tracklist" ( "artist_band" text, "song" text, "disney_affiliated" text, "released" real, "us_exclusive" text, "eu_exclusive" text ); Question: Name the most released for right here, right now <|assistant|> SELECT MAX("released") FROM "tracklist" WHERE "song"='Right Here, Right Now';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tracklist" ( "artist_band" text, "song" text, "disney_affiliated" text, "released" real, "us_exclusive" text, "eu_exclusive" text ); Question: Name the us exclusive for miley cyrus <|assistant|> SELECT "us_exclusive" FROM "tracklist" WHERE "artist_band"='Miley Cyrus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there? <|assistant|> SELECT COUNT("clean_electric_grid_california_san_francisco") FROM "table1_24620684_2" WHERE "vehicle"='BMW ActiveE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type? <|assistant|> SELECT "vehicle" FROM "table1_24620684_2" WHERE "epa_rated_combined_fuel_economy"='102 mpg-e (33kW-hrs/100mi)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there? <|assistant|> SELECT COUNT("vehicle") FROM "table1_24620684_2" WHERE "clean_electric_grid_california_san_francisco"='100 g/mi (62 g/km)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix? <|assistant|> SELECT "u_s_national_average_electric_mix" FROM "table1_24620684_2" WHERE "dirty_electric_grid_rocky_mountains_denver"='380 g/mi (236 g/km)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When bmw activee is the vehicle type what is the u.s national average electric mix? <|assistant|> SELECT "u_s_national_average_electric_mix" FROM "table1_24620684_2" WHERE "vehicle"='BMW ActiveE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_24620684_2" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text ); Question: When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there? <|assistant|> SELECT COUNT("operating_mode") FROM "table1_24620684_2" WHERE "epa_rated_combined_fuel_economy"='87 mpg-e (39kW-hrs/100mi)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the opponents for 6–2, 3–6, 6–3 <|assistant|> SELECT "opponents" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "score"='6–2, 3–6, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the championship for outcome being winner for 7–5, 4–6, 6–1 <|assistant|> SELECT "championship" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "outcome"='Winner' AND "score"='7–5, 4–6, 6–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the score for winner and julie halard-decugis ai sugiyama <|assistant|> SELECT "score" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "outcome"='Winner' AND "opponents"='Julie Halard-Decugis Ai Sugiyama';<|endoftext|>