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 "table1_28140588_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Who is the director when the title is listed as "all guts, no glory"?". [/INST] SELECT "directed_by" FROM "table1_28140588_1" WHERE "title"='\"All Guts, No Glory\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28140588_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Who is the director when the production code is 60034?". [/INST] SELECT "directed_by" FROM "table1_28140588_1" WHERE "production_code"=60034;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28140584_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What number episode in the series was titled "Best Laid Plans"?". [/INST] SELECT MAX("no_in_series") FROM "table1_28140584_1" WHERE "title"='\"Best Laid Plans\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What episode number in the series is "the drum major"?". [/INST] SELECT "no_in_series" FROM "table1_2818164_5" WHERE "title"='\"The Drum Major\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the name of the episode with 418 as the production code?". [/INST] SELECT "title" FROM "table1_2818164_5" WHERE "production_code"=418;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What episoe number in the season originally aired on February 11, 1988?". [/INST] SELECT "no_in_season" FROM "table1_2818164_5" WHERE "original_air_date"='February 11, 1988';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What episode number in the series is also number 17 in the season?". [/INST] SELECT "no_in_series" FROM "table1_2818164_5" WHERE "no_in_season"='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 "table1_2818164_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the production code for episode 96 in the series?". [/INST] SELECT MIN("production_code") FROM "table1_2818164_5" WHERE "no_in_series"='96';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the production code that was written by matt robinson?". [/INST] SELECT "production_code" FROM "table1_2818164_7" WHERE "written_by"='Matt Robinson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Which title has 147 as no. in series?". [/INST] SELECT "title" FROM "table1_2818164_7" WHERE "no_in_series"=147;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2818164_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "What is the original air date the was written by mark st. germain and direct by jay sandrich?". [/INST] SELECT "original_air_date" FROM "table1_2818164_7" WHERE "written_by"='Mark St. Germain' AND "directed_by"='Jay Sandrich';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28190363_1" ( "country" text, "name" text, "presenter_s" text, "judges" text, "network" text, "premiere_air_dates" text );. Question: "What are the networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar?". [/INST] SELECT "network" FROM "table1_28190363_1" WHERE "judges"='Batuhan Zeynioğlu Piatti Murat Bozok Erol Kaynar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28190363_1" ( "country" text, "name" text, "presenter_s" text, "judges" text, "network" text, "premiere_air_dates" text );. Question: "How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?". [/INST] SELECT COUNT("network") FROM "table1_28190363_1" WHERE "judges"='Pete Goffe-Wood Andrew Atkinson Benny Masekwameng';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28190363_1" ( "country" text, "name" text, "presenter_s" text, "judges" text, "network" text, "premiere_air_dates" text );. Question: "How many networks are there whose version of the shows includes judges tba and the presenter is Arbana Osmani?". [/INST] SELECT COUNT("network") FROM "table1_28190363_1" WHERE "judges"='TBA' AND "presenter_s"='Arbana Osmani';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28190363_1" ( "country" text, "name" text, "presenter_s" text, "judges" text, "network" text, "premiere_air_dates" text );. Question: "How many sets of presenters are there for the version of the show named Celebrity Masterchef?". [/INST] SELECT COUNT("presenter_s") FROM "table1_28190363_1" WHERE "name"='Celebrity MasterChef';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table" ( "district" text, "incumbent" text, "cook" text, "rothenberg" text, "cq_politics" text, "crystal_ball" text );. Question: "Who is the incumbent of district pa-8?". [/INST] SELECT "incumbent" FROM "table" WHERE "district"='PA-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 "table" ( "district" text, "incumbent" text, "cook" text, "rothenberg" text, "cq_politics" text, "crystal_ball" text );. Question: "How many incumbents are in district la-1?". [/INST] SELECT COUNT("incumbent") FROM "table" WHERE "district"='LA-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 "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "When were the Spartans founded?". [/INST] SELECT MAX("founded") FROM "division_i" WHERE "team_nickname"='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 "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "How many affiliations does the University of Toledo have?". [/INST] SELECT COUNT("affiliation") FROM "division_i" WHERE "institution"='University of Toledo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "What is the affiliation of Davenport University?". [/INST] SELECT "affiliation" FROM "division_i" WHERE "institution"='Davenport University';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_282413_3" ( "ethnic_group" text, "2001_population" real, "2001_pct" text, "2011_population" real, "2011_pct" text );. Question: "What is the highest 2001 population when the ethnic group is white: british?". [/INST] SELECT MAX("2001_population") FROM "table1_282413_3" WHERE "ethnic_group"='White: British';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_282413_3" ( "ethnic_group" text, "2001_population" real, "2001_pct" text, "2011_population" real, "2011_pct" text );. Question: "What is the ethnic group when the 2011 % is 2.0?". [/INST] SELECT "ethnic_group" FROM "table1_282413_3" WHERE "2011_pct"='2.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 "table1_282413_3" ( "ethnic_group" text, "2001_population" real, "2001_pct" text, "2011_population" real, "2011_pct" text );. Question: "How many times is the ethnic group other: total?". [/INST] SELECT COUNT("2001_pct") FROM "table1_282413_3" WHERE "ethnic_group"='Other: Total';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_282413_3" ( "ethnic_group" text, "2001_population" real, "2001_pct" text, "2011_population" real, "2011_pct" text );. Question: "How many times is the 2001 population 237810?". [/INST] SELECT COUNT("2011_population") FROM "table1_282413_3" WHERE "2001_population"=237810;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_282413_3" ( "ethnic_group" text, "2001_population" real, "2001_pct" text, "2011_population" real, "2011_pct" text );. Question: "What is the highest 2011 population when the ethnic group is asian or asian british: asian other?". [/INST] SELECT MAX("2011_population") FROM "table1_282413_3" WHERE "ethnic_group"='Asian or Asian British: Asian Other';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "Name the affiliation for 27209 enrollment". [/INST] SELECT "affiliation" FROM "division_i" WHERE "enrollment"=27209;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "Name the least founded". [/INST] SELECT MIN("founded") FROM "division_i";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "Name the founded for florida state university". [/INST] SELECT "founded" FROM "division_i" WHERE "institution"='Florida State University';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "Name the location for yellow jackets". [/INST] SELECT "location" FROM "division_i" WHERE "team_nickname"='Yellow Jackets';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many college teams have a player with a nationality of Russia?". [/INST] SELECT COUNT("college_junior_club_team") FROM "round_six" WHERE "nationality"='Russia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which pick did Michel Larocque receive?". [/INST] SELECT "pick" FROM "round_six" WHERE "player"='Michel Larocque';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which team picked Blaine Russell?". [/INST] SELECT "nhl_team" FROM "round_six" WHERE "player"='Blaine Russell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "How many entries for district home are listed for the 87th congress?". [/INST] SELECT COUNT("district_home") FROM "list_of_representatives" WHERE "congress"='87th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "What time span is listed under years for the 96th congres?". [/INST] SELECT "years" FROM "list_of_representatives" WHERE "congress"='96th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "What party is listed for the Representative under the 85th congress?". [/INST] SELECT "party" FROM "list_of_representatives" WHERE "congress"='85th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "How many entries are listed for party during the 69th congress?". [/INST] SELECT COUNT("party") FROM "list_of_representatives" WHERE "congress"='69th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "What frame of time is listed under years during the 72nd congress?". [/INST] SELECT "years" FROM "list_of_representatives" WHERE "congress"='72nd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_representatives" ( "representative" text, "party" text, "years" text, "congress" text, "district_home" text, "occupation" text, "electoral_history" text );. Question: "What name is listed under representative for the 112th congress?". [/INST] SELECT "representative" FROM "list_of_representatives" WHERE "congress"='112th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_province" ( "province" text, "first_llcr" real, "appearances" real, "championships" real, "runner_up" real );. Question: "What is the value of the runner up column for the Alberta province?". [/INST] SELECT MAX("runner_up") FROM "by_province" WHERE "province"='Alberta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_province" ( "province" text, "first_llcr" real, "appearances" real, "championships" real, "runner_up" real );. Question: "What year was Ontario's first LLCR?". [/INST] SELECT "first_llcr" FROM "by_province" WHERE "province"='Ontario';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "What is the pinyin name for the english name xin county?". [/INST] SELECT "pinyin" FROM "administration" WHERE "english_name"='Xin 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 "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "What is the area of 罗山县?". [/INST] SELECT "area" FROM "administration" WHERE "simplified"='罗山县';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "What is the English name of gùshǐ xiàn?". [/INST] SELECT "english_name" FROM "administration" WHERE "pinyin"='Gùshǐ Xiàn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "How many simplified names are there for xin county?". [/INST] SELECT COUNT("simplified") FROM "administration" WHERE "english_name"='Xin 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 "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "What is the density of the place with an area of 1512?". [/INST] SELECT MAX("density") FROM "administration" WHERE "area"=1512;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real );. Question: "What is the area of xin county?". [/INST] SELECT "area" FROM "administration" WHERE "english_name"='Xin 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 "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many positions are associated with the St. Louis Blues?". [/INST] SELECT COUNT("position") FROM "round_four" WHERE "nhl_team"='St. Louis Blues';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which junior team is associated with an NHL pick by the Buffalo Sabres?". [/INST] SELECT "college_junior_club_team" FROM "round_four" WHERE "nhl_team"='Buffalo Sabres';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which position was selected for by the Toronto Maple Leafs?". [/INST] SELECT "position" FROM "round_four" WHERE "nhl_team"='Toronto Maple Leafs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many different college/junior/club teams had player John Dzikowski?". [/INST] SELECT COUNT("college_junior_club_team") FROM "round_six" WHERE "player"='John Dzikowski';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What pick was Greg Strome?". [/INST] SELECT MAX("pick_num") FROM "round_six" WHERE "player"='Greg Strome';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "What is the gender of the cunningham hill infant school?". [/INST] SELECT "gender" FROM "state_schools" WHERE "school"='Cunningham Hill Infant School';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "What is the gender with a age range of 3-11 at the st adrian roman catholic primary school?". [/INST] SELECT "gender" FROM "state_schools" WHERE "age_range"='3-11' AND "school"='St Adrian Roman Catholic Primary School';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "Which school has a website of http://www.sjfisher.herts.sch.uk/?". [/INST] SELECT "school" FROM "state_schools" WHERE "school_website"='http://www.sjfisher.herts.sch.uk/';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "What is the website of the cunningham hill infant school?". [/INST] SELECT "school_website" FROM "state_schools" WHERE "school"='Cunningham Hill Infant School';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "Where is the cunningham hill infant school located?". [/INST] SELECT "location" FROM "state_schools" WHERE "school"='Cunningham Hill Infant School';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "state_schools" ( "school" text, "gender" text, "age_range" text, "religious_affiliation" text, "location" text, "school_website" text );. Question: "How many schools have a website of http://www.camp.herts.sch.uk/?". [/INST] SELECT COUNT("school") FROM "state_schools" WHERE "school_website"='http://www.camp.herts.sch.uk/';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "position" text, "name" text, "nationality" text, "event_1_giant_farmers_walk" text, "event_2_power_stairs" text, "event_3_deadlift" text, "event_4_africa_stone" text, "event_5_metal_block_press" text, "event_6_loading_race" text );. Question: "Name the event 3 deadlift for hennie jordan". [/INST] SELECT "event_3_deadlift" FROM "heat_2" WHERE "name"='Hennie Jordan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_basketball_career" ( "team" text, "points_per_game" text, "rebounds_per_game" text, "assists_per_game" text, "steals_per_game" text, "minutes_per_game" text, "ranking_per_game" text );. Question: "How many rebounds per game did Andrej Džaković average when playing 35 minutes per game?". [/INST] SELECT "rebounds_per_game" FROM "professional_basketball_career" WHERE "minutes_per_game"='35';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28601467_1" ( "year" real, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text );. Question: "What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points?". [/INST] SELECT "winner" FROM "table1_28601467_1" WHERE "result"='Scotland won on points table' AND "runner_up"='[[|]] 4 points';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28601467_1" ( "year" real, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text );. Question: "What is the runner-up record where winner record is Ireland 59 points?". [/INST] SELECT "runner_up" FROM "table1_28601467_1" WHERE "winner"='Ireland 59 points';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28601467_1" ( "year" real, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text );. Question: "Which nation hosted the competition in 2004?". [/INST] SELECT "host_nation_s" FROM "table1_28601467_1" WHERE "year"=2004;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28601467_1" ( "year" real, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text );. Question: "What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points?". [/INST] SELECT "final_venue" FROM "table1_28601467_1" WHERE "host_nation_s"='England' AND "runner_up"='[[|]] 4 points' AND "winner"='[[|]] 6 points';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_28601467_1" ( "year" real, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text );. Question: "What is the most recent year in which the winner record is Ireland 4 points?". [/INST] SELECT MAX("year") FROM "table1_28601467_1" WHERE "winner"='Ireland 4 points';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "executions_since_1959" ( "executed_person" text, "date_of_execution" text, "place_of_execution" text, "crime" text, "method" text, "under_president" text );. Question: "under which president was gunther volz executed?". [/INST] SELECT "under_president" FROM "executions_since_1959" WHERE "executed_person"='Gunther Volz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "executions_since_1959" ( "executed_person" text, "date_of_execution" text, "place_of_execution" text, "crime" text, "method" text, "under_president" text );. Question: "who was executed during president charles de gaulle's reign for thr crime of child murder after rape?". [/INST] SELECT "executed_person" FROM "executions_since_1959" WHERE "under_president"='Charles de Gaulle' AND "crime"='Child murder after rape';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "executions_since_1959" ( "executed_person" text, "date_of_execution" text, "place_of_execution" text, "crime" text, "method" text, "under_president" text );. Question: "where was mazouz ghaouti executed?". [/INST] SELECT "place_of_execution" FROM "executions_since_1959" WHERE "executed_person"='Mazouz Ghaouti';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "executions_since_1959" ( "executed_person" text, "date_of_execution" text, "place_of_execution" text, "crime" text, "method" text, "under_president" text );. Question: "for what crime was gunther volz executed at metz?". [/INST] SELECT "crime" FROM "executions_since_1959" WHERE "place_of_execution"='Metz' AND "executed_person"='Gunther Volz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "released_games" ( "title" text, "developer" text, "publisher" text, "north_america" text, "europe" text, "asia" text, "exclusive" text );. Question: "How many of Asian release statuses does Uno HD have?". [/INST] SELECT COUNT("asia") FROM "released_games" WHERE "title"='UNO HD';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "released_games" ( "title" text, "developer" text, "publisher" text, "north_america" text, "europe" text, "asia" text, "exclusive" text );. Question: "Which titles have been published by Gamehouse Live?". [/INST] SELECT "title" FROM "released_games" WHERE "publisher"='GameHouse Live';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "What was pinky's bmi at the reunion?". [/INST] SELECT "reunion_bmi" FROM "reunion" WHERE "contestant"='Pinky';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "What was miles's bmi att the reunion?". [/INST] SELECT COUNT("reunion_bmi") FROM "reunion" WHERE "contestant"='Miles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "How many lbs were lost at the reunion by the contestant whose finale weight was 151.4?". [/INST] SELECT "lbs_lost_reunion" FROM "reunion" WHERE "finale_weight"='151.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 "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "How many contestants had a starting bmi of 33.1?". [/INST] SELECT COUNT("finale_weight") FROM "reunion" WHERE "starting_bmi"='33.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 "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "What is the reunion weight of the contestant that lost 52 lbs at the reunion?". [/INST] SELECT "reunion_weight" FROM "reunion" WHERE "lbs_lost_reunion"=52;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "reunion" ( "contestant" text, "age" real, "height" text, "starting_bmi" text, "finale_bmi" text, "reunion_bmi" text, "start_weight" text, "finale_weight" text, "reunion_weight" text, "lbs_lost_finale" text, "lbs_lost_reunion" real );. Question: "What is the reunion weight of the contestant who lost 74.4 lbs at the finale?". [/INST] SELECT "reunion_weight" FROM "reunion" WHERE "lbs_lost_finale"='74.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 "quarterfinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "Who is the team when the category is blocks per game?". [/INST] SELECT "team" FROM "quarterfinals" WHERE "category"='Blocks per game';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the listed in games played when the player is jimmy alapag?". [/INST] SELECT "games_played" FROM "quarterfinals" WHERE "player"='Jimmy Alapag';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the team when player is listed as Ronjay Buenafe?". [/INST] SELECT "team" FROM "quarterfinals" WHERE "player"='Ronjay Buenafe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the name of the player when the category is listed as field goal percentage?". [/INST] SELECT "player" FROM "quarterfinals" WHERE "category"='Field goal percentage';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "quarterfinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the games played when the category is points per game?". [/INST] SELECT MIN("games_played") FROM "quarterfinals" WHERE "category"='Points per game';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "Who is the player when the category is steals per game?". [/INST] SELECT "player" FROM "semifinals" WHERE "category"='Steals per game';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What are the names of the categories when the player is olsen racela?". [/INST] SELECT "category" FROM "semifinals" WHERE "player"='Olsen Racela';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "How many times is a total listed when the player is Jay Washington?". [/INST] SELECT COUNT("totals") FROM "semifinals" WHERE "player"='Jay 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 "semifinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the total listed when the average is 0.667 and the category is 3-pt field goal percentage?". [/INST] SELECT "totals" FROM "semifinals" WHERE "average"='0.667' AND "category"='3-pt field goal percentage';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "category" text, "player" text, "team" text, "games_played" real, "totals" text, "average" text );. Question: "What is the name of the player when the category is 3-pt field goal percentage?". [/INST] SELECT "player" FROM "semifinals" WHERE "category"='3-pt field goal percentage';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2866514_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What are the titles of episodes with 5.66 million US viewers?". [/INST] SELECT "title" FROM "table1_2866514_1" WHERE "u_s_viewers_million"='5.66';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2866514_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What are the titles of episodes directed by whitney ransick?". [/INST] SELECT "title" FROM "table1_2866514_1" WHERE "directed_by"='Whitney Ransick';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2866514_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who wrote the episode with 3.96 million US viewers?". [/INST] SELECT "written_by" FROM "table1_2866514_1" WHERE "u_s_viewers_million"='3.96';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_4" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real );. Question: "What was the maximum value that Christer Tornell gave when Trine Dehli Cleve gave a 9?". [/INST] SELECT MAX("christer_tornell") FROM "week_4" WHERE "trine_dehli_cleve"=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 "scoring_statistics" ( "player" text, "games" real, "field_goals" real, "free_throws" real, "points" real, "points_per_game" text );. Question: "How many points per game did Jack Williams score?". [/INST] SELECT COUNT("points_per_game") FROM "scoring_statistics" WHERE "player"='Jack Williams';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_statistics" ( "player" text, "games" real, "field_goals" real, "free_throws" real, "points" real, "points_per_game" text );. Question: "How many games did Robert Peare play?". [/INST] SELECT MAX("games") FROM "scoring_statistics" WHERE "player"='Robert Peare';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_statistics" ( "player" text, "games" real, "field_goals" real, "free_throws" real, "points" real, "points_per_game" text );. Question: "How many free throws did Charles Pearman score?". [/INST] SELECT MAX("free_throws") FROM "scoring_statistics" WHERE "player"='Charles Pearman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_statistics" ( "player" text, "games" real, "field_goals" real, "free_throws" real, "points" real, "points_per_game" text );. Question: "How many points per game did Benjamin Weiss score?". [/INST] SELECT "points_per_game" FROM "scoring_statistics" WHERE "player"='Benjamin Weiss';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_statistics" ( "player" text, "games" real, "field_goals" real, "free_throws" real, "points" real, "points_per_game" text );. Question: "How many points per game did the person who played in 15 games and made 0 free throws score?". [/INST] SELECT "points_per_game" FROM "scoring_statistics" WHERE "games"=15 AND "free_throws"=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 "performance_table" ( "school" text, "titles" real, "shared_titles" real, "runners_up" real, "total_finals" real, "last_title" text, "last_final" real );. Question: "How many shared titles does the club whose last final was 2012 have?". [/INST] SELECT "shared_titles" FROM "performance_table" WHERE "last_final"=2012;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_table" ( "school" text, "titles" real, "shared_titles" real, "runners_up" real, "total_finals" real, "last_title" text, "last_final" real );. Question: "What was the year of the last final for the club whose last title was 1990?". [/INST] SELECT "last_final" FROM "performance_table" WHERE "last_title"='1990';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_table" ( "school" text, "titles" real, "shared_titles" real, "runners_up" real, "total_finals" real, "last_title" text, "last_final" real );. Question: "What is the minimum number of shared titles for the club whose last final was in 2006?". [/INST] SELECT MIN("shared_titles") FROM "performance_table" WHERE "last_final"=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 "performance_table" ( "school" text, "titles" real, "shared_titles" real, "runners_up" real, "total_finals" real, "last_title" text, "last_final" real );. Question: "What is the latest year of last final for the club whose last title was in 1994?". [/INST] SELECT MAX("last_final") FROM "performance_table" WHERE "last_title"='1994';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_table" ( "school" text, "titles" real, "shared_titles" real, "runners_up" real, "total_finals" real, "last_title" text, "last_final" real );. Question: "What are the number of runners up for Royal School Dungannon?". [/INST] SELECT "runners_up" FROM "performance_table" WHERE "school"='Royal School Dungannon';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.