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 "race_results" ( "rnd" real, "race_name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?". [/INST] SELECT "report" FROM "race_results" WHERE "winning_driver"='Michael Andretti' AND "fastest_lap"='Nigel Mansell';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_results" ( "rnd" real, "race_name" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text );. Question: "Who was at the pole position in the ITT Automotive Grand Prix of Detroit, won by Paul Tracy?". [/INST] SELECT "pole_position" FROM "race_results" WHERE "winning_driver"='Paul Tracy' AND "race_name"='ITT Automotive Grand Prix of Detroit';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_19929970_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Who directed the episode with production code 4akj08?". [/INST] SELECT "directed_by" FROM "table1_19929970_1" WHERE "production_code"='4AKJ08';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_19929970_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Who directed the episode with production code 4akj01?". [/INST] SELECT "directed_by" FROM "table1_19929970_1" WHERE "production_code"='4AKJ01';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "l35_and_lf6_scpi" ( "year" text, "horsepower" text, "torque" text, "fuel_system" text, "compression_ratio" text, "rpo" text, "applications" real );. Question: "What are the torque characteristics of the model made in 1996?". [/INST] SELECT "torque" FROM "l35_and_lf6_scpi" WHERE "year"='1996';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "l35_and_lf6_scpi" ( "year" text, "horsepower" text, "torque" text, "fuel_system" text, "compression_ratio" text, "rpo" text, "applications" real );. Question: "What's the compression ratio of the model with L35 RPO and 5 applications?". [/INST] SELECT "compression_ratio" FROM "l35_and_lf6_scpi" WHERE "rpo"='L35' AND "applications"=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 "l35_and_lf6_scpi" ( "year" text, "horsepower" text, "torque" text, "fuel_system" text, "compression_ratio" text, "rpo" text, "applications" real );. Question: "What are the torque characteristics of the model with 346 applications?". [/INST] SELECT "torque" FROM "l35_and_lf6_scpi" WHERE "applications"=346;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_seasons_and_teams" ( "season" real, "class" text, "team" text, "motorcycle" text, "type" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real, "pts" real, "position" text );. Question: "What's the name of the team who had a Honda motorcycle?". [/INST] SELECT "team" FROM "by_seasons_and_teams" WHERE "motorcycle"='Honda';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_seasons_and_teams" ( "season" real, "class" text, "team" text, "motorcycle" text, "type" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real, "pts" real, "position" text );. Question: "What's the number of poles in the season where the team had a Kalex motorcycle?". [/INST] SELECT "poles" FROM "by_seasons_and_teams" WHERE "motorcycle"='Kalex';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_seasons_and_teams" ( "season" real, "class" text, "team" text, "motorcycle" text, "type" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real, "pts" real, "position" text );. Question: "How many fastest laps did I.C. Team have?". [/INST] SELECT COUNT("fastest_laps") FROM "by_seasons_and_teams" WHERE "team"='I.C. Team';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_seasons_and_teams" ( "season" real, "class" text, "team" text, "motorcycle" text, "type" text, "races" real, "wins" real, "podiums" real, "poles" real, "fastest_laps" real, "pts" real, "position" text );. Question: "What's Italtrans Racing Team's, with 0 pts, class?". [/INST] SELECT "class" FROM "by_seasons_and_teams" WHERE "pts"=0 AND "team"='Italtrans Racing Team';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the conventional for تاغارما". [/INST] SELECT "conventional" FROM "table1_2008069_2" WHERE "uyghur_k_ona_yezik"='تاغارما';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the uyghur for 瓦恰". [/INST] SELECT "uyghur_k_ona_yezik" FROM "table1_2008069_2" WHERE "chinese"='瓦恰';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the conventional for defter". [/INST] SELECT "conventional" FROM "table1_2008069_2" WHERE "uyghur_yen_i_yezik"='Defter';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the pinyin for تىزناپ". [/INST] SELECT "pinyin" FROM "table1_2008069_2" WHERE "uyghur_k_ona_yezik"='تىزناپ';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the pinyin for mazar". [/INST] SELECT "pinyin" FROM "table1_2008069_2" WHERE "conventional"='Mazar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2008069_2" ( "conventional" text, "sarikoli_in_ipa" text, "uyghur_k_ona_yezik" text, "uyghur_yen_i_yezik" text, "chinese" text, "pinyin" text );. Question: "Name the pinyin for kɵkyar k̡irƣiz yezisi". [/INST] SELECT "pinyin" FROM "table1_2008069_2" WHERE "uyghur_yen_i_yezik"='Kɵkyar K̡irƣiz yezisi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What team or teams with 18 in the top 10?". [/INST] SELECT "team_s" FROM "nascar_camping_world_truck_series" WHERE "top_10"=18;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many wins in the 4th position?". [/INST] SELECT MIN("wins") FROM "nascar_camping_world_truck_series" WHERE "position"='4th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real, "remarks" text );. Question: "What date was the attendance 22000?". [/INST] SELECT "date" FROM "notable_matches" WHERE "attendance"=22000;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real, "remarks" text );. Question: "What are the remarks for 8 October 2008?". [/INST] SELECT "remarks" FROM "notable_matches" WHERE "date"='8 October 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real, "remarks" text );. Question: "What was the res for the game against Payam?". [/INST] SELECT "res" FROM "notable_matches" WHERE "team_num2"='Payam';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real, "remarks" text );. Question: "Who was team #1 on 9 September 2006?". [/INST] SELECT "team_num1" FROM "notable_matches" WHERE "date"='9 September 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 "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real, "remarks" text );. Question: "What was the largest attendance?". [/INST] SELECT MAX("attendance") FROM "notable_matches";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What position is the player who went to Regina? ". [/INST] SELECT "position" FROM "round_three" WHERE "college"='Regina';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "Which player is on the BC Lions? ". [/INST] SELECT "player" FROM "round_three" WHERE "cfl_team"='BC Lions';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What number picks were the players who went to Calgary? ". [/INST] SELECT "pick_num" FROM "round_three" WHERE "college"='Calgary';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20205538_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );. Question: "What was the title for episode 2?". [/INST] SELECT "title" FROM "table1_20205538_4" WHERE "episode_num"=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 "table1_20205538_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );. Question: "What is the episode number for series 17?". [/INST] SELECT "episode_num" FROM "table1_20205538_4" WHERE "series_num"=17;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1963_74" ( "season" text, "rl_s_d_1st" text, "rl_s_d_2nd" text, "rl_s_dwest_1st" text, "rl_s_dwest_2nd" text );. Question: "What season did SV Darmstadt 98 end up at RL Süd (1st)?". [/INST] SELECT "season" FROM "1963_74" WHERE "rl_s_d_1st"='SV Darmstadt 98';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1963_74" ( "season" text, "rl_s_d_1st" text, "rl_s_d_2nd" text, "rl_s_dwest_1st" text, "rl_s_dwest_2nd" text );. Question: "Who was RL Süd (1st) when FK Pirmasens was RL Südwest (1st)?". [/INST] SELECT "rl_s_d_1st" FROM "1963_74" WHERE "rl_s_dwest_1st"='FK Pirmasens';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1963_74" ( "season" text, "rl_s_d_1st" text, "rl_s_d_2nd" text, "rl_s_dwest_1st" text, "rl_s_dwest_2nd" text );. Question: "What season was Freiburger FC the RL Süd (2nd) team?". [/INST] SELECT "season" FROM "1963_74" WHERE "rl_s_d_2nd"='Freiburger FC';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "lms_no" real, "wd_no" real, "builder" text, "serial_no" real, "date_built" real );. Question: "Name the total number of serial number for 24 wd no". [/INST] SELECT COUNT("serial_no") FROM "references" WHERE "wd_no"=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 "references" ( "lms_no" real, "wd_no" real, "builder" text, "serial_no" real, "date_built" real );. Question: "Name the total number of wd number for lms number being 7638". [/INST] SELECT COUNT("wd_no") FROM "references" WHERE "lms_no"=7638;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "lms_no" real, "wd_no" real, "builder" text, "serial_no" real, "date_built" real );. Question: "Name the builder for wd number being 22". [/INST] SELECT "builder" FROM "references" WHERE "wd_no"=22;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "lms_no" real, "wd_no" real, "builder" text, "serial_no" real, "date_built" real );. Question: "Name the lms number for serial number being 372". [/INST] SELECT "lms_no" FROM "references" WHERE "serial_no"=372;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "lms_no" real, "wd_no" real, "builder" text, "serial_no" real, "date_built" real );. Question: "Name the builder for serial number being 377". [/INST] SELECT "builder" FROM "references" WHERE "serial_no"=377;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20360535_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "what is the the television order of "deep cover for batman!"". [/INST] SELECT "television_order" FROM "table1_20360535_2" WHERE "title"='\"Deep Cover for Batman!\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_20360535_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "who directed s01e13". [/INST] SELECT "directed_by" FROM "table1_20360535_2" WHERE "television_order"='S01E13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20360535_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "what is the television order of the episode directed by ben jones, written by j. m. dematteis and originally aired on february6,2009". [/INST] SELECT "television_order" FROM "table1_20360535_2" WHERE "directed_by"='Ben Jones' AND "written_by"='J. M. DeMatteis' AND "original_air_date"='February6,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_20360535_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "who wrote s01e06". [/INST] SELECT "written_by" FROM "table1_20360535_2" WHERE "television_order"='S01E06';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20360535_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "what is the original air date of the episode directed by Ben Jones and written by Steven Melching? ". [/INST] SELECT "original_air_date" FROM "table1_20360535_4" WHERE "directed_by"='Ben Jones' AND "written_by"='Steven Melching';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20360535_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );. Question: "What was the original air date for "Crisis: 22,300 Miles Above Earth!"?". [/INST] SELECT "original_air_date" FROM "table1_20360535_4" WHERE "title"='\"Crisis: 22,300 Miles Above Earth!\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2009_10" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text );. Question: "How many people are guest 1 on episodes where guest 4 is Des Kelly?". [/INST] SELECT COUNT("guest_1") FROM "season_2009_10" WHERE "guest_4"='Des Kelly';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2009_10" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text );. Question: "On episodes where guest 1 is Jim White, who was guest 3?". [/INST] SELECT "guest_3" FROM "season_2009_10" WHERE "guest_1"='Jim White';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "How many points did he win in the race with more than 1.0 poles?". [/INST] SELECT "points" FROM "career_summary" WHERE "poles">1.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 "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What team did he compete for in the GP3 series?". [/INST] SELECT "team" FROM "career_summary" WHERE "series"='GP3 Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2054561_2" ( "season" text, "no_of_stars" real, "no_of_weeks" real, "duration_dates" text, "first_place" text, "second_place" text, "third_place" text );. Question: "Who took first place in week 6?". [/INST] SELECT COUNT("first_place") FROM "table1_2054561_2" WHERE "no_of_weeks"=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 "table1_20549371_3" ( "vehicle" text, "model_year" text, "type_of_powertrain" text, "operating_mode" text, "epa_rated_combined_fuel_economy" text, "epa_rated_city_fuel_economy" text, "epa_rated_highway_fuel_economy" text, "cost_to_drive_25_miles" text, "annual_fuel_cost" text, "notes" text );. Question: "What is the epa highway fuel economy for an electric suv?". [/INST] SELECT "epa_rated_highway_fuel_economy" FROM "table1_20549371_3" WHERE "type_of_powertrain"='Electric SUV';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_20549371_3" ( "vehicle" text, "model_year" text, "type_of_powertrain" text, "operating_mode" text, "epa_rated_combined_fuel_economy" text, "epa_rated_city_fuel_economy" text, "epa_rated_highway_fuel_economy" text, "cost_to_drive_25_miles" text, "annual_fuel_cost" text, "notes" text );. Question: "What vehicle has an epa highway fuel economy of 109 mpg-e?". [/INST] SELECT "vehicle" FROM "table1_20549371_3" WHERE "epa_rated_highway_fuel_economy"='109 mpg-e';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What shareholder has 2.55 percent of votes? ". [/INST] SELECT "shareholder" FROM "table1_206419_3" WHERE "percent_of_votes"='2.55';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What shareholder has 3.63 percent of capital? ". [/INST] SELECT "shareholder" FROM "table1_206419_3" WHERE "percent_of_capital"='3.63';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What is the s B share for the shareholder that has 2.55 percent of votes? ". [/INST] SELECT MAX("s_b_share") FROM "table1_206419_3" WHERE "percent_of_votes"='2.55';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What is the percent of capital for the shareholder that has a s B share of 8256534? ". [/INST] SELECT "percent_of_capital" FROM "table1_206419_3" WHERE "s_b_share"=8256534;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What is the s B share for the shareholder that has 2.12 percent of votes? ". [/INST] SELECT MIN("s_b_share") FROM "table1_206419_3" WHERE "percent_of_votes"='2.12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_206419_3" ( "shareholder" text, "s_a_share" real, "s_b_share" real, "percent_of_capital" text, "percent_of_votes" text );. Question: "What is the s B share for Handelsbanken funds incl XACT?". [/INST] SELECT "s_b_share" FROM "table1_206419_3" WHERE "shareholder"='Handelsbanken funds incl XACT';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text );. Question: "How many age entries had a weight of 10-7 and an owner of Double Octagon Partnership?". [/INST] SELECT COUNT("age") FROM "runners_and_betting" WHERE "weight_st_lb"='10-7' AND "owner"='Double Octagon Partnership';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text );. Question: "What was the name that had a starting price of 11/1 and a jockey named Garrett Cotter?". [/INST] SELECT "name" FROM "runners_and_betting" WHERE "starting_price"='11/1' AND "jockey"='Garrett Cotter';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text );. Question: "What was the name of the entrant with an owner named David Johnson?". [/INST] SELECT "name" FROM "runners_and_betting" WHERE "owner"='David Johnson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real );. Question: "What percentage was the others vote when McCain had 52.9% and less than 45205.0 voters?". [/INST] SELECT "otherspct" FROM "by_county" WHERE "mc_cainpct"='52.9%' AND "mc_cainnum"<45205.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 "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real );. Question: "How many numbers were recorded under Obama when he had 29.9% voters?". [/INST] SELECT COUNT("obamanum") FROM "by_county" WHERE "obamapct"='29.9%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real );. Question: "How many numbers were recorded under McCain when Obama had 27.2% voters?". [/INST] SELECT COUNT("mc_cainnum") FROM "by_county" WHERE "obamapct"='27.2%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real );. Question: "What were the number of voters McCain had when Obama had 895?". [/INST] SELECT "mc_cainnum" FROM "by_county" WHERE "obamanum"=895;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real );. Question: "What was the number of others votes in Columbia county?". [/INST] SELECT MIN("othersnum") FROM "by_county" WHERE "county"='Columbia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real );. Question: "For Gem County, what was the Obama vote percentage?". [/INST] SELECT "obamapct" FROM "by_county" WHERE "county"='Gem';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real );. Question: "What is the maximum McCain population turnout number?". [/INST] SELECT MAX("mc_cainnum") FROM "by_county";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real );. Question: "What is the total number of McCain vote totals where Obama percentages was 17.34%?". [/INST] SELECT COUNT("mc_cainnum") FROM "by_county" WHERE "obamapct"='17.34%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real );. Question: "What is the McCain vote percentage in Jerome county?". [/INST] SELECT "mc_cainpct" FROM "by_county" WHERE "county"='Jerome';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_by_sport" ( "sporting_profession" text, "first_place_s" real, "second_place_s" real, "third_place_s" real, "total_placing_s" real );. Question: "What is the total number of 3rd place entries that have exactly 8 total placings?". [/INST] SELECT COUNT("third_place_s") FROM "winners_by_sport" WHERE "total_placing_s"=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 "winners_by_sport" ( "sporting_profession" text, "first_place_s" real, "second_place_s" real, "third_place_s" real, "total_placing_s" real );. Question: "How many second place showings does snooker have?". [/INST] SELECT "second_place_s" FROM "winners_by_sport" WHERE "sporting_profession"='Snooker';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text );. Question: "What game number did the Wildcats play Purdue?". [/INST] SELECT "game" FROM "schedule" WHERE "opponent"='Purdue';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text );. Question: "How many wins or losses were there when the record was 3-0?". [/INST] SELECT COUNT("result") FROM "schedule" WHERE "record"='3-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 "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text );. Question: "What is the lowest points scored by the Wildcats when the record was 5-1?". [/INST] SELECT MIN("wildcats_points") FROM "schedule" WHERE "record"='5-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 "eredivisie_1956" ( "season" text, "winner" text, "runner_up" text, "third_place" text, "top_scorer" text, "goals" real );. Question: "When az is the runner up nad feyenoord came in third place how many overall winners are there?". [/INST] SELECT COUNT("winner") FROM "eredivisie_1956" WHERE "third_place"='Feyenoord' AND "runner_up"='AZ';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "eredivisie_1956" ( "season" text, "winner" text, "runner_up" text, "third_place" text, "top_scorer" text, "goals" real );. Question: "When twente came in third place and ajax was the winner what are the seasons?". [/INST] SELECT "season" FROM "eredivisie_1956" WHERE "winner"='Ajax' AND "third_place"='Twente';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "eredivisie_1956" ( "season" text, "winner" text, "runner_up" text, "third_place" text, "top_scorer" text, "goals" real );. Question: "When nac breda came in third place and psv eindhoven was the winner who is the top scorer?". [/INST] SELECT "top_scorer" FROM "eredivisie_1956" WHERE "winner"='PSV Eindhoven' AND "third_place"='NAC Breda';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presentation" ( "type_of_aphasia" text, "repetition" text, "naming" text, "auditory_comprehension" text, "fluency" text );. Question: "Name the naming for fluent and poor comprehension". [/INST] SELECT "naming" FROM "presentation" WHERE "fluency"='fluent' AND "auditory_comprehension"='poor';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presentation" ( "type_of_aphasia" text, "repetition" text, "naming" text, "auditory_comprehension" text, "fluency" text );. Question: "Name the number of naming for anomic aphasia". [/INST] SELECT COUNT("naming") FROM "presentation" WHERE "type_of_aphasia"='Anomic aphasia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presentation" ( "type_of_aphasia" text, "repetition" text, "naming" text, "auditory_comprehension" text, "fluency" text );. Question: "Name the comprehension for non-fluent, effortful, slow". [/INST] SELECT "auditory_comprehension" FROM "presentation" WHERE "fluency"='non-fluent, effortful, slow';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "presentation" ( "type_of_aphasia" text, "repetition" text, "naming" text, "auditory_comprehension" text, "fluency" text );. Question: "Name the fluency for transcortical sensory aphasia". [/INST] SELECT "fluency" FROM "presentation" WHERE "type_of_aphasia"='Transcortical sensory aphasia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "state the name of day in english where cardinal direction is east". [/INST] SELECT "english" FROM "weekdays" WHERE "cardinal_direction"='East';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_the_career_grand_slam" ( "player" text, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real );. Question: "When did Shirley Fry Irvin win the US Open?". [/INST] SELECT MIN("us_open") FROM "winners_of_the_career_grand_slam" WHERE "player"='Shirley Fry Irvin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_the_career_grand_slam" ( "player" text, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real );. Question: "What year did Martina Navratilova win Wimbledon?". [/INST] SELECT "wimbledon" FROM "winners_of_the_career_grand_slam" WHERE "player"='Martina Navratilova';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_nfl_draft" ( "round_num" real, "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What was Sherrick McManis's earliest round?". [/INST] SELECT MIN("round_num") FROM "2010_nfl_draft" WHERE "player"='Sherrick McManis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_nfl_draft" ( "round_num" real, "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "How many NFL teams does Stevie Brown play for?". [/INST] SELECT COUNT("nfl_team") FROM "2010_nfl_draft" WHERE "player"='Stevie Brown';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_nfl_draft" ( "round_num" real, "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What NFL team was the player with pick number 28 drafted to?". [/INST] SELECT "nfl_team" FROM "2010_nfl_draft" WHERE "pick_num"=28;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government" ( "barangay" text, "population_2004" real, "population_2010" real, "area_km_2" text, "district" text );. Question: "what is the area where barangay is guadalupe viejo?". [/INST] SELECT "area_km_2" FROM "local_government" WHERE "barangay"='Guadalupe Viejo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21091982_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Who is the regular season winner for the Ivy League conference?". [/INST] SELECT "regular_season_winner" FROM "table1_21091982_3" WHERE "conference"='Ivy League';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21091982_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Who is the conference Player of the Year in the conference where Lafayette won the tournament?". [/INST] SELECT "conference_player_of_the_year" FROM "table1_21091982_3" WHERE "tournament_winner"='Lafayette';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21091982_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Where was the Ivy League conference tournament?". [/INST] SELECT "tournament_venue_city" FROM "table1_21091982_3" WHERE "conference"='Ivy League';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21091982_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "How many players of the year are there in the Mountain West Conference?". [/INST] SELECT COUNT("conference_player_of_the_year") FROM "table1_21091982_3" WHERE "conference"='Mountain West Conference';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21091982_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "What is the venue and city where the 2000 MWC Men's Basketball Tournament?". [/INST] SELECT "tournament_venue_city" FROM "table1_21091982_3" WHERE "conference_tournament"='2000 MWC Men''s Basketball Tournament';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the pf for Rebecca Jean Macphee?". [/INST] SELECT MIN("pf") FROM "standings" WHERE "skip"='Rebecca Jean MacPhee';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the total of blank ends at Prince Edward Island?". [/INST] SELECT MAX("blank_ends") FROM "standings" WHERE "locale"='Prince Edward Island';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "Where was the shot pct 78?". [/INST] SELECT "locale" FROM "standings" WHERE "shot_pct"=78;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "name" text, "nationality" text, "from" real, "to" text, "league_apps" real, "league_goals" real, "finals_apps" real, "finals_goals" real, "position" text );. Question: "Name the position for van den brink, bas". [/INST] SELECT "position" FROM "external_links" WHERE "name"='van den Brink, Bas';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "name" text, "nationality" text, "from" real, "to" text, "league_apps" real, "league_goals" real, "finals_apps" real, "finals_goals" real, "position" text );. Question: "Name the mosst finals apps". [/INST] SELECT MAX("finals_apps") FROM "external_links";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "name" text, "nationality" text, "from" real, "to" text, "league_apps" real, "league_goals" real, "finals_apps" real, "finals_goals" real, "position" text );. Question: "Name the to for 19 league apps". [/INST] SELECT "to" FROM "external_links" WHERE "league_apps"=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 "table1_21313327_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "what is the No in series when Rob wright & Debra j. Fisher & Erica Messer were the writers?". [/INST] SELECT MIN("no_in_series") FROM "table1_21313327_1" WHERE "written_by"='Rob Wright & Debra J. Fisher & Erica Messer';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_21313327_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "what was the name of the episode that got 3.3 (millions) of u.s viewers?". [/INST] SELECT "title" FROM "table1_21313327_1" WHERE "u_s_viewers_millions"='3.3';</s>