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 "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );. Question: "List the scores of all games when Miami were listed as the first Semi finalist". [/INST] SELECT "score" FROM "division_ii" WHERE "semi_finalist_num1"='Miami';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );. Question: "When Embry-Riddle made it to the first semi finalist slot, list all the runners up.". [/INST] SELECT "runner_up" FROM "division_ii" WHERE "semi_finalist_num1"='Embry-Riddle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_ii" ( "year" real, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );. Question: "Where was the final game played in 2007". [/INST] SELECT "location" FROM "division_ii" WHERE "year"=2007;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor?". [/INST] SELECT COUNT("round") FROM "grands_prix" WHERE "pole_position"='Michael Schumacher' AND "fastest_lap"='David Coulthard' AND "winning_constructor"='McLaren - Mercedes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 drivers won the Italian Grand Prix?". [/INST] SELECT COUNT("winning_driver") FROM "grands_prix" WHERE "grand_prix"='Italian Grand Prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "What was the report of the Belgian Grand Prix?". [/INST] SELECT "report" FROM "grands_prix" WHERE "grand_prix"='Belgian Grand Prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text );. Question: "Who had the fastest lap in the Belgian Grand Prix?". [/INST] SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='Belgian Grand Prix';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1134091_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "When was the date successor seated when the vacator was charles e. chamberlain (r)?". [/INST] SELECT "date_successor_seated" FROM "table1_1134091_4" WHERE "vacator"='Charles E. Chamberlain (R)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1134091_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Who was the successor when the vacator was chester e. holifield (d)?". [/INST] SELECT "successor" FROM "table1_1134091_4" WHERE "vacator"='Chester E. Holifield (D)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1134091_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "When was the successor seated when the district was California 10th?". [/INST] SELECT "date_successor_seated" FROM "table1_1134091_4" WHERE "district"='California 10th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1134091_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Who was the vacator when the date successor seated was august 21, 1973?". [/INST] SELECT "vacator" FROM "table1_1134091_4" WHERE "date_successor_seated"='August 21, 1973';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1134091_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "What was the district when the reason for change was died January 1, 1974?". [/INST] SELECT "district" FROM "table1_1134091_4" WHERE "reason_for_change"='Died January 1, 1974';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "Which routes have "replaced by US 81" listed in their remarks section?". [/INST] SELECT "route_name" FROM "decommissioned_highways" WHERE "remarks"='Replaced by US 81';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "Which junctions have "replaced by bsi-35" listed in their remarks section?". [/INST] SELECT "junctions" FROM "decommissioned_highways" WHERE "remarks"='Replaced by BSI-35';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "How many junctions have "replaced by bsi-35" listed in their remarks section?". [/INST] SELECT COUNT("junctions") FROM "decommissioned_highways" WHERE "remarks"='Replaced by BSI-35';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "What unit of length is being used for the route with "replaced by us 81" in their remarks section?". [/INST] SELECT "length" FROM "decommissioned_highways" WHERE "remarks"='Replaced by US 81';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "Which population areas have "replaced by us 83" listed in their remarks section?". [/INST] SELECT "population_area" FROM "decommissioned_highways" WHERE "remarks"='Replaced by US 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 "decommissioned_highways" ( "route_name" text, "direction" text, "termini" text, "junctions" text, "length" text, "population_area" text, "remarks" text );. Question: "How many termini are there that have "east west" listed in their direction section, "none" listed in their junction section, and have a route name of "sh 202"?". [/INST] SELECT COUNT("termini") FROM "decommissioned_highways" WHERE "direction"='East West' AND "junctions"='none' AND "route_name"='SH 202';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "tv" text, "attendance" text, "record" text );. Question: "Give me the kickoff time of the game that was aired on CBS against the St. Louis Cardinals. ". [/INST] SELECT "kickoff_a" FROM "schedule" WHERE "tv"='CBS' AND "opponent"='St. Louis Cardinals';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "tv" text, "attendance" text, "record" text );. Question: "Find all the result(s) with the record of 2-13.". [/INST] SELECT "result" FROM "schedule" WHERE "record"='2-13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individual_all_around" ( "rank" real, "gymnast" text, "floor_exercise" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "What is the vault score for the total of 56.635?". [/INST] SELECT "vault" FROM "individual_all_around" WHERE "total"='56.635';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individual_all_around" ( "rank" real, "gymnast" text, "floor_exercise" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "What is the total score when the score for floor exercise was 9.287?". [/INST] SELECT "total" FROM "individual_all_around" WHERE "floor_exercise"='9.287';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: " what's the margin where runner(s)-up is phil mickelson". [/INST] SELECT "margin" FROM "wins_14" WHERE "runner_s_up"='Phil Mickelson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: " who is the runner(s)-up where 54 holes is tied for lead and margin is 5 strokes". [/INST] SELECT "runner_s_up" FROM "wins_14" WHERE "54_holes"='Tied for lead' AND "margin"='5 strokes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: " what's the championship where 54 holes is 1 shot lead and runner(s)-up is chris dimarco". [/INST] SELECT "championship" FROM "wins_14" WHERE "54_holes"='1 shot lead' AND "runner_s_up"='Chris DiMarco';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: "what is the minimum year where winning score is −8 (71-63-69-69=272)". [/INST] SELECT MIN("year") FROM "wins_14" WHERE "winning_score"='−8 (71-63-69-69=272)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: " what's the championship where winning score is −12 (74-66-65-71=276)". [/INST] SELECT "championship" FROM "wins_14" WHERE "winning_score"='−12 (74-66-65-71=276)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );. Question: " what's the 54 holes where winning score is −19 (67-66-67-69=269)". [/INST] SELECT "54_holes" FROM "wins_14" WHERE "winning_score"='−19 (67-66-67-69=269)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_11589522_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: " what's the title where original air date is january18,2009". [/INST] SELECT "title" FROM "table1_11589522_3" WHERE "original_air_date"='January18,2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_11589522_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: " what's the original air date where written by is iain morris & damon beesley". [/INST] SELECT "original_air_date" FROM "table1_11589522_3" WHERE "written_by"='Iain Morris & Damon Beesley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1160161_12" ( "target" text, "target_code_allied" text, "luftwaffe_unit_wing" text, "allied_forces" text, "effect_on_allied_squadrons_according_to_official_figures" text );. Question: "Which Allied Force targetted Woensdrecht?". [/INST] SELECT "allied_forces" FROM "table1_1160161_12" WHERE "target"='Woensdrecht';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1160161_12" ( "target" text, "target_code_allied" text, "luftwaffe_unit_wing" text, "allied_forces" text, "effect_on_allied_squadrons_according_to_official_figures" text );. Question: "What is the allied target code of the group that targetted ghent/sint-denijs-westrem?". [/INST] SELECT "target_code_allied" FROM "table1_1160161_12" WHERE "target"='Ghent/Sint-Denijs-Westrem';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1160304_2" ( "chart" text, "date_of_entry" text, "entry_position" real, "peak_position" real, "weeks_on_peak" real, "weeks_on_chart" real, "date_of_exit" text );. Question: "What is the date of entry for the UK Albums Top 75 chart?". [/INST] SELECT "date_of_entry" FROM "table1_1160304_2" WHERE "chart"='UK Albums Top 75';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1160304_2" ( "chart" text, "date_of_entry" text, "entry_position" real, "peak_position" real, "weeks_on_peak" real, "weeks_on_chart" real, "date_of_exit" text );. Question: "What was the total number of weeks on peak for the Ireland Albums Top 75 chart?". [/INST] SELECT COUNT("weeks_on_peak") FROM "table1_1160304_2" WHERE "chart"='Ireland Albums Top 75';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1160304_2" ( "chart" text, "date_of_entry" text, "entry_position" real, "peak_position" real, "weeks_on_peak" real, "weeks_on_chart" real, "date_of_exit" text );. Question: "What is the exit date for the Dutch Albums Top 100 Chart?". [/INST] SELECT "date_of_exit" FROM "table1_1160304_2" WHERE "chart"='Dutch Albums Top 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 "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: "what is the total number of constancy where purity is falling". [/INST] SELECT COUNT("constancy") FROM "overview" WHERE "purity"='falling';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: " what's the permanence of the body where purity is rudra". [/INST] SELECT "permanence_of_the_body" FROM "overview" WHERE "purity"='Rudra';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: " what's the permanence of the body where purity is apprehension". [/INST] SELECT "permanence_of_the_body" FROM "overview" WHERE "purity"='apprehension';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: " what's the permanence of the body where penance is the undifferenced". [/INST] SELECT "permanence_of_the_body" FROM "overview" WHERE "penance"='the undifferenced';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: " what's the constancy where permanence of the body is meditation". [/INST] SELECT "constancy" FROM "overview" WHERE "permanence_of_the_body"='meditation';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "overview" ( "acquisition" text, "knowledge" text, "penance" text, "permanence_of_the_body" text, "constancy" text, "purity" text );. Question: " what's the permanence of the body where constancy is interestedness". [/INST] SELECT "permanence_of_the_body" FROM "overview" WHERE "constancy"='interestedness';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_6_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the original air dates for the title "firestorm"?". [/INST] SELECT "original_air_date" FROM "season_6_2009_11" WHERE "title"='\"Firestorm\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_6_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the title of the episode with the production code 624?". [/INST] SELECT "title" FROM "season_6_2009_11" WHERE "production_code"=624;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_6_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the original air date of the episode written by Karen Felix and Don Woodard?". [/INST] SELECT "original_air_date" FROM "season_6_2009_11" WHERE "written_by"='Karen Felix and Don Woodard';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the total number of species in the peruvian amazon with 8411 species in the world ". [/INST] SELECT COUNT("species_in_the_peruvian_amazon") FROM "biodiversity" WHERE "species_in_the_world"=8411;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the minimum species in the peruvian amazon with taxonomy s fern ( pteridophyta )". [/INST] SELECT MIN("species_in_the_peruvian_amazon") FROM "biodiversity" WHERE "taxonomy"='s Fern ( Pteridophyta )';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the species in the world with peruvian amazon vs. peru (percent)  of 63". [/INST] SELECT "species_in_the_world" FROM "biodiversity" WHERE "peruvian_amazon_vs_peru_percent"=63;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the minimum species in the peruvian amazon with species in peru of 1000". [/INST] SELECT MIN("species_in_the_peruvian_amazon") FROM "biodiversity" WHERE "species_in_peru"=1000;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the minimum species in the peruvian amazon with peru vs. world (percent) value of 7". [/INST] SELECT MIN("species_in_the_peruvian_amazon") FROM "biodiversity" WHERE "peru_vs_world_percent"=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 "biodiversity" ( "taxonomy" text, "species_in_the_world" real, "species_in_peru" real, "species_in_the_peruvian_amazon" real, "peru_vs_world_percent" real, "peruvian_amazon_vs_peru_percent" real );. Question: "what's the maximum peru vs. world (percent) with 9672 species in the world ". [/INST] SELECT MAX("peru_vs_world_percent") FROM "biodiversity" WHERE "species_in_the_world"=9672;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What school did the forward whose number is 10 belong to?". [/INST] SELECT "school_club_team_country" FROM "b" WHERE "no_s"='10' AND "position"='Forward';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What is the height of the player who attended Hartford?". [/INST] SELECT "height_in_ft" FROM "b" WHERE "school_club_team_country"='Hartford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What years did the player from LaSalle play for the Rockets?". [/INST] SELECT "years_for_rockets" FROM "b" WHERE "school_club_team_country"='LaSalle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What position is number 35 whose height is 6-6?". [/INST] SELECT "position" FROM "b" WHERE "height_in_ft"='6-6' AND "no_s"='35';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "Which player who played for the Rockets for the years 1986-92?". [/INST] SELECT "player" FROM "j" WHERE "years_for_rockets"='1986-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 "j" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "What is the number of the player who went to Southern University?". [/INST] SELECT "no_s" FROM "j" WHERE "school_club_team_country"='Southern University';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "j" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );. Question: "How tall is the player jones, major major jones?". [/INST] SELECT "height_in_ft" FROM "j" WHERE "player"='Jones, Major Major 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 "third_island" ( "member" text, "week_arrived_on_main_island" text, "week_sent_to_third_island" text, "original_tribe" text, "tribe_they_chose_to_win" text );. Question: "Who was sent to the third island in week 1?". [/INST] SELECT "member" FROM "third_island" WHERE "week_sent_to_third_island"='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 "third_island" ( "member" text, "week_arrived_on_main_island" text, "week_sent_to_third_island" text, "original_tribe" text, "tribe_they_chose_to_win" text );. Question: "What week was the member who arrived on the main island in week 6 sent to the third island?". [/INST] SELECT "week_sent_to_third_island" FROM "third_island" WHERE "week_arrived_on_main_island"='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 "third_island" ( "member" text, "week_arrived_on_main_island" text, "week_sent_to_third_island" text, "original_tribe" text, "tribe_they_chose_to_win" text );. Question: "How many members arrived on the main island in week 4?". [/INST] SELECT COUNT("member") FROM "third_island" WHERE "week_arrived_on_main_island"='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 "third_island" ( "member" text, "week_arrived_on_main_island" text, "week_sent_to_third_island" text, "original_tribe" text, "tribe_they_chose_to_win" text );. Question: "What week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island?". [/INST] SELECT "week_arrived_on_main_island" FROM "third_island" WHERE "original_tribe"='Shark' AND "week_sent_to_third_island"='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 "table1_11800185_1" ( "region" text, "country" text, "no_of_sikhs" text, "sikh_pct" text, "pct_of_all_sikhs" text );. Question: "What is the number of sikhs in Japan?". [/INST] SELECT "no_of_sikhs" FROM "table1_11800185_1" WHERE "country"='Japan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the evening gown score when the swimsuit was 9.61?". [/INST] SELECT "evening_gown" FROM "final_competition_scores" WHERE "swimsuit"='9.61';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What is the swimsuit score when the interview was 9.74?". [/INST] SELECT "swimsuit" FROM "final_competition_scores" WHERE "interview"='9.74';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Which country had an interview score of 9.40 and average of 9.44?". [/INST] SELECT "country" FROM "final_competition_scores" WHERE "interview"='9.40' AND "average"='9.44';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Which country had the swimsuit score 9.67?". [/INST] SELECT "country" FROM "final_competition_scores" WHERE "swimsuit"='9.67';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the average for the country with the swimsuit score of 9.57?". [/INST] SELECT "average" FROM "final_competition_scores" WHERE "swimsuit"='9.57';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "country" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the interview score for Hawaii?". [/INST] SELECT "interview" FROM "final_competition_scores" WHERE "country"='Hawaii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the date of Game 50?". [/INST] SELECT "date" FROM "game_log" WHERE "game"=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 "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 scored the most points in Game 49?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=49;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "Name the number of teams at the philips arena 19,335?". [/INST] SELECT COUNT("team") FROM "game_log" WHERE "location_attendance"='Philips Arena 19,335';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the team located at philips arena 18,227?". [/INST] SELECT "team" FROM "game_log" WHERE "location_attendance"='Philips Arena 18,227';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "what are all the records with a score is w 98–91". [/INST] SELECT "record" FROM "january" WHERE "score"='W 98–91';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "what records have a score of l 109–116 2 ot". [/INST] SELECT "record" FROM "january" WHERE "score"='L 109–116 2 OT';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "who are all the visitor with a record of 25–18". [/INST] SELECT "visitor" FROM "january" WHERE "record"='25–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 "january" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "Which visitors have a leading scorer of roy : 25". [/INST] SELECT "visitor" FROM "january" WHERE "leading_scorer"='Roy : 25';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "january" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "what is the total number of dates where the scorer is gordon : 32". [/INST] SELECT COUNT("date") FROM "january" WHERE "leading_scorer"='Gordon : 32';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: " what's the home team where streak is l3 and leading scorer is roy : 23". [/INST] SELECT "home" FROM "november" WHERE "streak"='L3' AND "leading_scorer"='Roy : 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 "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: " what's the attendance where score is l 92–101". [/INST] SELECT "attendance" FROM "november" WHERE "score"='L 92–101';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "what is the total number of date where visitor is new jersey nets". [/INST] SELECT COUNT("date") FROM "november" WHERE "visitor"='New Jersey Nets';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: " who is the leading scorer where home is charlotte bobcats". [/INST] SELECT "leading_scorer" FROM "november" WHERE "home"='Charlotte Bobcats';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: " what's the score where record is 0–2". [/INST] SELECT "score" FROM "november" WHERE "record"='0–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 "november" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text );. Question: "what is the total number of record where streak is l2 and leading scorer is roy : 23". [/INST] SELECT COUNT("record") FROM "november" WHERE "streak"='L2' AND "leading_scorer"='Roy : 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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the location on june 10". [/INST] SELECT "location_attendance" FROM "playoffs" WHERE "date"='June 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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the number of games on june 12". [/INST] SELECT COUNT("game") FROM "playoffs" WHERE "date"='June 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 "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );. Question: "Name the series on june 5". [/INST] SELECT "series" FROM "playoffs" WHERE "date"='June 5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_12030612_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Who were the authors of series episode #25?". [/INST] SELECT "written_by" FROM "table1_12030612_3" WHERE "series_num"=25;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12030612_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What season features writer Michael Poryes?". [/INST] SELECT "season_num" FROM "table1_12030612_3" WHERE "written_by"='Michael Poryes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12030612_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the date of the episode written by Michael Poryes?". [/INST] SELECT "original_air_date" FROM "table1_12030612_3" WHERE "written_by"='Michael Poryes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12030612_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What is the season where the episode "when worlds collide" was shown?". [/INST] SELECT MAX("season_num") FROM "table1_12030612_3" WHERE "title"='\"When Worlds Collide\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "what is the somerset for the year 2009?". [/INST] SELECT "somerset" FROM "table1_12043148_2" WHERE "year"=2009;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "what is the bristol & n. som where the somerset is ashcott and shapwick?". [/INST] SELECT "bristol_n_som" FROM "table1_12043148_2" WHERE "somerset"='Ashcott and Shapwick';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "what is the latest year where glos & wilts is warminster?". [/INST] SELECT MAX("year") FROM "table1_12043148_2" WHERE "glos_wilts"='Warminster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "what is the glos & wilts where the bristol & somerset is lansdown?". [/INST] SELECT "glos_wilts" FROM "table1_12043148_2" WHERE "bristol_somerset"='Lansdown';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "what is the year where glos & wilts is gloucester city winget?". [/INST] SELECT "year" FROM "table1_12043148_2" WHERE "glos_wilts"='Gloucester City Winget';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12043148_2" ( "year" real, "premier_one" text, "premier_two" text, "bristol_somerset" text, "glos_wilts" text, "bristol_n_som" text, "somerset" text, "gloucestershire" text, "wiltshire" text );. Question: "who many times is gloucestershire is painswick?". [/INST] SELECT COUNT("premier_two") FROM "table1_12043148_2" WHERE "gloucestershire"='Painswick';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: " what's the preliminaries where evening gown is 8.988". [/INST] SELECT "preliminaries" FROM "final_competition_scores" WHERE "evening_gown"='8.988';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: " what's the swimsuit where average is 8.670". [/INST] SELECT "swimsuit" FROM "final_competition_scores" WHERE "average"='8.670';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: " what's the evening gown where preliminaries is 8.977". [/INST] SELECT "evening_gown" FROM "final_competition_scores" WHERE "preliminaries"='8.977';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: " what's the preliminaries where state is south dakota". [/INST] SELECT "preliminaries" FROM "final_competition_scores" WHERE "state"='South Dakota';</s>