text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real );. Question: "How many points were awarded to the Ford DFZ 3.5 V8?". [/INST] SELECT SUM("points") FROM "complete_formula_one_results" WHERE "engine_s"='ford dfz 3.5 v8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" real );. Question: "Which engine received 0 points in 1988?". [/INST] SELECT "engine_s" FROM "complete_formula_one_results" WHERE "points"=0 AND "year"=1988;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_chart" ( "week" real, "issue_date" text, "artist" text, "single" text, "download" text, "title" text );. Question: "What's the Issue Date for an Eric Prydz song with a no available Download information?". [/INST] SELECT "issue_date" FROM "singles_chart" WHERE "download"='no available' AND "artist"='eric prydz';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_chart" ( "week" real, "issue_date" text, "artist" text, "single" text, "download" text, "title" text );. Question: "What's the Download information for the song from Week 44?". [/INST] SELECT "download" FROM "singles_chart" WHERE "week"=44;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_chart" ( "week" real, "issue_date" text, "artist" text, "single" text, "download" text, "title" text );. Question: "What is the title of the July 2 song that is downloaded as Crazy Frog?". [/INST] SELECT "title" FROM "singles_chart" WHERE "download"='crazy frog' AND "issue_date"='july 2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text );. Question: "What is the division record for Woodbridge?". [/INST] SELECT "division_record" FROM "2009_regular_season_football_standings" WHERE "school"='woodbridge';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd?". [/INST] SELECT "runner_up" FROM "previous_winners" WHERE "winners"='polonia bydgoszcz' AND "3rd_place"='mega-lada togliatti';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "Who was the runner-up in 2004?". [/INST] SELECT "runner_up" FROM "previous_winners" WHERE "year"='2004';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text );. Question: "Who was the 3rd place team at Pardubice?". [/INST] SELECT "3rd_place" FROM "previous_winners" WHERE "venue"='pardubice';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" text, "central_bank" text );. Question: "Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650?". [/INST] SELECT "country" FROM "currency" WHERE "1_euro">1.46611 AND "1_usd"='1.76650';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "currency" ( "country" text, "currency" text, "1_euro" real, "1_usd" text, "central_bank" text );. Question: "Which Chile central bank has a Euro larger than 297.547?". [/INST] SELECT "central_bank" FROM "currency" WHERE "1_euro">297.547 AND "country"='chile';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_saturday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Name the To par for denmark". [/INST] SELECT "to_par" FROM "third_round_saturday" WHERE "country"='denmark';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_saturday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Nam ethe place for pat perez". [/INST] SELECT "place" FROM "third_round_saturday" WHERE "player"='pat perez';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_saturday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Name the country vijay singh is from". [/INST] SELECT "country" FROM "third_round_saturday" WHERE "player"='vijay singh';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Which city has frequency under 106.5MHz and a callsign of w218ck?". [/INST] SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<106.5 AND "call_sign"='w218ck';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Which class has a city of Richmond, Virginia?". [/INST] SELECT "class" FROM "translators" WHERE "city_of_license"='richmond, virginia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the ERP W for the frequency of 91.3MHz?". [/INST] SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz"=91.3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Which call sign has a frequency greater than 98.5MHz and ERP W under 155?". [/INST] SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">98.5 AND "erp_w"<155;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_list" ( "disc" text, "title" text, "type" text, "length" text, "tracks" real );. Question: "Which tracks have a length of 18:36?". [/INST] SELECT MIN("tracks") FROM "disc_list" WHERE "length"='18:36';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_list" ( "disc" text, "title" text, "type" text, "length" text, "tracks" real );. Question: "What is the length of disc 67?". [/INST] SELECT "length" FROM "disc_list" WHERE "disc"='67';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What points larger than 1950 has a maserati straight-6 engine?". [/INST] SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "engine"='maserati straight-6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the chassis for a 1952 officine alfieri maserati with an entrant?". [/INST] SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='officine alfieri maserati' AND "year"=1952;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What type of engine does a 1951 alfa romeo 159m chasis have?". [/INST] SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1951 AND "chassis"='alfa romeo 159m';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What Entrant has a 1952 maserati straight-6 engine?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"=1952;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What Entrant older than 1950 has points smaller than 7?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "points"<7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the total points that an 1951 Entrant alfa romeo spa have?". [/INST] SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='alfa romeo spa' AND "year"<1951;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real );. Question: "Who is the co-driver in 1999 with more than 32 laps?". [/INST] SELECT "co_driver" FROM "bathurst_1000_results" WHERE "laps">32 AND "year"=1999;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_standings" ( "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix". [/INST] SELECT "winning_constructor" FROM "drivers_standings" WHERE "fastest_lap"='mark webber' AND "grand_prix"='malaysian grand prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_standings" ( "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the winning constructor for abu dhabi grand prix". [/INST] SELECT "winning_constructor" FROM "drivers_standings" WHERE "grand_prix"='abu dhabi grand prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_standings" ( "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the pole position for belgian grand prix". [/INST] SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='belgian grand prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_standings" ( "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the pole positon for korean grand prix". [/INST] SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='korean grand prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "drivers_standings" ( "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Name the pole position at the german grand prix". [/INST] SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='german grand prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "erm_ii_members" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text );. Question: "What is the code for Latvian Lats?". [/INST] SELECT "code" FROM "erm_ii_members" WHERE "currency"='latvian lats';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "erm_ii_members" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text );. Question: "Which currency has a central rate of 3.45280?". [/INST] SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='3.45280';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "erm_ii_members" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text );. Question: "Which currency has a central rate of 0.702804?". [/INST] SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='0.702804';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "erm_ii_members" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text );. Question: "What is the entry ERM II for the Hungarian Forint?". [/INST] SELECT "entry_erm_ii" FROM "erm_ii_members" WHERE "currency"='hungarian forint';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "erm_ii_members" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text );. Question: "What is the official target date for the Swedish Krona?". [/INST] SELECT "official_target_date" FROM "erm_ii_members" WHERE "currency"='swedish krona';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "The EPT German open was won by which listed winner?". [/INST] SELECT "winner" FROM "european_poker_tour" WHERE "event"='ept german open';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "What event did Will Fry win?". [/INST] SELECT "event" FROM "european_poker_tour" WHERE "winner"='will fry';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "The EPT German Open took place in what city?". [/INST] SELECT "city" FROM "european_poker_tour" WHERE "event"='ept german open';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "When did an event take place in the City of Copenhagen?". [/INST] SELECT "date" FROM "european_poker_tour" WHERE "city"='copenhagen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "The prize of £1,000,000 was given by an event in what city?". [/INST] SELECT "city" FROM "european_poker_tour" WHERE "prize"='£1,000,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "european_poker_tour" ( "date" text, "city" text, "event" text, "winner" text, "prize" text );. Question: "João Barbosa was the winner of which event?". [/INST] SELECT "event" FROM "european_poker_tour" WHERE "winner"='joão barbosa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_premier_league" ( "date" text, "opponent" text, "venue" text, "result_celtic_score_first" text, "attendance" real, "match_report" text );. Question: "What was the Attendance during the Home game where St. Johnstone was the Opponent?". [/INST] SELECT COUNT("attendance") FROM "scottish_premier_league" WHERE "opponent"='st. johnstone' AND "venue"='home';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "Which class has a Class Position of 6th?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='6th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "Which class has a Year of 1968?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"=1968;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );. Question: "Which class has a Team of kouros racing team?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='kouros racing team';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_colts_11_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );. Question: "Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?". [/INST] SELECT "winner" FROM "1970s_colts_11_9" WHERE "loser"='baltimore colts' AND "location"='schaefer stadium' AND "result"='42-3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_colts_11_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );. Question: "What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?". [/INST] SELECT "location" FROM "1970s_colts_11_9" WHERE "winner"='baltimore colts' AND "year"<1972 AND "result"='14-6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970s_colts_11_9" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );. Question: "What is the Date, when the Year is after 1978, and when the Location is Memorial Stadium (Baltimore)?". [/INST] SELECT "date" FROM "1970s_colts_11_9" WHERE "year">1978 AND "location"='memorial stadium (baltimore)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which engine has a Chassis of lotus 44 f2?". [/INST] SELECT "engine" FROM "formula_one_world_championship_results" WHERE "chassis"='lotus 44 f2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What entrant appeared in 1969?". [/INST] SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "year"=1969;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Which engine has a Year larger than 1969?". [/INST] SELECT "engine" FROM "formula_one_world_championship_results" WHERE "year">1969;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "What is the largest year with an Entrant of ron harris / team lotus?". [/INST] SELECT MAX("year") FROM "formula_one_world_championship_results" WHERE "entrant"='ron harris / team lotus';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "intergiro_classification" text, "trofeo_fast_team" text );. Question: "During stage 21, who held the Intergiro classification?". [/INST] SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "stage"='21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "intergiro_classification" text, "trofeo_fast_team" text );. Question: "During which stage was gatorade the Trofeo Fast Team?". [/INST] SELECT "stage" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gatorade';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "intergiro_classification" text, "trofeo_fast_team" text );. Question: "Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?". [/INST] SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gb-mg maglificio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "intergiro_classification" text, "trofeo_fast_team" text );. Question: "During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?". [/INST] SELECT "stage" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "young_rider_classification"='leonardo sierra';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "intergiro_classification" text, "trofeo_fast_team" text );. Question: "Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?". [/INST] SELECT "winner" FROM "classification_leadership_by_stage" WHERE "general_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "mountains_classification"='claudio chiappucci' AND "young_rider_classification"='pavel tonkov';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strong_s_num" text, "hebrew_word" text, "strong_s_transliteration" text, "strong_s_words_compounded" text, "english_spelling" text );. Question: "What is the rank of Strong's Words Compounded of yasha [# 3467] & yahu?". [/INST] SELECT "strong_s_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_words_compounded"='yasha [# 3467] & yahu';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strong_s_num" text, "hebrew_word" text, "strong_s_transliteration" text, "strong_s_words_compounded" text, "english_spelling" text );. Question: "How to spell Strong's # of 5166 in English?". [/INST] SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5166';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_theophoric_names_with_yah_and_y" ( "strong_s_num" text, "hebrew_word" text, "strong_s_transliteration" text, "strong_s_words_compounded" text, "english_spelling" text );. Question: "What is the Words with a Strong's # of 5418?". [/INST] SELECT "strong_s_words_compounded" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5418';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping_leaders" ( "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" real, "wins" real, "loses" real );. Question: "What is the goals against for the goalkeeper with 2520 minutes?". [/INST] SELECT "goals_against" FROM "goalkeeping_leaders" WHERE "minutes"=2520;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping_leaders" ( "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" real, "wins" real, "loses" real );. Question: "What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?". [/INST] SELECT AVG("games_played") FROM "goalkeeping_leaders" WHERE "loses"=10 AND "player"='bo oshoniyi' AND "minutes">1170;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping_leaders" ( "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" real, "wins" real, "loses" real );. Question: "What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?". [/INST] SELECT MAX("goals_against") FROM "goalkeeping_leaders" WHERE "club"='dallas burn' AND "ga_average">1.46;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping_leaders" ( "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" real, "wins" real, "loses" real );. Question: "What is the lowest number of losses a goalkeeper with more than 2776 minutes had?". [/INST] SELECT MIN("loses") FROM "goalkeeping_leaders" WHERE "minutes">2776;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goalkeeping_leaders" ( "player" text, "club" text, "games_played" real, "minutes" real, "goals_against" real, "ga_average" real, "wins" real, "loses" real );. Question: "What is the lowest minutes a goalkeeper with 13 games played has?". [/INST] SELECT MIN("minutes") FROM "goalkeeping_leaders" WHERE "games_played"=13;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biggest_losses" ( "margin" real, "score" text, "opponent" text, "venue" text, "round" text );. Question: "Which round resulted in 10-52?". [/INST] SELECT "round" FROM "biggest_losses" WHERE "score"='10-52';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biggest_losses" ( "margin" real, "score" text, "opponent" text, "venue" text, "round" text );. Question: "What venue did Melbourne Storm played in Rd 7, 2006?". [/INST] SELECT "venue" FROM "biggest_losses" WHERE "opponent"='melbourne storm' AND "round"='rd 7, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "In which venue was the result a draw?". [/INST] SELECT "venue" FROM "international_goals" WHERE "result"='draw';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "comedy_circus_ke_taansen" ( "pair_no" real, "comedian_1" text, "comedian_ii" text, "tansen_singers" text, "place_result" text );. Question: "Who is the singer that has Comedian; II of Preeti Amin?". [/INST] SELECT "tansen_singers" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='preeti amin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "comedy_circus_ke_taansen" ( "pair_no" real, "comedian_1" text, "comedian_ii" text, "tansen_singers" text, "place_result" text );. Question: "Who is the comedian that has a pair no larger than 5 with a comedian II: Jimmy Moses?". [/INST] SELECT "comedian_1" FROM "comedy_circus_ke_taansen" WHERE "pair_no">5 AND "comedian_ii"='jimmy moses';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "comedy_circus_ke_taansen" ( "pair_no" real, "comedian_1" text, "comedian_ii" text, "tansen_singers" text, "place_result" text );. Question: "What is the result of Comedian : II of Ali Asgar?". [/INST] SELECT "place_result" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='ali asgar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_division" ( "institution" text, "main_campus_location" text, "founded" real, "mascot" text, "school_colors" text );. Question: "Which School Colors were Founded of 1969, with an Institution of barton community college?". [/INST] SELECT "school_colors" FROM "western_division" WHERE "founded"=1969 AND "institution"='barton community college';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_division" ( "institution" text, "main_campus_location" text, "founded" real, "mascot" text, "school_colors" text );. Question: "Which Institution has a Mascot of broncbusters?". [/INST] SELECT "institution" FROM "western_division" WHERE "mascot"='broncbusters';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_division" ( "institution" text, "main_campus_location" text, "founded" real, "mascot" text, "school_colors" text );. Question: "What is the largest Founded with an Institution of cloud county community college?". [/INST] SELECT MAX("founded") FROM "western_division" WHERE "institution"='cloud county community college';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_division" ( "institution" text, "main_campus_location" text, "founded" real, "mascot" text, "school_colors" text );. Question: "What is the total Founded with a Main Campus Location of liberal?". [/INST] SELECT COUNT("founded") FROM "western_division" WHERE "main_campus_location"='liberal';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "encounters" ( "1_person_dive" text, "2_person_dive" text, "3_person_dive" text, "surface" text, "cage_dive" text, "seal_turtle_decoy" text, "catch_release" text, "attached_camera" text, "remote_camera" text );. Question: "What is the 3-person dive that has none as the 2-person dive?". [/INST] SELECT "3_person_dive" FROM "encounters" WHERE "2_person_dive"='none';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "encounters" ( "1_person_dive" text, "2_person_dive" text, "3_person_dive" text, "surface" text, "cage_dive" text, "seal_turtle_decoy" text, "catch_release" text, "attached_camera" text, "remote_camera" text );. Question: "What is the 2-person dive that has 2 as the surface?". [/INST] SELECT "2_person_dive" FROM "encounters" WHERE "surface"='2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "encounters" ( "1_person_dive" text, "2_person_dive" text, "3_person_dive" text, "surface" text, "cage_dive" text, "seal_turtle_decoy" text, "catch_release" text, "attached_camera" text, "remote_camera" text );. Question: "What surface has 2 as a cage dive?". [/INST] SELECT "surface" FROM "encounters" WHERE "cage_dive"='2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "encounters" ( "1_person_dive" text, "2_person_dive" text, "3_person_dive" text, "surface" text, "cage_dive" text, "seal_turtle_decoy" text, "catch_release" text, "attached_camera" text, "remote_camera" text );. Question: "Which cage dive has none as a 3-person dive?". [/INST] SELECT "cage_dive" FROM "encounters" WHERE "3_person_dive"='none';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "encounters" ( "1_person_dive" text, "2_person_dive" text, "3_person_dive" text, "surface" text, "cage_dive" text, "seal_turtle_decoy" text, "catch_release" text, "attached_camera" text, "remote_camera" text );. Question: "Which 3-person dive has 0 as a remote camera?". [/INST] SELECT "3_person_dive" FROM "encounters" WHERE "remote_camera"='0';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Which years have a Decile smaller than 2, and an Area of mohaka?". [/INST] SELECT "years" FROM "wairoa_district" WHERE "decile"<2 AND "area"='mohaka';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?". [/INST] SELECT "gender" FROM "wairoa_district" WHERE "authority"='state' AND "years"='1–8' AND "decile"<10 AND "roll"=36;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Which roll has an Area of mahia?". [/INST] SELECT "roll" FROM "wairoa_district" WHERE "area"='mahia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );. Question: "Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori?". [/INST] SELECT "decile" FROM "wairoa_district" WHERE "authority"='state' AND "roll"<61 AND "area"='kotemaori';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What's the highest League Cup with an FA Cup thats larger than 2?". [/INST] SELECT MAX("league_cup") FROM "appearances" WHERE "fa_cup">2;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?". [/INST] SELECT COUNT("fa_cup") FROM "appearances" WHERE "play_offs"=3 AND "name"='mitch cook category:articles with hcards' AND "total"<11;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0?". [/INST] SELECT COUNT("fa_cup") FROM "appearances" WHERE "league"<29 AND "play_offs"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What's the lowest Play-offs with a League of 4 and FA Cup larger than 1?". [/INST] SELECT MIN("play_offs") FROM "appearances" WHERE "league"=4 AND "fa_cup">1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real );. Question: "What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?". [/INST] SELECT COUNT("league_cup") FROM "appearances" WHERE "play_offs">2 AND "name"='mitch cook category:articles with hcards';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real );. Question: "What is the number for the Channel 4 weekly rank when there are more than 2.19 million viewers for the episode "zero worship" which was earlier than episode 34?". [/INST] SELECT COUNT("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions">2.19 AND "title"='\"zero worship\"' AND "episode_num"<34;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real );. Question: "What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?". [/INST] SELECT AVG("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions"<2.19 AND "airdate"='december 7, 2007';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real );. Question: "What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30?". [/INST] SELECT COUNT("viewers_millions") FROM "united_kingdom" WHERE "airdate"='october 10, 2008' AND "channel_4_weekly_rank_a"<30;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );. Question: "What is the duration of the flight with end time of 21:06?". [/INST] SELECT "duration" FROM "ev_as" WHERE "end_time"='21:06';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );. Question: "What is the spacecraft with end time of 4 September 04:51?". [/INST] SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='4 september 04:51';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );. Question: "What is the crew with the end time of 21:11?". [/INST] SELECT "crew" FROM "ev_as" WHERE "end_time"='21:11';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );. Question: "What is the duration of the Expedition 20 ISS Zvezda?". [/INST] SELECT "duration" FROM "ev_as" WHERE "spacecraft"='expedition 20 iss zvezda';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );. Question: "Who was the crew for the duration of 12 minutes?". [/INST] SELECT "crew" FROM "ev_as" WHERE "duration"='12 minutes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Name the sum of year for connaught engineering and points less than 0". [/INST] SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "entrant"='connaught engineering' AND "points"<0;</s>