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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many positions are there for RB1 Motorsports?". [/INST] SELECT COUNT("position") FROM "nascar_nationwide_series" WHERE "team_s"='RB1 Motorsports';</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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What is the highest number of wins?". [/INST] SELECT MAX("wins") FROM "nascar_nationwide_series";</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 "personnel_and_sponsoring" ( "team" text, "manager" text, "chairman" text, "team_captain" text, "kit_maker" text, "sponsor" text );. Question: "Who is the captain of Cardiff City?". [/INST] SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "team"='Cardiff City';</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 "personnel_and_sponsoring" ( "team" text, "manager" text, "chairman" text, "team_captain" text, "kit_maker" text, "sponsor" text );. Question: "How many kit makers are there for Louis Carey's team?". [/INST] SELECT COUNT("kit_maker") FROM "personnel_and_sponsoring" WHERE "team_captain"='Louis Carey';</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 "personnel_and_sponsoring" ( "team" text, "manager" text, "chairman" text, "team_captain" text, "kit_maker" text, "sponsor" text );. Question: "Who is the captain of Neil Warnock's team?". [/INST] SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "manager"='Neil Warnock';</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 "personnel_and_sponsoring" ( "team" text, "manager" text, "chairman" text, "team_captain" text, "kit_maker" text, "sponsor" text );. Question: "Who is the captain of Dave Jones' team?". [/INST] SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "manager"='Dave Jones';</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 "personnel_and_sponsoring" ( "team" text, "manager" text, "chairman" text, "team_captain" text, "kit_maker" text, "sponsor" text );. Question: "Who is the chairman of Mark Robins team?". [/INST] SELECT "chairman" FROM "personnel_and_sponsoring" WHERE "manager"='Mark Robins';</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_list_of_available_songs" ( "song_title" text, "artist" text, "decade" text, "genre" text, "release_date_xbox360" text, "release_date_play_station3" text, "release_date_wii" text );. Question: "Name the release date xbox 360 for sea wolf". [/INST] SELECT "release_date_xbox360" FROM "complete_list_of_available_songs" WHERE "artist"='Sea Wolf';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: " What party was represented by incumbent Richard Coulter ? ". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Richard Coulter';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What was the result for Henry Daniel's race?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Henry Daniel';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "When was Henry Daniel first elected?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Henry Daniel';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "How many first elected years are provided for Thomas P. Moore?". [/INST] SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas P. Moore';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What district is Joseph Lecompte in office in?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joseph Lecompte';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What party does joel r. poinsett represent?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joel R. Poinsett';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What was the first elected year that featured incumbent andrew r. govan?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Andrew R. Govan';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "In what district is the incumbent Charles Fisher?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Charles Fisher';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "First elected in 1807 1817 in what district?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1807 1817';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent?". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Fisher (DR) 65.1% W. Jones (F) 34.9%';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "In district North Carolina 10, what are the candidates?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='North Carolina 10';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Fisher (DR) 65.1% W. Jones (F) 34.9%';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "The district North Carolina 10 have what candidates?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='North Carolina 10';</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 "table1_2668336_19" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold?". [/INST] SELECT "incumbent" FROM "table1_2668336_19" WHERE "candidates"='John Murray (DR) 50.4% George Denison (DR) 49.6%' AND "result"='Retired Democratic-Republican hold';</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 "table1_2668336_19" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816>". [/INST] SELECT "incumbent" FROM "table1_2668336_19" WHERE "result"='Retired Democratic-Republican hold' AND "first_elected"='1816';</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 "table1_2668336_19" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Who were the candidates in the election where william wilson was the incumbent?". [/INST] SELECT "candidates" FROM "table1_2668336_19" WHERE "incumbent"='William Wilson';</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 "table1_2668352_14" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the result for pennsylvania 8". [/INST] SELECT "result" FROM "table1_2668352_14" WHERE "district"='Pennsylvania 8';</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 "table1_2668352_14" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the result for 1810". [/INST] SELECT "result" FROM "table1_2668352_14" WHERE "first_elected"='1810';</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 "table1_2668352_14" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the district for hugh glasgow". [/INST] SELECT "district" FROM "table1_2668352_14" WHERE "incumbent"='Hugh Glasgow';</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 "table1_2668352_14" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the incumbent for lost re-election democratic-republican hold". [/INST] SELECT "incumbent" FROM "table1_2668352_14" WHERE "result"='Lost re-election Democratic-Republican hold';</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 "table1_2668352_14" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the district for first elected 1810". [/INST] SELECT "district" FROM "table1_2668352_14" WHERE "first_elected"='1810';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What party does James Pleasants belong to?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James Pleasants';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "When was William Kennedy first elected?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Kennedy';</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 "table1_2668378_13" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "what was the section where the winner is william hoge". [/INST] SELECT "district" FROM "table1_2668378_13" WHERE "incumbent"='William Hoge';</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 "table1_2668378_13" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "who was running where the winner is daniel montgomery". [/INST] SELECT "candidates" FROM "table1_2668378_13" WHERE "incumbent"='Daniel Montgomery';</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 "table1_2668378_13" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "who was running in the section pennsylvania 5". [/INST] SELECT "candidates" FROM "table1_2668378_13" WHERE "district"='Pennsylvania 5';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Who was the incumbent in the district that first elected someone in 1807?". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1807';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "When was someone first elected in the district with incumbent john smith?". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Smith';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What party represents the district with incumbent matthew clay?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Matthew Clay';</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_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What party represents the district with john g. jackson?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John G. Jackson';</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 "table1_2668393_18" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "How many times was the incumbent john dawson redistricted from the 15th district?". [/INST] SELECT COUNT("candidates") FROM "table1_2668393_18" WHERE "incumbent"='John Dawson Redistricted from the 15th district';</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 "table1_2668393_18" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What is the party for the candidates edwin gray (dr)?". [/INST] SELECT "party" FROM "table1_2668393_18" WHERE "candidates"='Edwin Gray (DR)';</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 "table1_2668393_18" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What is the result in the virginia 11 district?". [/INST] SELECT "result" FROM "table1_2668393_18" WHERE "district"='Virginia 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 "table1_2668393_18" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What is the district with the candidates edwin gray (dr)?". [/INST] SELECT "district" FROM "table1_2668393_18" WHERE "candidates"='Edwin Gray (DR)';</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 "table1_2668393_18" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "How many incumbents were first elected in 1797 with the candidates abram trigg (dr)?". [/INST] SELECT COUNT("incumbent") FROM "table1_2668393_18" WHERE "first_elected"='1797' AND "candidates"='Abram Trigg (DR)';</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 "table1_26702204_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What is the production code when the u.s. viewers (million) is 11.76?". [/INST] SELECT "production_code" FROM "table1_26702204_1" WHERE "u_s_viewers_million"='11.76';</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 "table1_26702204_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What was the u.s. viewers (millions) when the production code was 4alh19?". [/INST] SELECT "u_s_viewers_million" FROM "table1_26702204_1" WHERE "production_code"='4ALH19';</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 "table1_26744350_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real );. Question: "Who wrote the episode titled "big kings on campus"?". [/INST] SELECT "written_by" FROM "table1_26744350_2" WHERE "title"='\"Big Kings on Campus\"';</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 "table1_26744350_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real );. Question: "How many episodes have the title "revenge of the mummy"?". [/INST] SELECT COUNT("original_u_s_air_date") FROM "table1_26744350_2" WHERE "title"='\"Revenge of the Mummy\"';</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 "top_43_train_services_by_distance" ( "no" real, "origin_city_country" text, "destination_city_country" text, "train_name_no" text, "operator_name" text, "distance" text, "no_of_stops" text, "frequency" text, "scheduled_running_time" text );. Question: "What is the operator name when the distance is 3105km?". [/INST] SELECT "operator_name" FROM "top_43_train_services_by_distance" WHERE "distance"='3105km';</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 "top_43_train_services_by_distance" ( "no" real, "origin_city_country" text, "destination_city_country" text, "train_name_no" text, "operator_name" text, "distance" text, "no_of_stops" text, "frequency" text, "scheduled_running_time" text );. Question: "What is the distance for the train nameno is hapa sup express /12997?". [/INST] SELECT "distance" FROM "top_43_train_services_by_distance" WHERE "train_name_no"='Hapa sup Express /12997';</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 "top_43_train_services_by_distance" ( "no" real, "origin_city_country" text, "destination_city_country" text, "train_name_no" text, "operator_name" text, "distance" text, "no_of_stops" text, "frequency" text, "scheduled_running_time" text );. Question: "what is the no when the distance is 4168km?". [/INST] SELECT "no" FROM "top_43_train_services_by_distance" WHERE "distance"='4168km';</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 "table1_26748252_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "How many millions of people watched the episode "The Grandfather"?". [/INST] SELECT "u_s_viewers_in_millions" FROM "table1_26748252_1" WHERE "title"='\"The Grandfather\"';</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 "table1_26748252_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "How many people wrote the episode with 3.40 million U.S viewers?". [/INST] SELECT COUNT("written_by") FROM "table1_26748252_1" WHERE "u_s_viewers_in_millions"='3.40';</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 "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "moto_gp_winner" text, "moto2_winner" text, "125cc_winner" text, "report" text );. Question: "How many MotoGP winners were there when the circuit was Catalunya?". [/INST] SELECT COUNT("moto_gp_winner") FROM "grands_prix" WHERE "circuit"='Catalunya';</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 "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "moto_gp_winner" text, "moto2_winner" text, "125cc_winner" text, "report" text );. Question: "Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?". [/INST] SELECT "moto2_winner" FROM "grands_prix" WHERE "grand_prix"='Shell Advance 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 "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "moto_gp_winner" text, "moto2_winner" text, "125cc_winner" text, "report" text );. Question: "Who are all the motogp winners when the circuit was Catalunya?". [/INST] SELECT "moto_gp_winner" FROM "grands_prix" WHERE "circuit"='Catalunya';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What was the area (km²) (per sqmi) of the country Colombia?". [/INST] SELECT "area_km_per_sqmi" FROM "table1_26769_1" WHERE "country_or_territory_with_flag"='Colombia';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What was the maximum population of the country with Quito as capital?". [/INST] SELECT MAX("population_july_2009_est") FROM "table1_26769_1" WHERE "capital"='Quito';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What was the population of a country with a population density of 14.3/km² (/sqmi)?". [/INST] SELECT "population_july_2009_est" FROM "table1_26769_1" WHERE "population_density_per_km"='14.3/km² (/sqmi)';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What was the area (km²) (per sqmi) of a country with a population density per km² of 8.4/km² (/sqmi)?". [/INST] SELECT "area_km_per_sqmi" FROM "table1_26769_1" WHERE "population_density_per_km"='8.4/km² (/sqmi)';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What was the country with a population density per km² of 3.5/km² (/sqmi)?". [/INST] SELECT "country_or_territory_with_flag" FROM "table1_26769_1" WHERE "population_density_per_km"='3.5/km² (/sqmi)';</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 "table1_26769_1" ( "country_or_territory_with_flag" text, "area_km_per_sqmi" text, "population_july_2009_est" real, "population_density_per_km" text, "capital" text );. Question: "What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)?". [/INST] SELECT "capital" FROM "table1_26769_1" WHERE "population_density_per_km"='15.6/km² (/sqmi)';</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "what is the position for pick # 103?". [/INST] SELECT "position" FROM "round_six" WHERE "pick_num"=103;</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the pick # for nhl team vancouver canucks?". [/INST] SELECT MIN("pick_num") FROM "round_six" WHERE "nhl_team"='Vancouver Canucks';</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nationality of the player kevin stevens?". [/INST] SELECT "nationality" FROM "round_six" WHERE "player"='Kevin Stevens';</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the highest pick number for player don barber?". [/INST] SELECT MAX("pick_num") FROM "round_six" WHERE "player"='Don Barber';</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the college/junior/club team for player don barber?". [/INST] SELECT "college_junior_club_team" FROM "round_six" WHERE "player"='Don Barber';</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 "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nhl team for the position centre and nationality united states?". [/INST] SELECT "nhl_team" FROM "round_six" WHERE "position"='Centre' AND "nationality"='United States';</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 "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What country do the Winnipeg Jets come from?". [/INST] SELECT "nationality" FROM "round_seven" WHERE "nhl_team"='Winnipeg Jets';</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 "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many teams got pick number 130?". [/INST] SELECT COUNT("college_junior_club_team") FROM "round_seven" WHERE "pick_num"=130;</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 "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Where are the Buffalo Sabres from?". [/INST] SELECT "college_junior_club_team" FROM "round_seven" WHERE "nhl_team"='Buffalo Sabres';</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 "table1_26804862_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "When "the legacy" is the title what is the production code?". [/INST] SELECT "production_code" FROM "table1_26804862_1" WHERE "title"='\"The Legacy\"';</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 "table1_26804862_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "When harvey laidman is the director what is the season number?". [/INST] SELECT "season_num" FROM "table1_26804862_1" WHERE "directed_by"='Harvey Laidman';</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 "table1_26804862_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "When 3.89 is the production code how many season numbers are there?". [/INST] SELECT COUNT("season_num") FROM "table1_26804862_1" WHERE "production_code"='3.89';</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 "table1_26808178_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "How many episodes is episode number 4 in the series?". [/INST] SELECT COUNT("title") FROM "table1_26808178_1" WHERE "series_num"=4;</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 "table1_26808178_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "How many million viewers watched episode 3 in the series?". [/INST] SELECT "u_s_viewers_millions" FROM "table1_26808178_1" WHERE "series_num"=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 "table1_26808178_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who wrote "pocket pussy"?". [/INST] SELECT "written_by" FROM "table1_26808178_1" WHERE "title"='\"Pocket Pussy\"';</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 "table1_26808178_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "How many episodes are titled "it's called hazing, look it up"?". [/INST] SELECT COUNT("series_num") FROM "table1_26808178_1" WHERE "title"='\"It''s Called Hazing, Look It Up\"';</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 "table1_26816495_26" ( "rk" real, "team" text, "home_gms" real, "home_att" real, "avg_home" real, "away_gms" real, "away_att" real, "avg_away" real, "neut_gms" real, "neut_att" text, "avg_neut" text, "total_gms" real, "total_att" real, "avg" text );. Question: "What is the maximum home attendance if the average is 11,322?". [/INST] SELECT MAX("home_att") FROM "table1_26816495_26" WHERE "avg"='11,322';</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 "uk" ( "num" real, "title" text, "timeslot" text, "air_date" text, "viewers_000s" real, "weekly_rank_sky1" real, "weekly_rank_virgin_media" real );. Question: "What is title numer 103's rank for weekly rank sky1?". [/INST] SELECT "weekly_rank_sky1" FROM "uk" WHERE "num"=103;</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 "uk" ( "num" real, "title" text, "timeslot" text, "air_date" text, "viewers_000s" real, "weekly_rank_sky1" real, "weekly_rank_virgin_media" real );. Question: "What was the rank by Weekly Rank Sky1 for title number 97?". [/INST] SELECT MIN("weekly_rank_sky1") FROM "uk" WHERE "num"=97;</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 "uk" ( "num" real, "title" text, "timeslot" text, "air_date" text, "viewers_000s" real, "weekly_rank_sky1" real, "weekly_rank_virgin_media" real );. Question: "What was the weekly rank by Virgin media for the title aired on May 20, 2010?". [/INST] SELECT MIN("weekly_rank_virgin_media") FROM "uk" WHERE "air_date"='May 20, 2010';</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 "uk" ( "num" real, "title" text, "timeslot" text, "air_date" text, "viewers_000s" real, "weekly_rank_sky1" real, "weekly_rank_virgin_media" real );. Question: "A what time was the title aired in October 22, 2009". [/INST] SELECT "timeslot" FROM "uk" WHERE "air_date"='October 22, 2009';</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 "example_of_a_9_hand_game" ( "hand_number" real, "prevailing_wind" text, "player_1" text, "player_2" text, "player_3" text );. Question: "What is the hand number of the hand where player 1 is south and the east wind is prevailing?". [/INST] SELECT COUNT("hand_number") FROM "example_of_a_9_hand_game" WHERE "player_1"='South' AND "prevailing_wind"='East';</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 "example_of_a_9_hand_game" ( "hand_number" real, "prevailing_wind" text, "player_1" text, "player_2" text, "player_3" text );. Question: "What is player 1 when player 3 is South and the prevailing wind is South?". [/INST] SELECT "player_1" FROM "example_of_a_9_hand_game" WHERE "player_3"='South' AND "prevailing_wind"='South';</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 "season_3_2012" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who directed the episode that had 0.54 million U.S. viewers? ". [/INST] SELECT "directed_by" FROM "season_3_2012" WHERE "u_s_viewers_millions"='0.54';</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 "season_3_2012" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who wrote the teleplay for the episode directed by Tim Robbins? ". [/INST] SELECT "teleplay_by" FROM "season_3_2012" WHERE "directed_by"='Tim Robbins';</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 "season_3_2012" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who directed the episode that had 0.57 million U.S. viewers? ". [/INST] SELECT "directed_by" FROM "season_3_2012" WHERE "u_s_viewers_millions"='0.57';</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 "season_3_2012" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What number episode in the season was watched by 0.49 million U.S. viewers? ". [/INST] SELECT MAX("num") FROM "season_3_2012" WHERE "u_s_viewers_millions"='0.49';</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 "results" ( "round" real, "circuit" text, "series" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "How many times is the series italian and the circuit is valencia?". [/INST] SELECT COUNT("round") FROM "results" WHERE "series"='Italian' AND "circuit"='Valencia';</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 "results" ( "round" real, "circuit" text, "series" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who had the fastest lap for the circuit magione?". [/INST] SELECT "fastest_lap" FROM "results" WHERE "circuit"='Magione';</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 "results" ( "round" real, "circuit" text, "series" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who had the fastest lap when the winning driver is giorgio sanna?". [/INST] SELECT "fastest_lap" FROM "results" WHERE "winning_driver"='Giorgio Sanna';</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 "results" ( "round" real, "circuit" text, "series" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who had the fastest lap when the winning driver was kristian ghedina?". [/INST] SELECT "fastest_lap" FROM "results" WHERE "winning_driver"='Kristian Ghedina';</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 "table1_26961951_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "What is the title of the episode directed by Romeo Tirone?". [/INST] SELECT "title" FROM "table1_26961951_6" WHERE "directed_by"='Romeo Tirone';</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 "table1_26961951_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "When did the episode written by Abe Sylvia originally air?". [/INST] SELECT "original_air_date" FROM "table1_26961951_6" WHERE "written_by"='Abe Sylvia';</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 "table1_26961951_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "Which episode number had a viewership of 0.56 million?". [/INST] SELECT MAX("no_in_series") FROM "table1_26961951_6" WHERE "u_s_viewers_million"='0.56';</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 "table1_26961951_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "Who was the writer in the episode directed by Jesse Peretz?". [/INST] SELECT "written_by" FROM "table1_26961951_6" WHERE "directed_by"='Jesse Peretz';</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 "references" ( "date" text, "battles" text, "conflict" text, "combatants_a" text, "combatants_b" text, "result" text );. Question: "With the Royal Navy as Combatants B, what was the result?". [/INST] SELECT "result" FROM "references" WHERE "combatants_b"='Royal Navy';</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 "references" ( "date" text, "battles" text, "conflict" text, "combatants_a" text, "combatants_b" text, "result" text );. Question: "In what conflicts was the Italian Navy Combatants B?". [/INST] SELECT "conflict" FROM "references" WHERE "combatants_b"='Italian Navy';</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 "references" ( "date" text, "battles" text, "conflict" text, "combatants_a" text, "combatants_b" text, "result" text );. Question: "How many battles resulted in Battle of the Yellow Sea?". [/INST] SELECT COUNT("result") FROM "references" WHERE "battles"='Battle of the Yellow Sea';</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 "2010_senior_classic_practice_times_and_l" ( "rank" real, "rider" text, "sat_21_aug" text, "mon_23_aug" text, "tues_24_aug" text, "wed_25_aug" text, "thurs_26_aug" text, "fri_27_aug" text, "sat_28_aug" text );. Question: "What is Paul Coward 492cc nourish Weslake's lowest rank?". [/INST] SELECT MIN("rank") FROM "2010_senior_classic_practice_times_and_l" WHERE "rider"='Paul Coward 492cc Nourish Weslake';</s>