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 "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "The common of Chieri has what population density?". [/INST] SELECT "density_inhabitants_km_2" FROM "see_also" WHERE "common_of"='Chieri';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_ten" ( "rank" real, "country" text, "overall" text, "justice" text, "health" text, "education" text, "economics" text, "politics" text );. Question: "what's the economics score with education being 92.0". [/INST] SELECT "economics" FROM "top_ten" WHERE "education"='92.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 "top_ten" ( "rank" real, "country" text, "overall" text, "justice" text, "health" text, "education" text, "economics" text, "politics" text );. Question: "what's the health score with justice being 80.7". [/INST] SELECT "health" FROM "top_ten" WHERE "justice"='80.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 "top_ten" ( "rank" real, "country" text, "overall" text, "justice" text, "health" text, "education" text, "economics" text, "politics" text );. Question: "what's the rank for iceland". [/INST] SELECT "rank" FROM "top_ten" WHERE "country"='Iceland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_ten" ( "rank" real, "country" text, "overall" text, "justice" text, "health" text, "education" text, "economics" text, "politics" text );. Question: "what's the country with health being 91.4". [/INST] SELECT "country" FROM "top_ten" WHERE "health"='91.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 "top_ten" ( "rank" real, "country" text, "overall" text, "justice" text, "health" text, "education" text, "economics" text, "politics" text );. Question: "what's the economics score with justice being 90.8". [/INST] SELECT "economics" FROM "top_ten" WHERE "justice"='90.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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "On October 17, 1937 what was maximum number or attendants.". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "date"='October 17, 1937';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "game_site" text, "record" text, "attendance" real );. Question: "In week 9 who were the opponent? ". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What are week 4 results? ". [/INST] SELECT "result" FROM "schedule" WHERE "week"=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 "alabama" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real );. Question: "How many players were 6'1" and from Columbia, South Carolina?". [/INST] SELECT COUNT("position") FROM "alabama" WHERE "height"='6''1\"' AND "hometown"='Columbia, 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 "alabama" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real );. Question: "What was Trevard Lindley's number?". [/INST] SELECT MAX("number") FROM "alabama" WHERE "name"='Trevard Lindley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the player for chicago black hawks". [/INST] SELECT "player" FROM "round_eight" WHERE "nhl_team"='Chicago Black Hawks';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the position for pick number 128". [/INST] SELECT "position" FROM "round_eight" WHERE "pick_num"=128;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the college/junior/club team for left wing". [/INST] SELECT "college_junior_club_team" FROM "round_eight" WHERE "position"='Left Wing';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weekdays" ( "cardinal_direction" text, "burmese" text, "sanskrit" text, "english" text, "planet" text, "sign" text );. Question: "What is the Burmese term for Thursday?". [/INST] SELECT "burmese" FROM "weekdays" WHERE "english"='Thursday';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weekdays" ( "cardinal_direction" text, "burmese" text, "sanskrit" text, "english" text, "planet" text, "sign" text );. Question: "What is the cardinal direction associated with Venus?". [/INST] SELECT "cardinal_direction" FROM "weekdays" WHERE "planet"='Venus';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weekdays" ( "cardinal_direction" text, "burmese" text, "sanskrit" text, "english" text, "planet" text, "sign" text );. Question: "What is the Burmese term associated with a cardinal direction of west?". [/INST] SELECT "burmese" FROM "weekdays" WHERE "cardinal_direction"='West';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weekdays" ( "cardinal_direction" text, "burmese" text, "sanskrit" text, "english" text, "planet" text, "sign" text );. Question: "What is the planet associated with the direction of south?". [/INST] SELECT "planet" FROM "weekdays" WHERE "cardinal_direction"='South';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "What is the value scored when there were 19 points for the team 3 de Febrero?". [/INST] SELECT MAX("scored") FROM "torneo_clausura" WHERE "points"=19 AND "team"='3 de Febrero';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );. Question: "What was the number of losses when the scored value was 25?". [/INST] SELECT MAX("losses") FROM "torneo_clausura" WHERE "scored"=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 "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What were all Yachts with a sail number of 6952?". [/INST] SELECT "yacht" FROM "handicap_results_top_10" WHERE "sail_number"='6952';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "How many yachts had a position of 3?". [/INST] SELECT COUNT("yacht") FROM "handicap_results_top_10" WHERE "position"=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 "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What are all of the states or countries with a corrected time 3:13:40:05?". [/INST] SELECT "state_country" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='3:13:40:05';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "Who were all of the skippers with a corrected time of 3:15:07:27?". [/INST] SELECT "skipper" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='3:15:07: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 "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What are all sail numbers for the yacht Yendys?". [/INST] SELECT "sail_number" FROM "handicap_results_top_10" WHERE "yacht"='Yendys';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "Who is the courtside reporter for the year 2009-10?". [/INST] SELECT "courtside_reporter" FROM "2000s" WHERE "year"='2009-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 "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "Who is the studio host for the year 2006-07?". [/INST] SELECT "studio_host" FROM "2000s" WHERE "year"='2006-07';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "Who are the studio analysts for the year 2008-09?". [/INST] SELECT "studio_analysts" FROM "2000s" WHERE "year"='2008-09';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2000s" ( "year" text, "channel" text, "play_by_play" text, "color_commentator_s" text, "courtside_reporter" text, "studio_host" text, "studio_analysts" text );. Question: "How many channels were the games shown on in 2001-02?". [/INST] SELECT COUNT("channel") FROM "2000s" WHERE "year"='2001-02';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "What is the current venue for the Miami Masters tournament?". [/INST] SELECT "current_venue" FROM "tournaments" WHERE "tournament"='Miami Masters';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "Rome is in which country?". [/INST] SELECT "country" FROM "tournaments" WHERE "location"='Rome';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "How many tournaments have their current venue as the Lindner Family Tennis Center?". [/INST] SELECT COUNT("tournament") FROM "tournaments" WHERE "current_venue"='Lindner Family Tennis Center';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "What year was the tournament first held in Italy?". [/INST] SELECT MIN("began") FROM "tournaments" WHERE "country"='Italy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "Which current venues location is Mason, Ohio?". [/INST] SELECT "current_venue" FROM "tournaments" WHERE "location"='Mason, Ohio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tournaments" ( "tournament" text, "country" text, "location" text, "current_venue" text, "began" real, "court_surface" text );. Question: "Which tournaments current venue is the Madrid Arena?". [/INST] SELECT "tournament" FROM "tournaments" WHERE "current_venue"='Madrid Arena';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_14903841_1" ( "year" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "What are all values for Womens Doubles in the year 2000/2001?". [/INST] SELECT "womens_doubles" FROM "table1_14903841_1" WHERE "year"='2000/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 "table1_14903841_1" ( "year" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "Who are all the womens doubles for the year 2008/2009?". [/INST] SELECT "womens_doubles" FROM "table1_14903841_1" WHERE "year"='2008/2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_14903841_1" ( "year" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "Who were all womens doubles for the year 2000/2001?". [/INST] SELECT "womens_doubles" FROM "table1_14903841_1" WHERE "year"='2000/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 "table1_14929574_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Which episode number drew in 3.84 million viewers in the U.S.?". [/INST] SELECT MAX("series_num") FROM "table1_14929574_3" WHERE "u_s_viewers_million"='3.84';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_14929574_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many viewers did the episode directed by David Nutter draw in?". [/INST] SELECT "u_s_viewers_million" FROM "table1_14929574_3" WHERE "directed_by"='David Nutter';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_14929574_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Which episode number drew in 3.35 million viewers in the United States?". [/INST] SELECT COUNT("series_num") FROM "table1_14929574_3" WHERE "u_s_viewers_million"='3.35';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_14929574_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Which episode number was directed by Bill Eagles?". [/INST] SELECT MIN("series_num") FROM "table1_14929574_3" WHERE "directed_by"='Bill Eagles';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "How many masters fought using a boxing style?". [/INST] SELECT COUNT("masters") FROM "season_1" WHERE "martial_art_style"='Boxing';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "How many times did episode 1.8 air?". [/INST] SELECT COUNT("original_airdate") FROM "season_1" WHERE "episode_num"='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 "season_1" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "Which masters fought in hapkido style?". [/INST] SELECT "masters" FROM "season_1" WHERE "martial_art_style"='Hapkido';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "When did the episode featuring a master using Brazilian jiu-jitsu air?". [/INST] SELECT "original_airdate" FROM "season_1" WHERE "martial_art_style"='Brazilian Jiu-Jitsu';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "In which country is the city of Netanya?". [/INST] SELECT "country" FROM "season_1" WHERE "city"='Netanya';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "episode_num" text, "country" text, "city" text, "martial_art_style" text, "masters" text, "original_airdate" text );. Question: "Which martial arts style was shown in Rio de Janeiro?". [/INST] SELECT "martial_art_style" FROM "season_1" WHERE "city"='Rio de Janeiro';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text, "game_site" text, "attendance" real );. Question: "When 74804 is the attendance what week is it?". [/INST] SELECT "week" FROM "schedule" WHERE "attendance"=74804;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text, "game_site" text, "attendance" real );. Question: "When it is October 25, 1981 who is the opponent?". [/INST] SELECT "opponent" FROM "schedule" WHERE "date"='October 25, 1981';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "record" text, "game_site" text, "attendance" real );. Question: "When it is week 2 what is the record?". [/INST] SELECT "record" FROM "schedule" WHERE "week"=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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );. Question: "When it is October 18, 1981 where is the game site?". [/INST] SELECT "game_site" FROM "schedule" WHERE "date"='October 18, 1981';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "income_distribution_across_age_bands" ( "age_band" text, "median_income" text, "mean_income" text, "median_income_men" text, "mean_income_men" text, "median_income_women" text, "mean_income_women" text );. Question: "Name the median income for age band being under 20". [/INST] SELECT "median_income" FROM "income_distribution_across_age_bands" WHERE "age_band"='Under 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 "table1_1498589_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text );. Question: "How many episodes in history have a running time of 24:06?". [/INST] SELECT COUNT("archive") FROM "table1_1498589_1" WHERE "run_time"='24:06';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1499774_5" ( "english_gloss" text, "santee_sisseton" text, "yankton_yanktonai" text, "northern_lakota" text, "southern_lakota" text );. Question: "Name the southern lakota for híŋhaŋna". [/INST] SELECT "southern_lakota" FROM "table1_1499774_5" WHERE "yankton_yanktonai"='híŋhaŋna';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1499774_5" ( "english_gloss" text, "santee_sisseton" text, "yankton_yanktonai" text, "northern_lakota" text, "southern_lakota" text );. Question: "Name the santee sisseton for wičháša". [/INST] SELECT "santee_sisseton" FROM "table1_1499774_5" WHERE "yankton_yanktonai"='wičháša';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1499774_5" ( "english_gloss" text, "santee_sisseton" text, "yankton_yanktonai" text, "northern_lakota" text, "southern_lakota" text );. Question: "Name the english gloss for haŋȟ’áŋna". [/INST] SELECT "english_gloss" FROM "table1_1499774_5" WHERE "santee_sisseton"='haŋȟ’áŋna';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1499774_5" ( "english_gloss" text, "santee_sisseton" text, "yankton_yanktonai" text, "northern_lakota" text, "southern_lakota" text );. Question: "Name the number of english gloss for wakȟáŋyeža". [/INST] SELECT COUNT("english_gloss") FROM "table1_1499774_5" WHERE "northern_lakota"='wakȟáŋyeža';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "What was the first year of the Lithuanian National Badminton Championships?". [/INST] SELECT MIN("year") FROM "past_winners";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "How many years did aivaras kvedarauskas juozas spelveris participate in the men's doubles?". [/INST] SELECT COUNT("year") FROM "past_winners" WHERE "mens_doubles"='Aivaras Kvedarauskas Juozas Spelveris';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "In 2004, where the womens singles is daniela kressig who is the mens singles". [/INST] SELECT "mens_singles" FROM "past_winners" WHERE "womens_singles"='Daniela Kressig';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "What is the most current year where the women's doubles champions are astrid eidenbenz claudia jehle". [/INST] SELECT MAX("year") FROM "past_winners" WHERE "womens_doubles"='Astrid Eidenbenz Claudia Jehle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "In the year 2006, the womens singles had no competition and the mens doubles were roland hilti kilian pfister, what were the womens doubles". [/INST] SELECT "womens_doubles" FROM "past_winners" WHERE "womens_singles"='no competition' AND "mens_doubles"='Roland Hilti Kilian Pfister' 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 "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "In 2001, where the mens singles is armand jehle and the womens singles is michaela ritter, who are the mixed doubles". [/INST] SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Michaela Ritter' AND "mens_singles"='Armand Jehle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );. Question: "In 1987 who was the mens singles". [/INST] SELECT "mens_singles" FROM "past_winners" WHERE "year"=1987;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "scientific_linux_release" text, "architectures" text, "rhel_base" text, "scientific_linux_release_date" text, "rhel_release_date" text, "delay" text );. Question: "When is the rhel release date when scientific linux release is 3.0.4". [/INST] SELECT "rhel_release_date" FROM "release_history" WHERE "scientific_linux_release"='3.0.4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "scientific_linux_release" text, "architectures" text, "rhel_base" text, "scientific_linux_release_date" text, "rhel_release_date" text, "delay" text );. Question: "Name the delay when scientific linux release is 5.10". [/INST] SELECT "delay" FROM "release_history" WHERE "scientific_linux_release"='5.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 "release_history" ( "scientific_linux_release" text, "architectures" text, "rhel_base" text, "scientific_linux_release_date" text, "rhel_release_date" text, "delay" text );. Question: "Name the scientific linux release when delay is 28d". [/INST] SELECT "scientific_linux_release" FROM "release_history" WHERE "delay"='28d';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country_territory" text, "miss_world" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "5th_runner_up" real, "6th_runner_up" real, "semifinalists" real, "total" real );. Question: "What is the United States rank?". [/INST] SELECT COUNT("rank") FROM "top_20_countries_by_tally" WHERE "country_territory"='United States';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country_territory" text, "miss_world" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "5th_runner_up" real, "6th_runner_up" real, "semifinalists" real, "total" real );. Question: "What is Venezuela's total rank?". [/INST] SELECT "total" FROM "top_20_countries_by_tally" WHERE "country_territory"='Venezuela';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country_territory" text, "miss_world" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "5th_runner_up" real, "6th_runner_up" real, "semifinalists" real, "total" real );. Question: "What is Iceland's total?". [/INST] SELECT COUNT("total") FROM "top_20_countries_by_tally" WHERE "country_territory"='Iceland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country_territory" text, "miss_world" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "5th_runner_up" real, "6th_runner_up" real, "semifinalists" real, "total" real );. Question: "Which countries have a 5th runner-up ranking is 2 and the 3rd runner-up ranking is 0". [/INST] SELECT "total" FROM "top_20_countries_by_tally" WHERE "5th_runner_up"=2 AND "3rd_runner_up"=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 "scoring_records_to_par" ( "date" text, "tournament" text, "player" text, "country" text, "rounds" text, "score" real, "to_par" text, "finish" text );. Question: "What is the worst (highest) score?". [/INST] SELECT MAX("score") FROM "scoring_records_to_par";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_records_to_par" ( "date" text, "tournament" text, "player" text, "country" text, "rounds" text, "score" real, "to_par" text, "finish" text );. Question: "What days were the rounds of 66-67-70-67 recorded?". [/INST] SELECT "date" FROM "scoring_records_to_par" WHERE "rounds"='66-67-70-67';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_records_to_par" ( "date" text, "tournament" text, "player" text, "country" text, "rounds" text, "score" real, "to_par" text, "finish" text );. Question: "What country hosts the tournament the open championship?". [/INST] SELECT "country" FROM "scoring_records_to_par" WHERE "tournament"='The Open Championship';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_records_to_par" ( "date" text, "tournament" text, "player" text, "country" text, "rounds" text, "score" real, "to_par" text, "finish" text );. Question: "What is the worst (highest) score?". [/INST] SELECT MAX("score") FROM "scoring_records_to_par";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_records_to_par" ( "date" text, "tournament" text, "player" text, "country" text, "rounds" text, "score" real, "to_par" text, "finish" text );. Question: "What players finished 2nd?". [/INST] SELECT "player" FROM "scoring_records_to_par" WHERE "finish"='2nd';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_11" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_up" text );. Question: "WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2?". [/INST] SELECT "year" FROM "wins_11" WHERE "winning_score"='3 & 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 "wins_11" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_up" text );. Question: "HOW MANY YEARS WAS IT FOR THE SCORE (76-73-79-72=300)?". [/INST] SELECT COUNT("year") FROM "wins_11" WHERE "winning_score"='(76-73-79-72=300)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_11" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_up" text );. Question: "WHAT WAS THE YEAR WHEN THE RUNNER-UP WAS WILLIAM MEHLHORN?". [/INST] SELECT MAX("year") FROM "wins_11" WHERE "runner_up"='William Mehlhorn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_11" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_up" text );. Question: "WHAT YEAR DID MIKE BRADY GET RUNNER-UP?". [/INST] SELECT MIN("year") FROM "wins_11" WHERE "runner_up"='Mike Brady';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wins_11" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_up" text );. Question: "WHAT WAS THE WINNING SCORE IN YEAR 1922?". [/INST] SELECT "winning_score" FROM "wins_11" WHERE "year"=1922;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1507852_5" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text );. Question: "what's the cancelable with bubbles being yes". [/INST] SELECT "cancelable" FROM "table1_1507852_5" WHERE "bubbles"='Yes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1507852_5" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text );. Question: "what's the bubbles with attribute being onpopuphidden". [/INST] SELECT "bubbles" FROM "table1_1507852_5" WHERE "attribute"='onpopuphidden';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1507852_5" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text );. Question: " how many bubbles with category being input". [/INST] SELECT COUNT("bubbles") FROM "table1_1507852_5" WHERE "category"='Input';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1507852_5" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text );. Question: "what's the type with description being fires when the overflow state changes.". [/INST] SELECT "type" FROM "table1_1507852_5" WHERE "description"='Fires when the overflow state changes.';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1507852_5" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text );. Question: "what's the attribute with cancelable being yes". [/INST] SELECT "attribute" FROM "table1_1507852_5" WHERE "cancelable"='Yes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_15185133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "viewers_millions" text );. Question: "How many viewers in millions for episode "sokka's master"?". [/INST] SELECT "viewers_millions" FROM "table1_15185133_1" WHERE "title"='\"Sokka''s Master\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_15185133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "viewers_millions" text );. Question: "What is the original air date for the episode with a production code of 318?". [/INST] SELECT "original_air_date" FROM "table1_15185133_1" WHERE "production_code"=318;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_15185133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "viewers_millions" text );. Question: "What season has an episode written by john o'bryan and directed by ethan spaulding?". [/INST] SELECT "no_in_season" FROM "table1_15185133_1" WHERE "written_by"='John O''Bryan' AND "directed_by"='Ethan Spaulding';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_15185133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "viewers_millions" text );. Question: "What are all the numbers in the series with an episode title of "the beach"?". [/INST] SELECT "no_in_series" FROM "table1_15185133_1" WHERE "title"='\"The Beach\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "how many segments involve wood boring augers". [/INST] SELECT "segment_a" FROM "season_17_2011" WHERE "segment_d"='Wood Boring Augers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "for the shows featuring beet sugar, what was on before that". [/INST] SELECT "segment_b" FROM "season_17_2011" WHERE "segment_c"='Beet Sugar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );. Question: "are rolled wafers in many episodes". [/INST] SELECT "series_ep" FROM "season_17_2011" WHERE "segment_a"='Rolled Wafers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actor" text, "best_supporting_actress" text );. Question: "Name the best actor for uncle boonmee who can recall his past lives". [/INST] SELECT "best_actor" FROM "major_award_winners" WHERE "best_film"='Uncle Boonmee Who Can Recall His Past Lives';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actor" text, "best_supporting_actress" text );. Question: "Name the best director for mother". [/INST] SELECT "best_director" FROM "major_award_winners" WHERE "best_film"='Mother';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actor" text, "best_supporting_actress" text );. Question: "Name the year for sammo hung for ip man 2". [/INST] SELECT "year" FROM "major_award_winners" WHERE "best_supporting_actor"='Sammo Hung for Ip Man 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 "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actor" text, "best_supporting_actress" text );. Question: "Name the best supporting actress for sun honglei for mongol". [/INST] SELECT "best_supporting_actress" FROM "major_award_winners" WHERE "best_supporting_actor"='Sun Honglei for Mongol';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "purse_us" real, "winners_share" real );. Question: "How many years was Jiyai Shin the champion?". [/INST] SELECT COUNT("year") FROM "winners" WHERE "champion"='Jiyai Shin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "purse_us" real, "winners_share" real );. Question: "What countries have a margin of victory at 6 strokes?". [/INST] SELECT "country" FROM "winners" WHERE "margin_of_victory"='6 strokes';</s>