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 "table1_26561508_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" text );. Question: "What is the production code for the episode where the patient portrayer is Kathy Lamkin?". [/INST] SELECT "production_code" FROM "table1_26561508_1" WHERE "patient_portrayer"='Kathy Lamkin';</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_26561508_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" text );. Question: "Who was the writter for the episode identified by the production code 2t5954?". [/INST] SELECT "written_by" FROM "table1_26561508_1" WHERE "production_code"='2T5954';</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_26561508_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" text );. Question: "Who were the writers for the episode titled "Ben White"?". [/INST] SELECT "written_by" FROM "table1_26561508_1" WHERE "title"='\"Ben White\"';</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_26561508_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" text );. Question: "What is the total number of patient portayers for the episode directed by Craig Zisk and written by Brad Falchuk?". [/INST] SELECT COUNT("patient_portrayer") FROM "table1_26561508_1" WHERE "directed_by"='Craig Zisk' AND "written_by"='Brad Falchuk';</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_26561506_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" real );. Question: "Who directed the episode with production code 177605?". [/INST] SELECT "directed_by" FROM "table1_26561506_1" WHERE "production_code"=177605;</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_26561506_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" real );. Question: "How many episodes are numbered 4 in the season?". [/INST] SELECT COUNT("patient_portrayer") FROM "table1_26561506_1" WHERE "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_26561506_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" real );. Question: "What numbered episode is titled "naomi gaines"?". [/INST] SELECT "no" FROM "table1_26561506_1" WHERE "title"='\"Naomi Gaines\"';</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_26561506_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" real );. Question: "Who wrote episode number 28?". [/INST] SELECT "written_by" FROM "table1_26561506_1" WHERE "no"=28;</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_26561506_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "patient_portrayer" text, "original_air_date" text, "production_code" real );. Question: "What is the highest numbered episode with patient portrayer doug savant?". [/INST] SELECT MAX("num") FROM "table1_26561506_1" WHERE "patient_portrayer"='Doug Savant';</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_26565936_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What season was the episode "haunted" in?". [/INST] SELECT MIN("no_in_season") FROM "table1_26565936_2" WHERE "title"='\"Haunted\"';</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_26565936_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What number(s) in the series was written by bo crese?". [/INST] SELECT "no_in_series" FROM "table1_26565936_2" WHERE "written_by"='Bo Crese';</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_26565936_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who wrote episode number 109 in the series?". [/INST] SELECT "written_by" FROM "table1_26565936_2" WHERE "no_in_series"=109;</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_26565936_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What was the first episode in the season directed by nelson mccormick?". [/INST] SELECT MIN("no_in_season") FROM "table1_26565936_2" WHERE "directed_by"='Nelson McCormick';</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_26565936_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What was the original air date for the episode with 13.92 million us viewers?". [/INST] SELECT "original_air_date" FROM "table1_26565936_2" WHERE "u_s_viewers_millions"='13.92';</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 "episodes_and_ratings" ( "episode" real, "first_broadcast_denmark_dr1" text, "official_tns_gallup_ratings" real, "first_broadcast_uk_bbc_four" text, "official_barb_ratings" text );. Question: "When was the episode with a 999,000 BARB rating first aired in Denmark?". [/INST] SELECT "first_broadcast_denmark_dr1" FROM "episodes_and_ratings" WHERE "official_barb_ratings"='999,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 "episodes_and_ratings" ( "episode" real, "first_broadcast_denmark_dr1" text, "official_tns_gallup_ratings" real, "first_broadcast_uk_bbc_four" text, "official_barb_ratings" text );. Question: "What is the BARB ratings of episode 6?". [/INST] SELECT "official_barb_ratings" FROM "episodes_and_ratings" WHERE "episode"=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 "episodes_and_ratings" ( "episode" real, "first_broadcast_denmark_dr1" text, "official_tns_gallup_ratings" real, "first_broadcast_uk_bbc_four" text, "official_barb_ratings" text );. Question: "When was the episode with a 1,036,000 BARB rating first aired in Denmark?". [/INST] SELECT "first_broadcast_denmark_dr1" FROM "episodes_and_ratings" WHERE "official_barb_ratings"='1,036,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 "table1_26591309_1" ( "episode" real, "title" text, "original_danish_air_date" text, "danish_ratings_dr1" real, "original_uk_air_date" text, "uk_ratings_bbc_four" real );. Question: "What is the original Danish air date of "Episode 17"? ". [/INST] SELECT "original_danish_air_date" FROM "table1_26591309_1" WHERE "title"='\"Episode 17\"';</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_26591309_1" ( "episode" real, "title" text, "original_danish_air_date" text, "danish_ratings_dr1" real, "original_uk_air_date" text, "uk_ratings_bbc_four" real );. Question: "What were the UK ratings (BBC Four) for "Episode 17"? ". [/INST] SELECT MIN("uk_ratings_bbc_four") FROM "table1_26591309_1" WHERE "title"='\"Episode 17\"';</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "How many parks are called mt. olympus". [/INST] SELECT COUNT("name") FROM "the_gravity_group_coasters" WHERE "park"='Mt. Olympus';</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "How fast is the coaster that is 163 feet tall". [/INST] SELECT "speed_mph" FROM "the_gravity_group_coasters" WHERE "height_ft"=163;</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "What is the length of the coaster with the unknown speed". [/INST] SELECT "length_ft" FROM "the_gravity_group_coasters" WHERE "speed_mph"='unknown';</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "How long is the rollar coaster on Kemah Boardwalk". [/INST] SELECT "length_ft" FROM "the_gravity_group_coasters" WHERE "park"='Kemah Boardwalk';</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "What park is Boardwalk Bullet located in?". [/INST] SELECT "park" FROM "the_gravity_group_coasters" WHERE "name"='Boardwalk Bullet';</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 "the_gravity_group_coasters" ( "name" text, "park" text, "length_ft" real, "height_ft" real, "speed_mph" text, "opened" text, "status" text );. Question: "How many parks is Zippin Pippin located in". [/INST] SELECT COUNT("park") FROM "the_gravity_group_coasters" WHERE "name"='Zippin Pippin';</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "In what year was Montenegro the host country?". [/INST] SELECT "year" FROM "editions" WHERE "host_country"='Montenegro';</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "What was the number of athletes in the host city of Nice?". [/INST] SELECT "no_of_athletes" FROM "editions" WHERE "host_city"='Nice';</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "Who was the host country when Bar was the host city?". [/INST] SELECT "host_country" FROM "editions" WHERE "host_city"='Bar';</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "What was the number of athletes for the 7th edition?". [/INST] SELECT "no_of_athletes" FROM "editions" WHERE "edition"='7th';</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "What was the most recent year?". [/INST] SELECT MAX("year") FROM "editions";</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 "editions" ( "edition" text, "year" real, "host_city" text, "host_country" text, "date" text, "no_of_athletes" text, "nations" real );. Question: "What was the host city of the 8th edition in the the host country of Croatia?". [/INST] SELECT "host_city" FROM "editions" WHERE "host_country"='Croatia' AND "edition"='8th';</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: "Name the result for first elected being 1798 1825". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1798 1825';</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: "Name the total number of party for willis alston". [/INST] SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Willis Alston';</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: "Name the result for augustine h. shepperd (j) 100%". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Augustine H. Shepperd (J) 100%';</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: "Name the result for willis alston". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Willis Alston';</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: "Name the total number of party for willis alston (j) 93.9% george e. spruill 6.1%". [/INST] SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Willis Alston (J) 93.9% George E. Spruill 6.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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the district for anti-jacksonian". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "party"='Anti-Jacksonian';</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 the candidate first elected in 1820?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1820';</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 is the party of Joseph Vance?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joseph Vance';</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_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%". [/INST] SELECT "first_elected" FROM "table1_2668352_11" WHERE "candidates"='Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.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 "table1_2668352_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the first elected for jacob markell". [/INST] SELECT "first_elected" FROM "table1_2668352_11" WHERE "incumbent"='Jacob Markell';</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_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the least first elected". [/INST] SELECT MIN("first_elected") FROM "table1_2668352_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_2668352_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the most first elected". [/INST] SELECT MAX("first_elected") FROM "table1_2668352_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_2668352_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the incumbent for new york 10". [/INST] SELECT "incumbent" FROM "table1_2668352_11" WHERE "district"='New York 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_2668352_11" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Name the incumbent for new york 10". [/INST] SELECT "incumbent" FROM "table1_2668352_11" WHERE "district"='New York 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_2668367_21" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the distrct for thomas wilson". [/INST] SELECT "district" FROM "table1_2668367_21" WHERE "incumbent"='Thomas 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_2668367_21" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the party for john randolph redistricted from the 15th district". [/INST] SELECT "party" FROM "table1_2668367_21" WHERE "incumbent"='John Randolph 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_2668367_21" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the party for virginia 12". [/INST] SELECT "party" FROM "table1_2668367_21" WHERE "district"='Virginia 12';</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: "Name the candidates for john boyle". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Boyle';</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: "Name the first elected for kentucky 3". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the incumbent for matthew lyon (dr) anthony new (dr)". [/INST] SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Matthew Lyon (DR) Anthony New (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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the number of first elected for kentucky 3". [/INST] SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the number of party for kentucky 1". [/INST] SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Name the first elected for kentucky 1". [/INST] SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Kentucky 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "party"='Federalist' AND "candidates"='William Craik (F) 51.0% Benjamin Edwards 49.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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "What is the party when the incumbent is samuel smith?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Samuel 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 is the party when the incumbent is samuel smith?". [/INST] SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Samuel 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 is the result for the district Maryland 7?". [/INST] SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Maryland 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text );. Question: "Who is the candidates for district maryland 1?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Maryland 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 "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text );. Question: "Who was the candidate in 1791?". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1791;</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_2669287_1" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text );. Question: "What tv season was episode 23 broadcast?". [/INST] SELECT "tv_season" FROM "table1_2669287_1" WHERE "episodes"=23;</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_2669287_1" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text );. Question: "How many seasons was the rank equal to #50?". [/INST] SELECT COUNT("season") FROM "table1_2669287_1" WHERE "rank"='#50';</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_2669287_1" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text );. Question: "When did the season finale reached an audience of 10.02 million viewers?". [/INST] SELECT "season_finale" FROM "table1_2669287_1" WHERE "viewers_in_millions"='10.02';</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_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nationality when the player is randy heath?". [/INST] SELECT "nationality" FROM "round_two" WHERE "player"='Randy Heath';</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_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nhl team when the college, junior, club team is toronto marlboros (ohl) and the position is centre?". [/INST] SELECT "nhl_team" FROM "round_two" WHERE "college_junior_club_team"='Toronto Marlboros (OHL)' AND "position"='Centre';</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_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)?". [/INST] SELECT MIN("pick_num") FROM "round_two" WHERE "nhl_team"='Montreal Canadiens' AND "college_junior_club_team"='Trois-Rivières Draveurs (QMJHL)';</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_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "how many times is the nhl team the winnipeg jets?". [/INST] SELECT COUNT("player") FROM "round_two" 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_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "what is the position for the nhl team toronto maple leafs?". [/INST] SELECT "position" FROM "round_two" WHERE "nhl_team"='Toronto Maple Leafs';</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_26826304_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "How many were the US viewers (in millions) of the episode that was written by Gordon C. Lonsdale?". [/INST] SELECT "u_s_viewers_millions" FROM "table1_26826304_1" WHERE "directed_by"='Gordon C. Lonsdale';</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_26826304_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "What was the air date of the episode that has a production code of 5aky13?". [/INST] SELECT "original_air_date" FROM "table1_26826304_1" WHERE "production_code"='5AKY13';</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_26826304_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Who was the writer of the episode with a production code of 5aky04?". [/INST] SELECT "written_by" FROM "table1_26826304_1" WHERE "production_code"='5AKY04';</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 "2008" ( "player" text, "position" text, "starting_no_num" real, "d_o_b" text, "club" text, "height" text, "weight" text, "games" real );. Question: "What position does the player Todd Wise play in?". [/INST] SELECT "position" FROM "2008" WHERE "player"='Todd Wise';</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 "2008" ( "player" text, "position" text, "starting_no_num" real, "d_o_b" text, "club" text, "height" text, "weight" text, "games" real );. Question: "How many games were played where the height of the player is 1.92m?". [/INST] SELECT COUNT("games") FROM "2008" WHERE "height"='1.92m';</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 "2008" ( "player" text, "position" text, "starting_no_num" real, "d_o_b" text, "club" text, "height" text, "weight" text, "games" real );. Question: "What is the date of birth for the player in the Inglewood club?". [/INST] SELECT "d_o_b" FROM "2008" WHERE "club"='Inglewood';</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 "2008" ( "player" text, "position" text, "starting_no_num" real, "d_o_b" text, "club" text, "height" text, "weight" text, "games" real );. Question: "Which player weighs 76kg?". [/INST] SELECT "player" FROM "2008" WHERE "weight"='76kg';</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_26860595_2" ( "model" text, "launch" text, "model_number" text, "code_name" text, "fab_nm" real, "bus_interface" text, "memory_mi_b" text, "core_m_hz" text, "memory_m_hz" text, "config_core_1" text, "pixel_gp_s" text, "texture_gt_s" text, "bandwidth_gb_s" text, "bus_type_2" text, "bus_width_bit" real, "processing_power_gflo_ps" text, "direct_x" text, "open_gl" text, "tdp_watts_gpu_only" text );. Question: "What was the model's DirectX if it has a Core of 700 700 mhz?". [/INST] SELECT "direct_x" FROM "table1_26860595_2" WHERE "core_m_hz"='700 700';</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_26860595_2" ( "model" text, "launch" text, "model_number" text, "code_name" text, "fab_nm" real, "bus_interface" text, "memory_mi_b" text, "core_m_hz" text, "memory_m_hz" text, "config_core_1" text, "pixel_gp_s" text, "texture_gt_s" text, "bandwidth_gb_s" text, "bus_type_2" text, "bus_width_bit" real, "processing_power_gflo_ps" text, "direct_x" text, "open_gl" text, "tdp_watts_gpu_only" text );. Question: "What was the maximum fab (nm)?". [/INST] SELECT MAX("fab_nm") FROM "table1_26860595_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 "table1_26860595_2" ( "model" text, "launch" text, "model_number" text, "code_name" text, "fab_nm" real, "bus_interface" text, "memory_mi_b" text, "core_m_hz" text, "memory_m_hz" text, "config_core_1" text, "pixel_gp_s" text, "texture_gt_s" text, "bandwidth_gb_s" text, "bus_type_2" text, "bus_width_bit" real, "processing_power_gflo_ps" text, "direct_x" text, "open_gl" text, "tdp_watts_gpu_only" text );. Question: "What is the config core 1 of the model with a processing power GFLOPs of 432?". [/INST] SELECT "config_core_1" FROM "table1_26860595_2" WHERE "processing_power_gflo_ps"='432';</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_26860595_2" ( "model" text, "launch" text, "model_number" text, "code_name" text, "fab_nm" real, "bus_interface" text, "memory_mi_b" text, "core_m_hz" text, "memory_m_hz" text, "config_core_1" text, "pixel_gp_s" text, "texture_gt_s" text, "bandwidth_gb_s" text, "bus_type_2" text, "bus_width_bit" real, "processing_power_gflo_ps" text, "direct_x" text, "open_gl" text, "tdp_watts_gpu_only" text );. Question: "How many texture (gt/s) the card has if the tdp (watts) GPU only is 18?". [/INST] SELECT COUNT("texture_gt_s") FROM "table1_26860595_2" WHERE "tdp_watts_gpu_only"='18';</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 "finishing_order" ( "position" text, "name" text, "rider" text, "age" real, "weight" text, "starting_price" text, "distance" text, "prize_money" text );. Question: " How much did Nina Carberry win? ". [/INST] SELECT "prize_money" FROM "finishing_order" WHERE "rider"='Nina Carberry';</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 "english_clubs_performance_in_europe" ( "team" text, "contest_and_round" text, "opponent" text, "1st_leg_score" text, "2nd_leg_score" text, "aggregate_score" text );. Question: "What was the score between Marseille and Manchester United on the second leg of the Champions League Round of 16?". [/INST] SELECT "2nd_leg_score" FROM "english_clubs_performance_in_europe" WHERE "opponent"='Marseille';</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 "english_clubs_performance_in_europe" ( "team" text, "contest_and_round" text, "opponent" text, "1st_leg_score" text, "2nd_leg_score" text, "aggregate_score" text );. Question: "How many goals did each team score in the first leg of the match between Liverpool and Steaua Bucureşti?". [/INST] SELECT "1st_leg_score" FROM "english_clubs_performance_in_europe" WHERE "opponent"='Steaua Bucureşti';</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 "english_clubs_performance_in_europe" ( "team" text, "contest_and_round" text, "opponent" text, "1st_leg_score" text, "2nd_leg_score" text, "aggregate_score" text );. Question: "How many goals did each one of the teams score in the first leg of the match between Liverpool and Trabzonspor?". [/INST] SELECT "1st_leg_score" FROM "english_clubs_performance_in_europe" WHERE "opponent"='Trabzonspor';</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_26914076_2" ( "no" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the us viewers directed by christine moore". [/INST] SELECT "u_s_viewers_millions" FROM "table1_26914076_2" WHERE "directed_by"='Christine 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 "table1_26914076_2" ( "no" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the number for simon cellan jones". [/INST] SELECT "no" FROM "table1_26914076_2" WHERE "directed_by"='Simon Cellan 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 "table1_26914076_2" ( "no" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the teleplay for david simon & eric overmyer and tom piazza". [/INST] SELECT "teleplay_by" FROM "table1_26914076_2" WHERE "story_by"='David Simon & Eric Overmyer and Tom Piazza';</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_26914076_2" ( "no" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the most number". [/INST] SELECT MAX("no") FROM "table1_26914076_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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "If the proto-semitic is *bayt-, what are the geez?". [/INST] SELECT "geez" FROM "common_vocabulary" WHERE "proto_semitic"='*bayt-';</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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "if the aramaic is šlām-āʼ, what is the english?". [/INST] SELECT "english" FROM "common_vocabulary" WHERE "aramaic"='šlām-āʼ';</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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "if the geez is libb, what is the akkadian?". [/INST] SELECT "akkadian" FROM "common_vocabulary" WHERE "geez"='libb';</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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "If in english it is heart, what is it in hebrew?". [/INST] SELECT "hebrew" FROM "common_vocabulary" WHERE "english"='heart';</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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "If in English it's house, what is it in proto-semitic?". [/INST] SELECT "proto_semitic" FROM "common_vocabulary" WHERE "english"='house';</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 "common_vocabulary" ( "english" text, "proto_semitic" text, "akkadian" text, "arabic" text, "aramaic" text, "hebrew" text, "geez" text, "mehri" text );. Question: "If in arabic it is salām-, what is it in proto-semitic?". [/INST] SELECT "proto_semitic" FROM "common_vocabulary" WHERE "arabic"='salām-';</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 "2006_indy_car_series_schedule" ( "rnd" real, "date" text, "race_name" text, "track" text, "location" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winner" text );. Question: "how many times is the location is homestead, florida?". [/INST] SELECT COUNT("pole_position") FROM "2006_indy_car_series_schedule" WHERE "location"='Homestead, Florida';</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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "What was the earliest season where podium was 9?". [/INST] SELECT MIN("season") FROM "career_summary" WHERE "podiums"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How much were the f/laps if poles is higher than 1.0 during 2008?". [/INST] SELECT "f_laps" FROM "career_summary" WHERE "poles">1.0 AND "season"=2008;</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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "What races achieved 0 f/laps and 1 pole position?". [/INST] SELECT "races" FROM "career_summary" WHERE "f_laps"=0 AND "poles"=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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Who replaced the outgoing manager Hüsnü Özkara? ". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='Hüsnü Özkara';</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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "When was the date of vacancy for the manager of Kartalspor? ". [/INST] SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Kartalspor';</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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Who replaced the manager of Akhisar B.G.S.?". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Akhisar B.G.S.';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.