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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the lowest total for those receiving less than 18 but more than 14?". [/INST] SELECT MIN("total") FROM "medals_table" WHERE "silver"<18 AND "rank"='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 "1947_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "How many draws did Mortlake have when the losses were more than 5?". [/INST] SELECT COUNT("draws") FROM "1947_ladder" WHERE "losses">5 AND "club"='mortlake';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1947_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the draw when the losses were more than 8 and less than 2 wins?". [/INST] SELECT MAX("draws") FROM "1947_ladder" WHERE "losses">8 AND "wins"<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 "1947_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "How many wins did Cobden have when draws were more than 0?". [/INST] SELECT COUNT("wins") FROM "1947_ladder" WHERE "club"='cobden' AND "draws">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1947_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What's the number of losses when the wins were more than 11 and had 0 draws?". [/INST] SELECT COUNT("losses") FROM "1947_ladder" WHERE "draws"=0 AND "wins">11;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the score for the date of 16 december 1978, with a tie no of 9?". [/INST] SELECT "score" FROM "second_round_proper" WHERE "date"='16 december 1978' AND "tie_no"='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 "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the tie no for the home team swansea city?". [/INST] SELECT "tie_no" FROM "second_round_proper" WHERE "home_team"='swansea 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 "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What date had a tie no of replay, and an away team of watford?". [/INST] SELECT "date" FROM "second_round_proper" WHERE "tie_no"='replay' AND "away_team"='watford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Waht was the away team when the home team is colchester united?". [/INST] SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='colchester 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 "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the tie no for the away team altrincham?". [/INST] SELECT "tie_no" FROM "second_round_proper" WHERE "away_team"='altrincham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "born" text );. Question: "Which position did Michael Lee play?". [/INST] SELECT "pos" FROM "current_roster" WHERE "name"='michael lee';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "born" text );. Question: "What was the weight of Serhiy Alfyorov?". [/INST] SELECT "weight" FROM "current_roster" WHERE "name"='serhiy alfyorov';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "born" text );. Question: "What is the weight of the person born in 1980?". [/INST] SELECT "weight" FROM "current_roster" WHERE "born"='1980';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "born" text );. Question: "What is the position of the player born in 1984 with a height of 1.80m?". [/INST] SELECT "pos" FROM "current_roster" WHERE "born"='1984' AND "height"='1.80';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_roster" ( "name" text, "pos" text, "height" text, "weight" text, "born" text );. Question: "What is the weight of the player with a height of 2.00m?". [/INST] SELECT "weight" FROM "current_roster" WHERE "height"='2.00';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which Round has a School/Club Team of arizona, and a Pick smaller than 298?". [/INST] SELECT MAX("round") FROM "nfl_draft" WHERE "school_club_team"='arizona' AND "pick"<298;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Who plays linebacker?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "position"='linebacker';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );. Question: "Which player's pick is 160?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "pick"=160;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "contestants" ( "members" text, "teammate" text, "couples_team" text, "status" text, "total_votes" text );. Question: "Who had 0 total votes in the purple team?". [/INST] SELECT "status" FROM "contestants" WHERE "total_votes"='0' AND "couples_team"='purple team';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "contestants" ( "members" text, "teammate" text, "couples_team" text, "status" text, "total_votes" text );. Question: "What were Holly Scouler's total votes?". [/INST] SELECT "total_votes" FROM "contestants" WHERE "members"='holly scouler';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "contestants" ( "members" text, "teammate" text, "couples_team" text, "status" text, "total_votes" text );. Question: "What was Holly Scouler's total votes". [/INST] SELECT "total_votes" FROM "contestants" WHERE "members"='holly scouler';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixed_focal_length_lenses" ( "brand" text, "product_name" text, "focal_length" text, "35mm_efl_and_equivalent_aperture" text, "max_aperture" text );. Question: "What is the maximum aperture of the lens(es) with a focal length of 20mm?". [/INST] SELECT "max_aperture" FROM "fixed_focal_length_lenses" WHERE "focal_length"='20mm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixed_focal_length_lenses" ( "brand" text, "product_name" text, "focal_length" text, "35mm_efl_and_equivalent_aperture" text, "max_aperture" text );. Question: "What is the 35mm EFL and the equivalent aperture of the lens(es) with a maximum aperture of f /2.5?". [/INST] SELECT "35mm_efl_and_equivalent_aperture" FROM "fixed_focal_length_lenses" WHERE "max_aperture"='f /2.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 "fixed_focal_length_lenses" ( "brand" text, "product_name" text, "focal_length" text, "35mm_efl_and_equivalent_aperture" text, "max_aperture" text );. Question: "What is the brand of the Sigma 30mm f2.8 DN, which has a maximum aperture of f /2.8 and a focal length of 30mm?". [/INST] SELECT "brand" FROM "fixed_focal_length_lenses" WHERE "max_aperture"='f /2.8' AND "focal_length"='30mm' AND "product_name"='sigma 30mm f2.8 dn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "What is the lowest rank for Andre Vonarburg, when the notes are FB?". [/INST] SELECT MIN("rank") FROM "semifinal_a_b_1" WHERE "notes"='fb' AND "athlete"='andre vonarburg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "Which athlete is from Norway?". [/INST] SELECT "athlete" FROM "semifinal_a_b_1" WHERE "country"='norway';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinal_4" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "What is listed in notes for the athlete, lassi karonen?". [/INST] SELECT "notes" FROM "quarterfinal_4" WHERE "athlete"='lassi karonen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinal_4" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "What is the highest rank for the team that raced a time of 6:50.40?". [/INST] SELECT MAX("rank") FROM "quarterfinal_4" WHERE "time"='6:50.40';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinal_4" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "What is the sum of the ranks for india?". [/INST] SELECT SUM("rank") FROM "quarterfinal_4" WHERE "country"='india';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "event" text, "performance" text, "nation" text, "place" text, "date" text );. Question: "Which nation ran a time of 9.69 seconds?". [/INST] SELECT "nation" FROM "men" WHERE "performance"='9.69';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "event" text, "performance" text, "nation" text, "place" text, "date" text );. Question: "What is the Place associated with Cuba?". [/INST] SELECT "place" FROM "men" WHERE "nation"='cuba';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "men" ( "event" text, "performance" text, "nation" text, "place" text, "date" text );. Question: "Which place had a performance of 19.30 seconds by Jamaica?". [/INST] SELECT "place" FROM "men" WHERE "nation"='jamaica' AND "performance"='19.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 "gdc_game_developers_choice_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What game was in 2005?". [/INST] SELECT "game" FROM "gdc_game_developers_choice_awards" WHERE "year"=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 "gdc_game_developers_choice_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What game was in 2001?". [/INST] SELECT "game" FROM "gdc_game_developers_choice_awards" WHERE "year"=2001;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gdc_game_developers_choice_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What game was in 2011?". [/INST] SELECT "game" FROM "gdc_game_developers_choice_awards" WHERE "year"=2011;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gdc_game_developers_choice_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What's the platform that has Rockstar Games as the developer?". [/INST] SELECT "platform_s" FROM "gdc_game_developers_choice_awards" WHERE "developer_s"='rockstar games';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gdc_game_developers_choice_awards" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text );. Question: "What's the genre of The Sims before 2002?". [/INST] SELECT "genre" FROM "gdc_game_developers_choice_awards" WHERE "year"<2002 AND "game"='the sims';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "belgium" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "What actor plays Marie-Rose De Putter?". [/INST] SELECT "actor" FROM "belgium" WHERE "character"='marie-rose de putter';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "belgium" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );. Question: "What character did Vicky Versavel play for 13 years?". [/INST] SELECT "character" FROM "belgium" WHERE "duration"='13 years' AND "actor"='vicky versavel';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "diesel_engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text );. Question: "What years did the sdrive16d model have a Torque of n·m (lb·ft)@1750-3000?". [/INST] SELECT "years" FROM "diesel_engines" WHERE "torque"='n·m (lb·ft)@1750-3000' AND "model"='sdrive16d';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "diesel_engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text );. Question: "What is the torque of the xdrive20d model, which has a power of ps (kw; hp)@4000?". [/INST] SELECT "torque" FROM "diesel_engines" WHERE "power"='ps (kw; hp)@4000' AND "model"='xdrive20d';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "diesel_engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text );. Question: "What is the engine code of the xdrive23d model?". [/INST] SELECT "engine_code" FROM "diesel_engines" WHERE "model"='xdrive23d';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "diesel_engines" ( "model" text, "years" text, "engine_code" text, "power" text, "torque" text );. Question: "What model is the n·m (lb·ft)@1500-2500 torque?". [/INST] SELECT "model" FROM "diesel_engines" WHERE "torque"='n·m (lb·ft)@1500-2500';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );. Question: "What school has a mascot of the spartans with an AAAA IHSAA class and more than 1,275 enrolled?". [/INST] SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaaa' AND "enrollment">'1,275' AND "mascot"='spartans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );. Question: "What's the IHSAA Football Class in Decatur with an AAA IHSAA class?". [/INST] SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "location"='decatur';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );. Question: "What's the enrollment for Kendallville?". [/INST] SELECT MAX("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "location"='kendallville';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_olympic_medals_stripped_and_late" ( "olympics" text, "name" text, "country" text, "medal" text, "event" text );. Question: "What country has a silver medal in the boxing, heavyweight event?". [/INST] SELECT "country" FROM "list_of_olympic_medals_stripped_and_late" WHERE "medal"='silver' AND "event"='boxing, heavyweight';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_olympic_medals_stripped_and_late" ( "olympics" text, "name" text, "country" text, "medal" text, "event" text );. Question: "What is the event in the 2000 summer olympics with a bronze medal?". [/INST] SELECT "event" FROM "list_of_olympic_medals_stripped_and_late" WHERE "medal"='bronze' AND "olympics"='2000 summer olympics';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_olympic_medals_stripped_and_late" ( "olympics" text, "name" text, "country" text, "medal" text, "event" text );. Question: "Which event is in the 1952 summer olympics?". [/INST] SELECT "event" FROM "list_of_olympic_medals_stripped_and_late" WHERE "olympics"='1952 summer olympics';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_olympic_medals_stripped_and_late" ( "olympics" text, "name" text, "country" text, "medal" text, "event" text );. Question: "Which country in the 2008 summer olympics is vadim devyatovskiy from?". [/INST] SELECT "country" FROM "list_of_olympic_medals_stripped_and_late" WHERE "olympics"='2008 summer olympics' AND "name"='vadim devyatovskiy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0?". [/INST] SELECT AVG("gold") FROM "medal_table" WHERE "nation"='netherlands' AND "bronze">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What Nation has a Gold entry that is greater than 0, a Total that is greater than 2, a Silver entry that is larger than 1, and 0 Bronze?". [/INST] SELECT "nation" FROM "medal_table" WHERE "gold">0 AND "total">2 AND "bronze"=0 AND "silver">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 "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?". [/INST] SELECT AVG("gold") FROM "medal_table" WHERE "bronze"<2 AND "nation"='turkey' AND "total">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 "2011_ladder" ( "hampden_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What were the losses when the byes were less than 0?". [/INST] SELECT MIN("losses") FROM "2011_ladder" WHERE "byes"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the play when the company is national theatre of greece?". [/INST] SELECT "play" FROM "references" WHERE "company"='national theatre of greece';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the company when the country is greece and the author is aeschylus?". [/INST] SELECT "company" FROM "references" WHERE "country"='greece' AND "author"='aeschylus';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the country when the base is ljubljana?". [/INST] SELECT "country" FROM "references" WHERE "base"='ljubljana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the base when the play is thesmophoriazusae?". [/INST] SELECT "base" FROM "references" WHERE "play"='thesmophoriazusae';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the company when the base is ljubljana?". [/INST] SELECT "company" FROM "references" WHERE "base"='ljubljana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "what is the play when the company is cyprus theatre organisation?". [/INST] SELECT "play" FROM "references" WHERE "company"='cyprus theatre organisation';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What was the highest rank for rowers who represented Denmark?". [/INST] SELECT MAX("rank") FROM "heat_2" WHERE "country"='denmark';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What was the time for the rowers representing great britain?". [/INST] SELECT "time" FROM "heat_2" WHERE "country"='great britain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text );. Question: "Which Arena has an Opponent of @ oilers, and a Date of may 25?". [/INST] SELECT "arena" FROM "postseason" WHERE "opponent"='@ oilers' AND "date"='may 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 "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text );. Question: "How much attendance has a Loss of roloson (11–5)?". [/INST] SELECT SUM("attendance") FROM "postseason" WHERE "loss"='roloson (11–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 "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text );. Question: "Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)?". [/INST] SELECT MAX("attendance") FROM "postseason" WHERE "arena"='arrowhead pond of anaheim' AND "loss"='giguere (3–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 "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text );. Question: "Which Attendance has an Opponent of @ oilers, and a Date of may 25?". [/INST] SELECT MAX("attendance") FROM "postseason" WHERE "opponent"='@ oilers' AND "date"='may 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 "postseason" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text, "arena" text );. Question: "What was the attendance on may 21?". [/INST] SELECT MAX("attendance") FROM "postseason" WHERE "date"='may 21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records_post_1977" ( "time" text, "wind" text, "athlete" text, "nationality" text, "location_of_race" text, "date" text );. Question: "Who's the athlete with a wind of 1.7 and from the United States?". [/INST] SELECT "athlete" FROM "records_post_1977" WHERE "nationality"='united states' AND "wind"='1.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 "records_post_1977" ( "time" text, "wind" text, "athlete" text, "nationality" text, "location_of_race" text, "date" text );. Question: "Who was the athlete with a wind of 1.8?". [/INST] SELECT "athlete" FROM "records_post_1977" WHERE "wind"='1.8';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "records_post_1977" ( "time" text, "wind" text, "athlete" text, "nationality" text, "location_of_race" text, "date" text );. Question: "What's the wind when the time was 19.32?". [/INST] SELECT "wind" FROM "records_post_1977" WHERE "time"='19.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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the highest total of Romania when the bronze was less than 2?". [/INST] SELECT MAX("total") FROM "medals_table" WHERE "nation"='romania' AND "bronze"<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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the total of rank number 6 with more than 2 silver?". [/INST] SELECT MAX("total") FROM "medals_table" WHERE "rank"='6' AND "silver">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 "global_desktop_stats_from_stat_counter_t" ( "date" text, "internet_explorer" text, "firefox" text, "safari" text, "opera" text );. Question: "What percentage of browsers were using Internet Explorer during the period in which 27.85% were using Firefox?". [/INST] SELECT "internet_explorer" FROM "global_desktop_stats_from_stat_counter_t" WHERE "firefox"='27.85%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_desktop_stats_from_stat_counter_t" ( "date" text, "internet_explorer" text, "firefox" text, "safari" text, "opera" text );. Question: "What percentage of browsers were using Internet Explorer in April 2009?". [/INST] SELECT "internet_explorer" FROM "global_desktop_stats_from_stat_counter_t" WHERE "date"='april 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 "global_desktop_stats_from_stat_counter_t" ( "date" text, "internet_explorer" text, "firefox" text, "safari" text, "opera" text );. Question: "What percentage of browsers were using Safari during the period in which 31.27% were using Firefox?". [/INST] SELECT "safari" FROM "global_desktop_stats_from_stat_counter_t" WHERE "firefox"='31.27%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_desktop_stats_from_stat_counter_t" ( "date" text, "internet_explorer" text, "firefox" text, "safari" text, "opera" text );. Question: "What percentage of browsers were using Opera in October 2010?". [/INST] SELECT "opera" FROM "global_desktop_stats_from_stat_counter_t" WHERE "date"='october 2010';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "global_desktop_stats_from_stat_counter_t" ( "date" text, "internet_explorer" text, "firefox" text, "safari" text, "opera" text );. Question: "What percentage of browsers were using Opera in November 2009?". [/INST] SELECT "opera" FROM "global_desktop_stats_from_stat_counter_t" WHERE "date"='november 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 "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What country has sa/b as the notes, and a time of 5:51.30?". [/INST] SELECT "country" FROM "heat_1" WHERE "notes"='sa/b' AND "time"='5:51.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 "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "Who were the rowers when notes were sa/b, with a time of 5:51.30?". [/INST] SELECT "rowers" FROM "heat_1" WHERE "notes"='sa/b' AND "time"='5:51.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 "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What country is ranked larger than 4?". [/INST] SELECT "country" FROM "heat_1" WHERE "rank">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 "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );. Question: "What's the least enrolled when the mascot was the Trojans?". [/INST] SELECT MIN("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "mascot"='trojans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text );. Question: "What's the IHSAA class of the Red Devils?". [/INST] SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='red devils';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance_history" ( "rank" real, "attendance" real, "opponent" text, "result" text, "date" text );. Question: "What's the rank when attendance was less than 18,073 and having Northwestern as an opponent?". [/INST] SELECT MAX("rank") FROM "attendance_history" WHERE "attendance"<'18,073' AND "opponent"='northwestern';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendance_history" ( "rank" real, "attendance" real, "opponent" text, "result" text, "date" text );. Question: "What's the rank for February 11, 2012 with less than 18,735 in attendance?". [/INST] SELECT AVG("rank") FROM "attendance_history" WHERE "date"='february 11, 2012' AND "attendance"<'18,735';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "contestants" ( "country" text, "contestant" text, "height_cm" real, "height_ft" text, "hometown" text );. Question: "What is Cynthia Mobumba's height?". [/INST] SELECT "height_ft" FROM "contestants" WHERE "contestant"='cynthia mobumba';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "contestants" ( "country" text, "contestant" text, "height_cm" real, "height_ft" text, "hometown" text );. Question: "What is the hometown of the player from Indonesia?". [/INST] SELECT "hometown" FROM "contestants" WHERE "country"='indonesia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "From what school was the player drafted in round 3?". [/INST] SELECT "school" FROM "nfl_draft" WHERE "round"=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 "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "From what school was the linebacker that had a pick less than 245 and was drafted in round 6?". [/INST] SELECT "school" FROM "nfl_draft" WHERE "position"='linebacker' AND "pick"<245 AND "round"=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 "second_conversion_period_1887_1910" ( "class" text, "railway_number_s" text, "quantity_rebuilt" real, "rebuildjahr_e" text, "type" text );. Question: "What is the type if quantity rebuilt is more than 2 and the railway number is 4"…150?". [/INST] SELECT "type" FROM "second_conversion_period_1887_1910" WHERE "quantity_rebuilt">2 AND "railway_number_s"='4\"…150';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_conversion_period_1887_1910" ( "class" text, "railway_number_s" text, "quantity_rebuilt" real, "rebuildjahr_e" text, "type" text );. Question: "What was the Rebuildjahr(e) for the T2AA class?". [/INST] SELECT "rebuildjahr_e" FROM "second_conversion_period_1887_1910" WHERE "class"='t2aa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_conversion_period_1887_1910" ( "class" text, "railway_number_s" text, "quantity_rebuilt" real, "rebuildjahr_e" text, "type" text );. Question: "What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118?". [/INST] SELECT COUNT("quantity_rebuilt") FROM "second_conversion_period_1887_1910" WHERE "type"='1b n2t' AND "railway_number_s"='88, 118';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What date was Chester the away team?". [/INST] SELECT "date" FROM "fifth_round_proper" WHERE "away_team"='chester';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What's the score when the Wolverhampton Wanderers played at home?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='wolverhampton wanderers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Who was the home team that played against Manchester United?". [/INST] SELECT "home_team" FROM "fifth_round_proper" WHERE "away_team"='manchester 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 "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What's the score when the tie number was 6?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='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 "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What's the score when the tie number was replay?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='replay';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "year" real, "program" text, "role" text, "episode" text, "first_aired" text );. Question: "What's the episode of Batman?". [/INST] SELECT "episode" FROM "television" WHERE "program"='batman';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "year" real, "program" text, "role" text, "episode" text, "first_aired" text );. Question: "What's the first aired date when Professor Hubert Whitehead was the role?". [/INST] SELECT "first_aired" FROM "television" WHERE "role"='professor hubert whitehead';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "year" real, "program" text, "role" text, "episode" text, "first_aired" text );. Question: "What's the first aired date of the Animated Series episode?". [/INST] SELECT "first_aired" FROM "television" WHERE "episode"='animated series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "television" ( "year" real, "program" text, "role" text, "episode" text, "first_aired" text );. Question: "What's the roles of the Bionic Woman?". [/INST] SELECT "role" FROM "television" WHERE "program"='the bionic woman';</s>