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 "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What is the name of the second who has Caroline Reed as third?". [/INST] SELECT "second" FROM "group_b2" WHERE "third"='caroline reed';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Which lead has Kirsty Balfour as second?". [/INST] SELECT "lead" FROM "group_b2" WHERE "skip"='kirsty balfour';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "What is the name of the third who has Barbora Vojtusova as Skip?". [/INST] SELECT "third" FROM "group_b2" WHERE "skip"='barbora vojtusova';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Who is the Second with Nikolina Petric as Third?". [/INST] SELECT "second" FROM "group_b2" WHERE "third"='nikolina petric';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Which Lead has Katarina Radonic as Skip?". [/INST] SELECT "lead" FROM "group_b2" WHERE "skip"='katarina radonic';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who manufactured the motorcycle that did 24 laps and 9 grids?". [/INST] SELECT "manufacturer" FROM "125cc_classification" WHERE "laps"=24 AND "grid"=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 "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many grids correspond to more than 24 laps?". [/INST] SELECT MAX("grid") FROM "125cc_classification" WHERE "laps">24;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the time with 10 grids?". [/INST] SELECT "time_retired" FROM "125cc_classification" WHERE "grid"=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 "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many grids have more than 24 laps with a time/retired of +1:12.208?". [/INST] SELECT SUM("grid") FROM "125cc_classification" WHERE "time_retired"='+1:12.208' AND "laps">24;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real );. Question: "What is the score from the winner Keith Clearwater (1)?". [/INST] SELECT "score" FROM "tournament_results" WHERE "winner"='keith clearwater (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 "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real );. Question: "What is the date where the winner was Tom Kite (10)?". [/INST] SELECT "date" FROM "tournament_results" WHERE "winner"='tom kite (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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "Which Week had a Date of december 4, 1960?". [/INST] SELECT "week" FROM "schedule" WHERE "date"='december 4, 1960';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which player has a last name of baron?". [/INST] SELECT "bats" FROM "player_roster" WHERE "surname"='baron';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which batter has a uni# of 31?". [/INST] SELECT "bats" FROM "player_roster" WHERE "uninum"=31;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text );. Question: "Which batter has the last name Graham?". [/INST] SELECT "bats" FROM "player_roster" WHERE "surname"='graham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Home has a Date of april 1?". [/INST] SELECT "home" FROM "game_log" WHERE "date"='april 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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Home has a Record of 16–17–6?". [/INST] SELECT "home" FROM "game_log" WHERE "record"='16–17–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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Date has a Score of 2–7, and a Record of 5–8–2?". [/INST] SELECT "date" FROM "game_log" WHERE "score"='2–7' AND "record"='5–8–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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Record has a Score of 2–4, and a Home of quebec nordiques?". [/INST] SELECT "record" FROM "game_log" WHERE "score"='2–4' AND "home"='quebec nordiques';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Record has a Home of edmonton oilers, and a Score of 3–6?". [/INST] SELECT "record" FROM "game_log" WHERE "home"='edmonton oilers' AND "score"='3–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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Home has a Record of 11–14–4?". [/INST] SELECT "home" FROM "game_log" WHERE "record"='11–14–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 "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "What is the series episode number with a segment of D, and having fluorescent tubes?". [/INST] SELECT "series_ep" FROM "season_1_2001" WHERE "segment_d"='fluorescent tubes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "What is the Netflix number having a series episode of 1-01?". [/INST] SELECT "netflix" FROM "season_1_2001" WHERE "series_ep"='1-01';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "What is the Netflix number having a segment D, of NED can corn?". [/INST] SELECT "netflix" FROM "season_1_2001" WHERE "segment_d"='ned can corn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "What is the segment A name, having a Netflix of s01e12?". [/INST] SELECT "segment_a" FROM "season_1_2001" WHERE "netflix"='s01e12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "What is the Netflix number having a segment of C of pills?". [/INST] SELECT "netflix" FROM "season_1_2001" WHERE "segment_c"='pills';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "For a segment D of pasta, what is the segment B?". [/INST] SELECT "segment_b" FROM "season_1_2001" WHERE "segment_d"='pasta';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summer_olympics" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "Which sport resulted in a gold medal in the 2000 Sydney games?". [/INST] SELECT "sport" FROM "summer_olympics" WHERE "medal"='gold' AND "games"='2000 sydney';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summer_olympics" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "Which wrestling event was at the 2008 Beijing games?". [/INST] SELECT "event" FROM "summer_olympics" WHERE "sport"='wrestling' AND "games"='2008 beijing';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summer_olympics" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );. Question: "What wrestling event was participated in during the 2008 Beijing games?". [/INST] SELECT "event" FROM "summer_olympics" WHERE "games"='2008 beijing' AND "sport"='wrestling';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "after december 29 what is the score?". [/INST] SELECT "score" FROM "regular_season" WHERE "december">29;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "queensland" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "exhibition" text );. Question: "Wjat game 3 has ian french as a game of 2?". [/INST] SELECT "game_3" FROM "queensland" WHERE "game_2"='ian french';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "queensland" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "exhibition" text );. Question: "What game 1 has halfback as a position?". [/INST] SELECT "game_1" FROM "queensland" WHERE "position"='halfback';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "queensland" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "exhibition" text );. Question: "What position has colin scott as game 1?". [/INST] SELECT "position" FROM "queensland" WHERE "game_1"='colin scott';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "queensland" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "exhibition" text );. Question: "What exhibition has greg conescu as game 1?". [/INST] SELECT "exhibition" FROM "queensland" WHERE "game_1"='greg conescu';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "queensland" ( "position" text, "game_1" text, "game_2" text, "game_3" text, "exhibition" text );. Question: "What game 1 has bob lindner as game 2?". [/INST] SELECT "game_1" FROM "queensland" WHERE "game_2"='bob lindner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "player_selections" ( "year" real, "pick" real, "player_name" text, "position" text, "college" text );. Question: "What pick was mario williams before 2006?". [/INST] SELECT SUM("pick") FROM "player_selections" WHERE "player_name"='mario williams' AND "year"<2006;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1230_1357" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text );. Question: "What is the entered office that has 1337 as the left office?". [/INST] SELECT "entered_office" FROM "1230_1357" WHERE "left_office"='1337';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1230_1357" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text );. Question: "What is the born-died that has office of 13 September 1229 as the entered?". [/INST] SELECT "born_died" FROM "1230_1357" WHERE "entered_office"='13 september 1229';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Blagojevich (D) has a Source of zogby/wsj, and a Topinka (R) of 33.2%?". [/INST] SELECT "blagojevich_d" FROM "polling" WHERE "source"='zogby/wsj' AND "topinka_r"='33.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 "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Blagojevich (D) has a Source of zogby/wsj, and a Date of october 16, 2006?". [/INST] SELECT "blagojevich_d" FROM "polling" WHERE "source"='zogby/wsj' AND "date"='october 16, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Blagojevich (D) happened on october 16, 2006?". [/INST] SELECT "blagojevich_d" FROM "polling" WHERE "date"='october 16, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Topinka happened on january 22, 2006?". [/INST] SELECT "topinka_r" FROM "polling" WHERE "date"='january 22, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Date has a Remainder of 20%?". [/INST] SELECT "date" FROM "polling" WHERE "remainder"='20%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "date" text, "blagojevich_d" text, "topinka_r" text, "remainder" text );. Question: "Which Source has a Remainder of 15%, and a Topinka of 26%?". [/INST] SELECT "source" FROM "polling" WHERE "remainder"='15%' AND "topinka_r"='26%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_finalists" ( "season" text, "season_premiere" text, "season_finale" text, "winner" text, "runner_up" text, "number_of_contestants" real, "winner_s_country" text, "runner_up_s_country" text );. Question: "How many contestants were there on March 1, 2009 during the season premiere?". [/INST] SELECT SUM("number_of_contestants") FROM "semi_finalists" WHERE "season_premiere"='march 1, 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 "semi_finalists" ( "season" text, "season_premiere" text, "season_finale" text, "winner" text, "runner_up" text, "number_of_contestants" real, "winner_s_country" text, "runner_up_s_country" text );. Question: "What season had more than 12 contestants in which greydis gil won?". [/INST] SELECT "season" FROM "semi_finalists" WHERE "number_of_contestants">12 AND "winner"='greydis gil';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_finalists" ( "season" text, "season_premiere" text, "season_finale" text, "winner" text, "runner_up" text, "number_of_contestants" real, "winner_s_country" text, "runner_up_s_country" text );. Question: "How many contestants were there in a season where alejandra espinoza won?". [/INST] SELECT COUNT("number_of_contestants") FROM "semi_finalists" WHERE "winner"='alejandra espinoza';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_finalists" ( "season" text, "season_premiere" text, "season_finale" text, "winner" text, "runner_up" text, "number_of_contestants" real, "winner_s_country" text, "runner_up_s_country" text );. Question: "What season's premiere had puerto rico winning on May 20, 2012?". [/INST] SELECT "season_premiere" FROM "semi_finalists" WHERE "winner_s_country"='puerto rico' AND "season_finale"='may 20, 2012';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_finalists" ( "season" text, "season_premiere" text, "season_finale" text, "winner" text, "runner_up" text, "number_of_contestants" real, "winner_s_country" text, "runner_up_s_country" text );. Question: "What season had mexico as the runner up with melissa marty winning?". [/INST] SELECT "season" FROM "semi_finalists" WHERE "runner_up_s_country"='mexico' AND "winner"='melissa marty';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Record description of maximum load to m (ft), and a Date of 23 september 1961 is what pilot?". [/INST] SELECT "pilot" FROM "world_records" WHERE "record_description"='maximum load to m (ft)' AND "date"='23 september 1961';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Date of 23 september 1961, and a Pilot of b.v. zemskov had what record description?". [/INST] SELECT "record_description" FROM "world_records" WHERE "date"='23 september 1961' AND "pilot"='b.v. zemskov';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Type of mi-10r, and a Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov is what date?". [/INST] SELECT "date" FROM "world_records" WHERE "type"='mi-10r' AND "record_description"='altitude with kg (lb) payload' AND "pilot"='g.v. 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 "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov had what type?". [/INST] SELECT "type" FROM "world_records" WHERE "record_description"='altitude with kg (lb) payload' AND "pilot"='g.v. 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 "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Pilot of g.v. alfyorov, and a Record description of altitude with kg (lb) payload, and a Type of mi-10 involved what date?". [/INST] SELECT "date" FROM "world_records" WHERE "pilot"='g.v. alfyorov' AND "record_description"='altitude with kg (lb) payload' AND "type"='mi-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 "world_records" ( "date" text, "type" text, "record_description" text, "achievement" text, "pilot" text );. Question: "Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?". [/INST] SELECT "record_description" FROM "world_records" WHERE "achievement"='m (ft)' AND "type"='mi-10r' AND "pilot"='v.p. koloshenko' AND "date"='28 may 1965';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_stuart_1603_1707" ( "name" text, "birth" text, "marriage" text, "became_consort" text, "coronation" text, "ceased_to_be_consort" text, "death" text, "spouse" text );. Question: "When was the date of death for the person married to Charles II?". [/INST] SELECT "death" FROM "house_of_stuart_1603_1707" WHERE "spouse"='charles ii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_stuart_1603_1707" ( "name" text, "birth" text, "marriage" text, "became_consort" text, "coronation" text, "ceased_to_be_consort" text, "death" text, "spouse" text );. Question: "On what date did James II take a consort?". [/INST] SELECT "became_consort" FROM "house_of_stuart_1603_1707" WHERE "spouse"='james ii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_29_northwestern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the total number of field goals a player had when there were more than 0 extra points and there were 5 touchdowns?". [/INST] SELECT COUNT("field_goals") FROM "michigan_29_northwestern_0" WHERE "extra_points">0 AND "touchdowns"=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 "michigan_29_northwestern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the sum of all the touchdowns when the player had more than 0 extra points and less than 0 field goals?". [/INST] SELECT SUM("touchdowns") FROM "michigan_29_northwestern_0" WHERE "extra_points">0 AND "field_goals"<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 "michigan_29_northwestern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the total number of field goals for a player that had less than 3 touchdowns, had 4 points, and had less than 4 extra points?". [/INST] SELECT COUNT("field_goals") FROM "michigan_29_northwestern_0" WHERE "touchdowns"<3 AND "points"=4 AND "extra_points"<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 "2011_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the lowest number of draws of the NTFA Div 2 Lilydale?". [/INST] SELECT MIN("draws") FROM "2011_ladder" WHERE "ntfa_div_2"='lilydale';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the lowest number of draws of the team with 9 wins and less than 0 byes?". [/INST] SELECT MIN("draws") FROM "2011_ladder" WHERE "wins"=9 AND "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 "2011_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the lowest number of against of NTFA Div 2 Fingal Valley?". [/INST] SELECT MIN("against") FROM "2011_ladder" WHERE "ntfa_div_2"='fingal valley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "island_s_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text );. Question: "What is the highest rank for Nelson Island with area more than 2,183?". [/INST] SELECT MAX("rank") FROM "islands_over_square_miles_km" WHERE "island_s_name"='nelson island' AND "area_km_2">'2,183';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "island_s_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text );. Question: "What is the largest rank with 2,080 area?". [/INST] SELECT MAX("rank") FROM "islands_over_square_miles_km" WHERE "area_sqmi"='2,080';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "islands_over_square_miles_km" ( "rank" real, "island_s_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text );. Question: "What is the largest area in Alaska with a population of 39 and rank over 19?". [/INST] SELECT MAX("area_km_2") FROM "islands_over_square_miles_km" WHERE "location"='alaska' AND "population_2000"='39' AND "rank">19;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real );. Question: "How many events have earnings less than 1,030,717?". [/INST] SELECT COUNT("events") FROM "leaders" WHERE "earnings"<'1,030,717';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real );. Question: "How many events are in South Africa?". [/INST] SELECT SUM("events") FROM "leaders" WHERE "country"='south africa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "On what date was game 2 played?". [/INST] SELECT "date" FROM "nba_finals" WHERE "game"='game 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which game had Philadelphia as its home team and was played on April 23?". [/INST] SELECT "game" FROM "nba_finals" WHERE "home_team"='philadelphia' AND "date"='april 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which games had Philadelphia as home team?". [/INST] SELECT "game" FROM "nba_finals" WHERE "home_team"='philadelphia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "What was the result of the game played on April 16 with Philadelphia as home team?". [/INST] SELECT "result" FROM "nba_finals" WHERE "home_team"='philadelphia' AND "date"='april 16';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "What was the result of the April 16 game?". [/INST] SELECT "result" FROM "nba_finals" WHERE "date"='april 16';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which game had a result of 126-95?". [/INST] SELECT "game" FROM "nba_finals" WHERE "result"='126-95';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Services have a Local authority of chiltern, and a Zone 2010 of 9?". [/INST] SELECT "services" FROM "list_of_stations" WHERE "local_authority"='chiltern' AND "zone_2010"='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 "list_of_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Station has a Zone 2010 of 7?". [/INST] SELECT "station" FROM "list_of_stations" WHERE "zone_2010"='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 "list_of_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Local authority has a Zone 2007 of outside zones, and a Zone 2008 of outside zones, and a Zone 2010 of outside zones, and a Station of waltham cross?". [/INST] SELECT "local_authority" FROM "list_of_stations" WHERE "zone_2007"='outside zones' AND "zone_2008"='outside zones' AND "zone_2010"='outside zones' AND "station"='waltham cross';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Local authority has Services of greater anglia?". [/INST] SELECT "local_authority" FROM "list_of_stations" WHERE "services"='greater anglia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Station has a Zone 2008 of 8, and a Zone 2007 of outside zones, and Services of london overground?". [/INST] SELECT "station" FROM "list_of_stations" WHERE "zone_2008"='8' AND "zone_2007"='outside zones' AND "services"='london overground';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_stations" ( "station" text, "services" text, "local_authority" text, "zone_2007" text, "zone_2008" text, "zone_2010" text, "zone_2013" text );. Question: "Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?". [/INST] SELECT "zone_2008" FROM "list_of_stations" WHERE "services"='greater anglia' AND "station"='cheshunt';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "turf" text, "total" real, "games" real, "average" real, "pct_of_capacity" real );. Question: "What was the total attendance of aalesund which had a capacity with more than 96.14%?". [/INST] SELECT MAX("total") FROM "attendances" WHERE "team"='aalesund' AND "pct_of_capacity">96.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 "michigan_65_ohio_normal_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback?". [/INST] SELECT "touchdowns" FROM "michigan_65_ohio_normal_0" WHERE "extra_points"=0 AND "position"='left halfback' AND "player"='hal weeks';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_65_ohio_normal_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "How many field goals did duncan thompson have?". [/INST] SELECT "field_goals" FROM "michigan_65_ohio_normal_0" WHERE "player"='duncan thompson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "michigan_65_ohio_normal_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the highest field goals when there were more than 1 touchdown and 0 extra points?". [/INST] SELECT MAX("field_goals") FROM "michigan_65_ohio_normal_0" WHERE "touchdowns">1 AND "extra_points">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 "michigan_65_ohio_normal_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "What is the lowest number of field goals when the points were less than 5?". [/INST] SELECT MIN("field_goals") FROM "michigan_65_ohio_normal_0" WHERE "points"<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 "full_power_stations" ( "station" text, "city_of_license" text, "channels" text, "first_air_date" text, "call_letters_meaning" text, "haat" text, "facility_id" real );. Question: "what is the HAAT of devils lake". [/INST] SELECT "haat" FROM "full_power_stations" WHERE "city_of_license"='devils lake';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "route_and_stages" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );. Question: "What was the date with a winner of km (mi)?". [/INST] SELECT "date" FROM "route_and_stages" WHERE "winner"='km (mi)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the highest ERP W of an 89.1 frequency translator?". [/INST] SELECT MAX("erp_w") FROM "translators" WHERE "frequency_m_hz"=89.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the class of the translator with 10 ERP W and a call sign of w273bl?". [/INST] SELECT "class" FROM "translators" WHERE "erp_w"=10 AND "call_sign"='w273bl';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the FCC info of the translator with an Irmo, South Carolina city license?". [/INST] SELECT "fcc_info" FROM "translators" WHERE "city_of_license"='irmo, south carolina';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the call sign of the translator in Spring Valley, Nevada?". [/INST] SELECT "call_sign" FROM "translators" WHERE "city_of_license"='spring valley, nevada';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the call sign of the translator with an ERP W greater than 38 and a city license from Great Falls, Montana?". [/INST] SELECT "call_sign" FROM "translators" WHERE "erp_w">38 AND "city_of_license"='great falls, montana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wxlg" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the ERP W for frequency of 92.7". [/INST] SELECT "erp_w" FROM "broadcast_translators_of_wxlg" WHERE "frequency_m_hz"=92.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 "broadcast_translators_of_wxlg" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the ERP W for glens falls, new york". [/INST] SELECT "erp_w" FROM "broadcast_translators_of_wxlg" WHERE "city_of_license"='glens falls, new york';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wxlg" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the FCC info for frequency Mhz less than 97.3 and call sign of w237br". [/INST] SELECT "fcc_info" FROM "broadcast_translators_of_wxlg" WHERE "frequency_m_hz"<97.3 AND "call_sign"='w237br';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wxlg" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "Name the average ERP W and call sign of w237br". [/INST] SELECT AVG("erp_w") FROM "broadcast_translators_of_wxlg" WHERE "call_sign"='w237br';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "january" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Score has Points of 64, and a Game of 49?". [/INST] SELECT "score" FROM "game_log" WHERE "points"=64 AND "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, "january" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "Which Points have a Score of 4–1, and a Record of 18–10–8–1, and a January larger than 2?". [/INST] SELECT AVG("points") FROM "game_log" WHERE "score"='4–1' AND "record"='18–10–8–1' AND "january">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 "game_log" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );. Question: "How many Points have a January of 18?". [/INST] SELECT COUNT("points") FROM "game_log" WHERE "january"=18;</s>