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 "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "How many colleges did the player drafted at 36 attend?". [/INST] SELECT COUNT("college") FROM "round_five" WHERE "pick_num"=36;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "How many colleges did Jon Gott attend?". [/INST] SELECT COUNT("college") FROM "round_five" WHERE "player"='Jon Gott';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "Where did Dante Luciani attend college?". [/INST] SELECT "college" FROM "round_five" WHERE "player"='Dante Luciani';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What teak was Brady Browne drafted onto?". [/INST] SELECT "cfl_team" FROM "round_five" WHERE "player"='Brady Browne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16581695_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text );. Question: "Who was the writer of the episode number in series 4?". [/INST] SELECT "written_by" FROM "table1_16581695_2" WHERE "no_in_series"='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 "table1_16581695_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text );. Question: "What is the number in series for the episode titled "Kevin's Big Score"?". [/INST] SELECT "no_in_series" FROM "table1_16581695_2" WHERE "title"='\"Kevin''s Big Score\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16581695_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text );. Question: "Who was the writer of the episode titled "Pier Pressure"?". [/INST] SELECT "written_by" FROM "table1_16581695_2" WHERE "title"='\"Pier Pressure\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16581695_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text );. Question: "What is the original air date for the episode written by Bob Goodman?". [/INST] SELECT "original_airdate" FROM "table1_16581695_2" WHERE "written_by"='Bob Goodman';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16617011_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the number air date for 14.20 us viewers". [/INST] SELECT COUNT("original_air_date") FROM "table1_16617011_1" WHERE "u_s_viewers_millions"='14.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_16617011_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Name the directed by for 15.15 viewers". [/INST] SELECT "directed_by" FROM "table1_16617011_1" WHERE "u_s_viewers_millions"='15.15';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "giants_points" real, "opponents" real, "record" text, "attendance" real );. Question: "Name the number of giants points for opponents being 31". [/INST] SELECT COUNT("giants_points") FROM "schedule" WHERE "opponents"=31;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "giants_points" real, "opponents" real, "record" text, "attendance" real );. Question: "Name the most attendance for giants points of 10". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "giants_points"=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 "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );. Question: "What is the distance for jockey Kent Desormeaux on 6/7/08?". [/INST] SELECT "distance" FROM "race_data" WHERE "jockey"='Kent Desormeaux' AND "date"='6/7/08';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );. Question: "At 1:48.16 what was the number of track time?". [/INST] SELECT COUNT("track") FROM "race_data" WHERE "time"='1:48.16';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );. Question: "With a date of 8/3/08, what was the length of the victory margin?". [/INST] SELECT COUNT("victory_margin_in_lengths") FROM "race_data" WHERE "date"='8/3/08';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "eagles_points" real, "opponents" real, "record" text, "attendance" real );. Question: "On what date did the opponents win with 17 points? ". [/INST] SELECT "date" FROM "schedule" WHERE "opponents"=17 AND "result"='Win';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "eagles_points" real, "opponents" real, "record" text, "attendance" real );. Question: "What record was reached when the Eagles played the Phoenix Cardinals? ". [/INST] SELECT "record" FROM "schedule" WHERE "opponent"='Phoenix Cardinals';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "falcons_points" real, "opponents" real, "record" text, "streak" text, "attendance" real );. Question: "How many times in 1984 did the Falcons play the Los Angeles Rams?". [/INST] SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Los Angeles Rams';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "falcons_points" real, "opponents" real, "record" text, "streak" text, "attendance" real );. Question: "In 1984, Did the Falcons have a win or loss against the New Orleans Saints?". [/INST] SELECT "result" FROM "schedule" WHERE "opponent"='New Orleans Saints';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "falcons_points" real, "opponents" real, "record" text, "streak" text, "attendance" real );. Question: "Did the Falcons have a win or loss in the game when their record was 3-7?". [/INST] SELECT "result" FROM "schedule" WHERE "record"='3-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "what is the attendance where the game site is kingdome?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "game_site"='Kingdome';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 date is the opponent is chicago bears?". [/INST] SELECT "date" FROM "schedule" WHERE "opponent"='Chicago Bears';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What team has draft picks from Mississippi?". [/INST] SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='Mississippi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "How many positions drafted players from Washington?". [/INST] SELECT COUNT("position") FROM "nfl_draft" WHERE "college"='Washington';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "How many draft picks are there at the Defensive End position?". [/INST] SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "position"='Defensive End';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "How many draft picks are there at the linebacker position?". [/INST] SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "position"='Linebacker';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What draft pick was Chris Brewer?". [/INST] SELECT MIN("pick_num") FROM "nfl_draft" WHERE "player"='Chris Brewer';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "big_ten_conference_3_10_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real, "current_streak" text );. Question: "How many losses did the Michigan State Spartans have?". [/INST] SELECT MAX("loss") FROM "big_ten_conference_3_10_1" WHERE "institution"='Michigan State Spartans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "big_ten_conference_3_10_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real, "current_streak" text );. Question: "How many numbers were recorded under home losses when away losses were 6?". [/INST] SELECT COUNT("home_losses") FROM "big_ten_conference_3_10_1" WHERE "away_losses"=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 "big_ten_conference_3_10_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real, "current_streak" text );. Question: "How many wins did the Northwestern Wildcats?". [/INST] SELECT MAX("wins") FROM "big_ten_conference_3_10_1" WHERE "institution"='Northwestern Wildcats';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "big_ten_conference_3_10_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real, "current_streak" text );. Question: "What institution had 6 wins and a current streak of won 2?". [/INST] SELECT "institution" FROM "big_ten_conference_3_10_1" WHERE "wins"=6 AND "current_streak"='Won 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 "doubles_8" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Who are all the opponents of Slovakia?". [/INST] SELECT "opponents" FROM "doubles_8" WHERE "against"='Slovakia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "What is the name of the round against the opponents jesse huta galung peter wessels?". [/INST] SELECT "round" FROM "doubles_8" WHERE "opponents"='Jesse Huta Galung Peter Wessels';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cylinders" ( "engine" text, "exhaust_ports" text, "bypass_ports" real, "bypass_boosters" text, "spi" text, "tapered_grind" text, "number_on_cyl" text );. Question: "Are there SPI on the number 7 cylinder?". [/INST] SELECT "spi" FROM "cylinders" WHERE "number_on_cyl"='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 "cylinders" ( "engine" text, "exhaust_ports" text, "bypass_ports" real, "bypass_boosters" text, "spi" text, "tapered_grind" text, "number_on_cyl" text );. Question: "What is the minimum number of bypass ports listed?". [/INST] SELECT MIN("bypass_ports") FROM "cylinders";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cylinders" ( "engine" text, "exhaust_ports" text, "bypass_ports" real, "bypass_boosters" text, "spi" text, "tapered_grind" text, "number_on_cyl" text );. Question: "Is there a tapered grind on the Surestart engine?". [/INST] SELECT "tapered_grind" FROM "cylinders" WHERE "engine"='SureStart';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cylinders" ( "engine" text, "exhaust_ports" text, "bypass_ports" real, "bypass_boosters" text, "spi" text, "tapered_grind" text, "number_on_cyl" text );. Question: "How many bypass boosters are there on the engine with slit exhaust ports and SPI is yes?". [/INST] SELECT "bypass_boosters" FROM "cylinders" WHERE "spi"='Yes' AND "exhaust_ports"='Slit';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16751596_16" ( "poll_source" text, "dates_administered" text, "democrat_jim_martin" text, "republican_saxby_chambliss" text, "lead_margin" real );. Question: "What is the date administered where Saxby Chambliss is 54% and Jim Martin is 36%?". [/INST] SELECT "dates_administered" FROM "table1_16751596_16" WHERE "republican_saxby_chambliss"='54%' AND "democrat_jim_martin"='36%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16751596_16" ( "poll_source" text, "dates_administered" text, "democrat_jim_martin" text, "republican_saxby_chambliss" text, "lead_margin" real );. Question: "How many times did Saxby Chambliss have a lead margin of 21?". [/INST] SELECT COUNT("republican_saxby_chambliss") FROM "table1_16751596_16" WHERE "lead_margin"=21;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pool_3" ( "team" text, "p" real, "w" real, "d" real, "l" real, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text, "pts" real );. Question: "Name the least tries for when w is 4". [/INST] SELECT MIN("tries_for") FROM "pool_3" WHERE "w"=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 "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "What is the total points when the point difference is +119?". [/INST] SELECT "points" FROM "2004_05_table" WHERE "points_difference"='+119';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "What is the points for when the total points is 6?". [/INST] SELECT "points_for" FROM "2004_05_table" WHERE "points"='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 "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "What club has 693 points for?". [/INST] SELECT "club" FROM "2004_05_table" WHERE "points_for"='693';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "How many wins does the club with 565 points for have?". [/INST] SELECT "won" FROM "2004_05_table" WHERE "points_for"='565';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "How many losses does Cross Keys RFC have?". [/INST] SELECT COUNT("lost") FROM "2004_05_table" WHERE "club"='Cross Keys RFC';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2004_05_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "points" text );. Question: "How many losses does the club with 539 points for have?". [/INST] SELECT "lost" FROM "2004_05_table" WHERE "points_for"='539';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "urban_area_locality" text, "municipality" text, "population" real, "land_area_hectares" text, "density_inh_km" text, "code" real );. Question: "How many hectars of land is in Kaxholmen?". [/INST] SELECT "land_area_hectares" FROM "references" WHERE "urban_area_locality"='Kaxholmen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "urban_area_locality" text, "municipality" text, "population" real, "land_area_hectares" text, "density_inh_km" text, "code" real );. Question: "How many codes have a population of 598 in Vellinge Municipality?". [/INST] SELECT COUNT("code") FROM "references" WHERE "municipality"='Vellinge Municipality' AND "population"=598;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "urban_area_locality" text, "municipality" text, "population" real, "land_area_hectares" text, "density_inh_km" text, "code" real );. Question: "Which urban area has the code 4870?". [/INST] SELECT "urban_area_locality" FROM "references" WHERE "code"=4870;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "urban_area_locality" text, "municipality" text, "population" real, "land_area_hectares" text, "density_inh_km" text, "code" real );. Question: "How many people live in an area of 30.94 hectares?". [/INST] SELECT COUNT("population") FROM "references" WHERE "land_area_hectares"='30.94';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "urban_area_locality" text, "municipality" text, "population" real, "land_area_hectares" text, "density_inh_km" text, "code" real );. Question: "How many hectares of land area is Landsbro?". [/INST] SELECT "land_area_hectares" FROM "references" WHERE "urban_area_locality"='Landsbro';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16779068_5" ( "place" real, "weightlifter" text, "body_weight" text, "one_hand_snatch" text, "one_hand_clean_jerk" text, "press" text, "snatch" text, "1" text, "2" text, "3" text, "total" text );. Question: "Name the total with one hand clean and jerk is 87.5 and snatch is 87.5". [/INST] SELECT "total" FROM "table1_16779068_5" WHERE "one_hand_clean_jerk"='87.5' AND "snatch"='87.5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_16779068_5" ( "place" real, "weightlifter" text, "body_weight" text, "one_hand_snatch" text, "one_hand_clean_jerk" text, "press" text, "snatch" text, "1" text, "2" text, "3" text, "total" text );. Question: "Name the snatch when body weight is 73.7". [/INST] SELECT "snatch" FROM "table1_16779068_5" WHERE "body_weight"='73.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 "table1_16779068_5" ( "place" real, "weightlifter" text, "body_weight" text, "one_hand_snatch" text, "one_hand_clean_jerk" text, "press" text, "snatch" text, "1" text, "2" text, "3" text, "total" text );. Question: "Name the 3 where weightlifter is m. van der goten ( bel )". [/INST] SELECT "3" FROM "table1_16779068_5" WHERE "weightlifter"='M. Van der Goten ( BEL )';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "What are Wells Fargo's assets?". [/INST] SELECT "assets_billion" FROM "2012_list" WHERE "company"='Wells Fargo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "Which company had profits of 26.9?". [/INST] SELECT "company" FROM "2012_list" WHERE "profits_billion"='26.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 "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "Which company has a market value of 147.4?". [/INST] SELECT "company" FROM "2012_list" WHERE "market_value_billion"='147.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 "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "Which company has profits of 26.9?". [/INST] SELECT "company" FROM "2012_list" WHERE "profits_billion"='26.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 "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "When the assets are 2,550, what is the Market Value?". [/INST] SELECT "market_value_billion" FROM "2012_list" WHERE "assets_billion"='2,550';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" text, "profits_billion" text, "assets_billion" text, "market_value_billion" text );. Question: "What are the assets for company who's headquarters are located in Brazil?". [/INST] SELECT "assets_billion" FROM "2012_list" WHERE "headquarters"='Brazil';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "political_subdivision" ( "barangay" text, "area_km" text, "population_2007" real, "population_2010" real, "pop_density_per_km" text );. Question: "Name the population density when barangay is tiptip". [/INST] SELECT "pop_density_per_km" FROM "political_subdivision" WHERE "barangay"='Tiptip';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "political_subdivision" ( "barangay" text, "area_km" text, "population_2007" real, "population_2010" real, "pop_density_per_km" text );. Question: "Name the least population 2007 for barangay is poblacion ii". [/INST] SELECT MIN("population_2007") FROM "political_subdivision" WHERE "barangay"='Poblacion II';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "Name the score for philadelphia flyers ". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='Philadelphia Flyers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "Nam the opponent for prudential center". [/INST] SELECT "opponent" FROM "game_log" WHERE "location"='Prudential 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 "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "Name the location for 15046 attendance". [/INST] SELECT "location" FROM "game_log" WHERE "attendance"=15046;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "How many people attended the Edmonton Oilers game?". [/INST] SELECT "attendance" FROM "game_log" WHERE "opponent"='Edmonton Oilers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "How many points were made in game 70?". [/INST] SELECT COUNT("points") FROM "game_log" WHERE "game"=70;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "Who was the opponent in the game where 19041 people attended?". [/INST] SELECT "opponent" FROM "game_log" WHERE "attendance"=19041;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "How many records were made on March 27, 2009?". [/INST] SELECT COUNT("record") FROM "game_log" WHERE "date"='March 27, 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 "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "What was the score on March 21, 2009?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='March 21, 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 "doubles_12" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text );. Question: "Name the date for margalita chakhnashvili salome devidze". [/INST] SELECT "date" FROM "doubles_12" WHERE "opponents"='Margalita Chakhnashvili Salome Devidze';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1991_92" text, "1992_93" text, "1993_94" real );. Question: "Name the most points for independiente". [/INST] SELECT MAX("points") FROM "relegation" WHERE "team"='Independiente';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1991_92" text, "1992_93" text, "1993_94" real );. Question: "Name the average is 1991-92 is 39". [/INST] SELECT "average" FROM "relegation" WHERE "1991_92"='39';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16951593_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Name the original air date of 1/2 in season". [/INST] SELECT "original_air_date" FROM "table1_16951593_1" WHERE "no_in_season"='1/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_16951593_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Name the original air date for number in season being 13". [/INST] SELECT "original_air_date" FROM "table1_16951593_1" WHERE "no_in_season"='13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_16951593_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Namee the title for production code for 4014". [/INST] SELECT "title" FROM "table1_16951593_1" WHERE "production_code"='4014';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_16951593_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Name the title for number in season 9". [/INST] SELECT "title" FROM "table1_16951593_1" WHERE "no_in_season"='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 "table1_16951593_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "Name who wrote the episode that had 7.56 million viewers". [/INST] SELECT "written_by" FROM "table1_16951593_1" WHERE "u_s_viewers_millions"='7.56';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "web_com_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nds" real, "3rds" real, "top_tens" real, "best_finish" text, "earnings" real, "money_list_rank" real );. Question: "Name the wins for best finish being 2nd". [/INST] SELECT "wins" FROM "web_com_tour_results" WHERE "best_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 "web_com_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nds" real, "3rds" real, "top_tens" real, "best_finish" text, "earnings" real, "money_list_rank" real );. Question: "Name the most earnings for money list rank being 143". [/INST] SELECT MAX("earnings") FROM "web_com_tour_results" WHERE "money_list_rank"=143;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "web_com_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nds" real, "3rds" real, "top_tens" real, "best_finish" text, "earnings" real, "money_list_rank" real );. Question: "Nme the most cuts made for wins being 0". [/INST] SELECT MAX("cuts_made") FROM "web_com_tour_results" WHERE "wins"=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 "web_com_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nds" real, "3rds" real, "top_tens" real, "best_finish" text, "earnings" real, "money_list_rank" real );. Question: "Name the wins for tournaments played being 14". [/INST] SELECT "wins" FROM "web_com_tour_results" WHERE "tournaments_played"=14;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Against which team was game 21?". [/INST] SELECT "team" FROM "game_log" WHERE "game"=21;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_2_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );. Question: "Which season had the "grumpy old bees" episodes?". [/INST] SELECT COUNT("season_num") FROM "season_2_2009_11" WHERE "title"='\"Grumpy Old Bees\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );. Question: "How many episodes were named "Dogcatcher in the Rye"?". [/INST] SELECT COUNT("directed_by") FROM "season_2_2009_11" WHERE "title"='\"Dogcatcher in the Rye\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the replaced by where date of vacancy is 31 december 2008 where position in table is 1st". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='31 December 2008' AND "position_in_table"='1st';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the replaced by for position in table is 1st". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='1st';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the position in table for 1 july 2008 when manner of departure is resigned". [/INST] SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_appointment"='1 July 2008' AND "manner_of_departure"='Resigned';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the replaced by when outgoing manager is kent nielsen". [/INST] SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='Kent Nielsen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "Name the outgoing manager for position in table being 11th". [/INST] SELECT "outgoing_manager" FROM "managerial_changes" WHERE "position_in_table"='11th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" text, "yes" real, "no" real, "spoilt" real, "percent_yes" text );. Question: "Name the most number of leitrim". [/INST] SELECT MAX("no") FROM "plebiscite" WHERE "constituency"='Leitrim';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" text, "yes" real, "no" real, "spoilt" real, "percent_yes" text );. Question: "Name the least yes for dublin south". [/INST] SELECT MIN("yes") FROM "plebiscite" WHERE "constituency"='Dublin 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 "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" text, "yes" real, "no" real, "spoilt" real, "percent_yes" text );. Question: "Name the least votes for percent yes for 57.2". [/INST] SELECT MIN("votes") FROM "plebiscite" WHERE "percent_yes"='57.2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "In how many game was the attendance at Staples Center 18,997? ". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "location_attendance"='Staples Center 18,997';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "How many different games had David Lee (13) with High rebounds?". [/INST] SELECT COUNT("score") FROM "game_log" WHERE "high_rebounds"='David Lee (13)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which date did Chris Duhon (13) receive high assists?". [/INST] SELECT "date" FROM "game_log" WHERE "high_assists"='Chris Duhon (13)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the high rebounds for memphis". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "team"='Memphis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Name the team for chris duhon , nate robinson , david lee (3)". [/INST] SELECT "team" FROM "game_log" WHERE "high_assists"='Chris Duhon , Nate Robinson , David Lee (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 "nascar_nationwide_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: "Name the most wins where position is 16th". [/INST] SELECT MAX("wins") FROM "nascar_nationwide_series" WHERE "position"='16th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_nationwide_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: "Name the total number when avg start is 2000". [/INST] SELECT COUNT("avg_start") FROM "nascar_nationwide_series" WHERE "year"=2000;</s>