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_10718868_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 is the original air date for episode 15 of season 6?". [/INST] SELECT "original_air_date" FROM "table1_10718868_2" WHERE "no_in_season"=15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10718868_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: "How many episodes in season 6 titles "Poppin' Tags"?". [/INST] SELECT COUNT("no_in_season") FROM "table1_10718868_2" WHERE "title"='\"Poppin'' Tags\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "driver" text, "team" text, "engine" text, "poles" real, "wins" real, "podiums" real, "points" text, "margin_of_defeat" text );. Question: "Which podiums did the Williams team have with a margin of defeat of 2?". [/INST] SELECT "podiums" FROM "by_season" WHERE "team"='Williams' AND "margin_of_defeat"='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 "by_season" ( "season" real, "driver" text, "team" text, "engine" text, "poles" real, "wins" real, "podiums" real, "points" text, "margin_of_defeat" text );. Question: "How many drivers on the williams team had a margin of defeat of 2?". [/INST] SELECT COUNT("driver") FROM "by_season" WHERE "team"='Williams' AND "margin_of_defeat"='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 "by_season" ( "season" real, "driver" text, "team" text, "engine" text, "poles" real, "wins" real, "podiums" real, "points" text, "margin_of_defeat" text );. Question: "How many seasons was clay regazzoni the driver?". [/INST] SELECT COUNT("season") FROM "by_season" WHERE "driver"='Clay Regazzoni';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "driver" text, "team" text, "engine" text, "poles" real, "wins" real, "podiums" real, "points" text, "margin_of_defeat" text );. Question: "Which margin of defeats had points of 30?". [/INST] SELECT "margin_of_defeat" FROM "by_season" WHERE "points"='30';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_season" ( "season" real, "driver" text, "team" text, "engine" text, "poles" real, "wins" real, "podiums" real, "points" text, "margin_of_defeat" text );. Question: "Which podiums did the alfa romeo team have?". [/INST] SELECT "podiums" FROM "by_season" WHERE "team"='Alfa Romeo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "village_german" text, "village_slovene" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text );. Question: "What was the percent of slovenes 1951 for bach?". [/INST] SELECT "percent_of_slovenes_1951" FROM "references" WHERE "village_german"='Bach';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What college's team is the Saskatchewan Roughriders?". [/INST] SELECT "college" FROM "round_four" WHERE "cfl_team"='Saskatchewan Roughriders';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What position did Calvin Mccarty play?". [/INST] SELECT "position" FROM "round_four" WHERE "player"='Calvin McCarty';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "How many people were pick #30?". [/INST] SELECT COUNT("position") FROM "round_four" WHERE "pick_num"=30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What college did Calvin McCarty play at?". [/INST] SELECT "college" FROM "round_four" WHERE "player"='Calvin McCarty';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What college had a LB in the draft?". [/INST] SELECT "college" FROM "round_four" WHERE "position"='LB';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who got high assists for the game played on February 9?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "date"='February 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 "table1_1081235_1" ( "name_of_lava_dome" text, "country" text, "volcanic_area" text, "composition" text, "last_eruption_or_growth_episode" text );. Question: "Which lava domes erupted or had a growth episode during the Holocene period?". [/INST] SELECT "name_of_lava_dome" FROM "table1_1081235_1" WHERE "last_eruption_or_growth_episode"='Holocene';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1081235_1" ( "name_of_lava_dome" text, "country" text, "volcanic_area" text, "composition" text, "last_eruption_or_growth_episode" text );. Question: "What is the composition at Valles lava dome?". [/INST] SELECT "composition" FROM "table1_1081235_1" WHERE "name_of_lava_dome"='Valles lava dome';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1081235_1" ( "name_of_lava_dome" text, "country" text, "volcanic_area" text, "composition" text, "last_eruption_or_growth_episode" text );. Question: "How many countries are the Tata Sabaya Lava domes located in?". [/INST] SELECT COUNT("country") FROM "table1_1081235_1" WHERE "name_of_lava_dome"='Tata Sabaya lava domes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1081235_1" ( "name_of_lava_dome" text, "country" text, "volcanic_area" text, "composition" text, "last_eruption_or_growth_episode" text );. Question: "What countries have had eruptions of growth episodes in 1986?". [/INST] SELECT "country" FROM "table1_1081235_1" WHERE "last_eruption_or_growth_episode"='1986';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "Who is the lyricist for the song with a length of 3:05?". [/INST] SELECT "lyricist" FROM "soundtrack" WHERE "length"='3:05';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "What song has a length of 3:05?". [/INST] SELECT "song" FROM "soundtrack" WHERE "length"='3:05';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "Which lyricist has a song with a length of 6:14?". [/INST] SELECT "lyricist" FROM "soundtrack" WHERE "length"='6:14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "What is the highest track number?". [/INST] SELECT MAX("track_num") FROM "soundtrack";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "Which song has picturization by only vijay?". [/INST] SELECT "song" FROM "soundtrack" WHERE "picturization"='Vijay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text );. Question: "For which singers was Alangudi Somu the lyricist?". [/INST] SELECT "singers" FROM "soundtrack" WHERE "lyricist"='Alangudi Somu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "What publishers were involved with product number SCUS-97265?". [/INST] SELECT "publisher" FROM "table1_10875694_11" WHERE "product_no"='SCUS-97265';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "What is the total number of James Bond 007: Everything or Nothing for each system?". [/INST] SELECT COUNT("system") FROM "table1_10875694_11" WHERE "title"='James Bond 007: Everything or Nothing';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "How many products have the title "Jak 3"?". [/INST] SELECT COUNT("product_no") FROM "table1_10875694_11" WHERE "title"='Jak 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "Which James Bond 007: Agent Under Fire from Electronic Arts is compatible with 60 gb pal/80 gb NTSC PS3 (CECHC/CECHE)?". [/INST] SELECT "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" FROM "table1_10875694_11" WHERE "publisher"='Electronic Arts' AND "title"='James Bond 007: Agent Under Fire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "What publishers produce product number SLUS-20265?". [/INST] SELECT "publisher" FROM "table1_10875694_11" WHERE "product_no"='SLUS-20265';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10875694_11" ( "title" text, "system" text, "publisher" text, "product_no" text, "compatible_with_20_60_gb_ntsc_ps3_cecha_cechb" text, "compatible_with_60_gb_pal_80_gb_ntsc_ps3_cechc_ceche" text );. Question: "How many titles have the product number SCUS-97330?". [/INST] SELECT COUNT("title") FROM "table1_10875694_11" WHERE "product_no"='SCUS-97330';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preservation" ( "vehicle_numbers" text, "vehicle_types" text, "livery" text, "location" text, "status" text );. Question: "What is the status when livery is blue?". [/INST] SELECT "status" FROM "preservation" WHERE "livery"='Blue';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preservation" ( "vehicle_numbers" text, "vehicle_types" text, "livery" text, "location" text, "status" text );. Question: "What is the location when the status is in service as coaching stock?". [/INST] SELECT "location" FROM "preservation" WHERE "status"='In service as coaching stock';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );. Question: "What was the first season of the club who last won a title in 2012?". [/INST] SELECT "first_season" FROM "clubs" WHERE "last_title"='2012';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );. Question: "What was the first season of the club that in 2012 was 2nd in Superettan?". [/INST] SELECT "first_season" FROM "clubs" WHERE "position_in_2012"='2nd in Superettan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text );. Question: "What was the first season for the club that in 2012 was 2nd in Superettan?". [/INST] SELECT "first_season" FROM "clubs" WHERE "position_in_2012"='2nd in Superettan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11075747_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many series are named "Lockdown"?". [/INST] SELECT COUNT("series_num") FROM "table1_11075747_3" WHERE "title"='\"Lockdown\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11075747_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Who directed the second episode of "The Homecoming" which was written by Tommy Thompson?". [/INST] SELECT "directed_by" FROM "table1_11075747_3" WHERE "written_by"='Tommy Thompson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11075747_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What was the latest episode of "House of Cards"?". [/INST] SELECT MAX("episode_num") FROM "table1_11075747_3" WHERE "title"='\"House of Cards\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1953" ( "1953" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "What percentage of The Bronx voters occured when Manhattan had 29.9% of voters?". [/INST] SELECT "the_bronx" FROM "1953" WHERE "manhattan"='29.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 "1953" ( "1953" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "What number of voters did the Bronx have when the total number was 2054?". [/INST] SELECT "the_bronx" FROM "1953" WHERE "total"=2054;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1953" ( "1953" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "What number of voters did Queens have when Staten Island had 295 voters?". [/INST] SELECT "queens" FROM "1953" WHERE "richmond_staten_is"='295';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2013" ( "2013_republican_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real, "pct" text );. Question: "What was Staten Island when Brooklyn was 940?". [/INST] SELECT "staten_island" FROM "2013" WHERE "brooklyn"='940';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2013" ( "2013_republican_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real, "pct" text );. Question: "What was the total number in Manhattan when Staten Island was 12,658?". [/INST] SELECT COUNT("manhattan") FROM "2013" WHERE "staten_island"='12,658';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2013" ( "2013_republican_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real, "pct" text );. Question: "What was the total in Brooklyn when Manhattan was 3,139?". [/INST] SELECT "brooklyn" FROM "2013" WHERE "manhattan"='3,139';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2013" ( "2013_republican_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real, "pct" text );. Question: "Who was the republican candidate in 2013 when Staten Island was 451?". [/INST] SELECT "2013_republican_primary" FROM "2013" WHERE "staten_island"='451';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2013" ( "2013_republican_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real, "pct" text );. Question: "What was the amount in Staten Island when The Bronx was 1,281?". [/INST] SELECT "staten_island" FROM "2013" WHERE "the_bronx"='1,281';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1108394_47" ( "1921" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "The candidate who received 133 votes in the Bronx won what percentage overall?". [/INST] SELECT "pct" FROM "table1_1108394_47" WHERE "the_bronx"='133';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1108394_47" ( "1921" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "Which candidate won 88 votes in Queens in 1921?". [/INST] SELECT "1921" FROM "table1_1108394_47" WHERE "queens"='88';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1108394_47" ( "1921" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan?". [/INST] SELECT "brooklyn" FROM "table1_1108394_47" WHERE "manhattan"='321';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1108394_47" ( "1921" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "The man who received 87,676 votes in Queens won what percentage of the total for the election?". [/INST] SELECT "pct" FROM "table1_1108394_47" WHERE "queens"='87,676';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1108394_47" ( "1921" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );. Question: "How many parties received 29.9% of the vote in Manhattan?". [/INST] SELECT COUNT("party") FROM "table1_1108394_47" WHERE "manhattan"='29.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 "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real );. Question: "Name the most late 1943 with late 194 in slovenia". [/INST] SELECT MAX("late_1943") FROM "composition" WHERE "late_1941"='Slovenia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real );. Question: "What is the least september 1943 when late 1943 is 78000". [/INST] SELECT MIN("sept_1943") FROM "composition" WHERE "late_1943"=78000;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "composition" ( "late_1941" text, "late_1942" real, "sept_1943" real, "late_1943" real, "late_1944" real, "1978_veteran_membership" real );. Question: "What is the late 1941 when 1978 veteran membership is 20000". [/INST] SELECT "late_1941" FROM "composition" WHERE "1978_veteran_membership"=20000;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "player" text, "games_played" real, "attempts" real, "yards" real, "touchdowns" real, "longest_run" real );. Question: "What was Eric Dickerson's longest run?". [/INST] SELECT COUNT("longest_run") FROM "rushing" WHERE "player"='Eric Dickerson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "player" text, "games_played" real, "attempts" real, "yards" real, "touchdowns" real, "longest_run" real );. Question: "How many attempts did Charles White make?". [/INST] SELECT MIN("attempts") FROM "rushing" WHERE "player"='Charles 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 "rushing" ( "player" text, "games_played" real, "attempts" real, "yards" real, "touchdowns" real, "longest_run" real );. Question: "How many yards did the player with 87 attempts rush?". [/INST] SELECT "yards" FROM "rushing" WHERE "attempts"=87;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );. Question: "What was the highest amount of people that attended the elgin city team?". [/INST] SELECT COUNT("highest") FROM "stadia_and_attendances" WHERE "team"='Elgin 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 "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );. Question: "The firs park stadium had the lowest average attendence of what?". [/INST] SELECT MIN("average") FROM "stadia_and_attendances" WHERE "stadium"='Firs Park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );. Question: "What was the lowest highest attendance for the dumbarton team?". [/INST] SELECT MIN("highest") FROM "stadia_and_attendances" WHERE "team"='Dumbarton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );. Question: "The gayfield park stadium had a highest attendance of what?". [/INST] SELECT MAX("highest") FROM "stadia_and_attendances" WHERE "stadium"='Gayfield Park';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );. Question: "The stenhousemuir team had how many highest attendances?". [/INST] SELECT COUNT("highest") FROM "stadia_and_attendances" WHERE "team"='Stenhousemuir';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2005" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "what's the premiere with hk viewers of 2.09 million". [/INST] SELECT "premiere" FROM "highest_rating_drama_series_of_2005" WHERE "hk_viewers"='2.09 million';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_rating_drama_series_of_2005" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );. Question: "what is the minimum rank". [/INST] SELECT MIN("rank") FROM "highest_rating_drama_series_of_2005";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "What is the minimum capacity of Dundee United's stadium?". [/INST] SELECT MIN("capacity") FROM "attendances" WHERE "team"='Dundee United';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "Which stadiums have a capacity of 51082?". [/INST] SELECT "stadium" FROM "attendances" WHERE "capacity"=51082;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "How many stadiums are there with a capacity of 7500?". [/INST] SELECT COUNT("stadium") FROM "attendances" WHERE "capacity"=7500;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "What is Pittodrie Stadium's maximum capacity?". [/INST] SELECT MAX("capacity") FROM "attendances" WHERE "stadium"='Pittodrie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "Which stadiums have an average attendance of 13840?". [/INST] SELECT "stadium" FROM "attendances" WHERE "average"=13840;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "lowest" real, "highest" real, "average" real );. Question: "What are the highest recorded attendance rates of the stadiums with an average attendance of 4752?". [/INST] SELECT "highest" FROM "attendances" WHERE "average"=4752;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players" ( "player" text, "w_l_total" text, "w_l_singles" text, "w_l_doubles" text, "ties" real, "debut" real, "years_played" real );. Question: "What is the highest number of ties?". [/INST] SELECT MAX("ties") FROM "players";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players" ( "player" text, "w_l_total" text, "w_l_singles" text, "w_l_doubles" text, "ties" real, "debut" real, "years_played" real );. Question: "During the 2013 debut, what is the w-I(total) number?". [/INST] SELECT COUNT("w_l_total") FROM "players" WHERE "debut"=2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "What is the catalog number named callanetics: 10 years younger in 10 hours". [/INST] SELECT "catalog_number" FROM "official_callanetics_dv_ds" WHERE "title"='Callanetics: 10 Years Younger In 10 Hours';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "how many studios have the catalog number "cal03 / 0091037137333"?". [/INST] SELECT COUNT("studio") FROM "official_callanetics_dv_ds" WHERE "catalog_number"='CAL03 / 0091037137333';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "what is the format of "callanetics: 10 years younger in 10 hours"?". [/INST] SELECT "format" FROM "official_callanetics_dv_ds" WHERE "title"='Callanetics: 10 Years Younger In 10 Hours';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "What is the catalog number of the title called "super callanetics"?". [/INST] SELECT "catalog_number" FROM "official_callanetics_dv_ds" WHERE "title"='Super Callanetics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "how many titles have the name "quick callanetics"?". [/INST] SELECT COUNT("catalog_number") FROM "official_callanetics_dv_ds" WHERE "title"='Quick Callanetics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_dv_ds" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Who creates the catalog with the number "cal03 / 0091037137333"?". [/INST] SELECT "studio" FROM "official_callanetics_dv_ds" WHERE "catalog_number"='CAL03 / 0091037137333';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "american_weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "rating" text, "share" text, "18_49_rating" text, "viewers_millions" text, "rank" text );. Question: "What was the rating for the episode with 1.83 viewers (millions)?". [/INST] SELECT "rating" FROM "american_weekly_ratings" WHERE "viewers_millions"='1.83';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "american_weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "rating" text, "share" text, "18_49_rating" text, "viewers_millions" text, "rank" text );. Question: "What was the # for the episode "the birthday present"?". [/INST] SELECT MAX("num") FROM "american_weekly_ratings" WHERE "episode"='\"The Birthday Present\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "american_weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "rating" text, "share" text, "18_49_rating" text, "viewers_millions" text, "rank" text );. Question: "What was the # for the episode "the wedding"?". [/INST] SELECT MAX("num") FROM "american_weekly_ratings" WHERE "episode"='\"The Wedding\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "american_weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "rating" text, "share" text, "18_49_rating" text, "viewers_millions" text, "rank" text );. Question: "What is the rating for the episode in which the 18-49 rating is 0.4?". [/INST] SELECT "rating" FROM "american_weekly_ratings" WHERE "18_49_rating"='0.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 "american_weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "rating" text, "share" text, "18_49_rating" text, "viewers_millions" text, "rank" text );. Question: "What was the share for the episode with the air date december 10, 2008?". [/INST] SELECT "share" FROM "american_weekly_ratings" WHERE "air_date"='December 10, 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 "franchise_index" ( "country_region" text, "show_title" text, "languages" text, "host" text, "channel" text, "premiere" text, "seasons" text, "status" text );. Question: "Which premiere had languages in danish?". [/INST] SELECT "premiere" FROM "franchise_index" WHERE "languages"='Danish';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "franchise_index" ( "country_region" text, "show_title" text, "languages" text, "host" text, "channel" text, "premiere" text, "seasons" text, "status" text );. Question: "What was the number of channels in New Zealand?". [/INST] SELECT COUNT("channel") FROM "franchise_index" WHERE "country_region"='New Zealand';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "franchise_index" ( "country_region" text, "show_title" text, "languages" text, "host" text, "channel" text, "premiere" text, "seasons" text, "status" text );. Question: "What is the premiere where the host is lieke van lexmond dennis weening?". [/INST] SELECT "premiere" FROM "franchise_index" WHERE "host"='Lieke van Lexmond Dennis Weening';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "franchise_index" ( "country_region" text, "show_title" text, "languages" text, "host" text, "channel" text, "premiere" text, "seasons" text, "status" text );. Question: "What is the premiere on the mega channel?". [/INST] SELECT "premiere" FROM "franchise_index" WHERE "channel"='Mega Channel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "country" text, "renewable_energy_re" text, "solar_power_sp" text, "wind_power_wp" text, "geothermal_energy_ge" text, "biofuel_bf" text, "hydro_power_hydro" text );. Question: "What is the symbol for Windpower in China?". [/INST] SELECT "wind_power_wp" FROM "references" WHERE "country"='China';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1133844_4" ( "state_linked_to_summaries_below" text, "senator" text, "party" text, "electoral_history" text, "result" text, "candidates_winning_candidate_in_bold" text );. Question: "who were the winners in west virginia". [/INST] SELECT "candidates_winning_candidate_in_bold" FROM "table1_1133844_4" WHERE "state_linked_to_summaries_below"='West Virginia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1133844_4" ( "state_linked_to_summaries_below" text, "senator" text, "party" text, "electoral_history" text, "result" text, "candidates_winning_candidate_in_bold" text );. Question: "tell the final for lindsey graham". [/INST] SELECT "result" FROM "table1_1133844_4" WHERE "senator"='Lindsey Graham';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1133844_4" ( "state_linked_to_summaries_below" text, "senator" text, "party" text, "electoral_history" text, "result" text, "candidates_winning_candidate_in_bold" text );. Question: "who won the senate seat in arkansas". [/INST] SELECT "senator" FROM "table1_1133844_4" WHERE "state_linked_to_summaries_below"='Arkansas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools_in_dysart_usd" ( "information" text, "dysart" text, "shadow_ridge" text, "valley_vista" text, "willow_canyon" text );. Question: "What is the dysart of the principal?". [/INST] SELECT "dysart" FROM "high_schools_in_dysart_usd" WHERE "information"='Principal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools_in_dysart_usd" ( "information" text, "dysart" text, "shadow_ridge" text, "valley_vista" text, "willow_canyon" text );. Question: "What is williow canyon of Roberta Lockhart?". [/INST] SELECT "willow_canyon" FROM "high_schools_in_dysart_usd" WHERE "dysart"='Roberta Lockhart';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools_in_dysart_usd" ( "information" text, "dysart" text, "shadow_ridge" text, "valley_vista" text, "willow_canyon" text );. Question: "What is the willow canyon of Stallion?". [/INST] SELECT "willow_canyon" FROM "high_schools_in_dysart_usd" WHERE "shadow_ridge"='Stallion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools_in_dysart_usd" ( "information" text, "dysart" text, "shadow_ridge" text, "valley_vista" text, "willow_canyon" text );. Question: "Name the Valley Vista of Anthony Capuano". [/INST] SELECT "valley_vista" FROM "high_schools_in_dysart_usd" WHERE "willow_canyon"='Anthony Capuano';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools_in_dysart_usd" ( "information" text, "dysart" text, "shadow_ridge" text, "valley_vista" text, "willow_canyon" text );. Question: "How many informations does Michael Hawkins have?". [/INST] SELECT COUNT("information") FROM "high_schools_in_dysart_usd" WHERE "shadow_ridge"='Michael Hawkins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "How many total rounds did Damon Hill come in First Place?". [/INST] SELECT COUNT("round") FROM "grands_prix" WHERE "winning_driver"='Damon Hill';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Who drove the winning car constructed by Jordan - Mugen-Honda?". [/INST] SELECT "winning_driver" FROM "grands_prix" WHERE "winning_constructor"='Jordan - Mugen-Honda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Which Grand Prix was won by a car constructed by Jordan - Mugen-Honda?". [/INST] SELECT "grand_prix" FROM "grands_prix" WHERE "winning_constructor"='Jordan - Mugen-Honda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "premier_league" ( "team" text, "head_coach" text, "president" text, "home_ground" text, "location" text, "founded" real, "website" text );. Question: "Which location belongs to the website, http://www.mudgeerabasoccer.com/?". [/INST] SELECT "location" FROM "premier_league" WHERE "website"='http://www.mudgeerabasoccer.com/';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.