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 "series_2_spearhead_in_germany" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text );. Question: "For episode number 2-03, what are the names of the cast?". [/INST] SELECT "cast" FROM "series_2_spearhead_in_germany" WHERE "episode_num"='2-03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25703_2" ( "january_december_2012" text, "birth_2012" real, "birth_2011" real, "death_2012" real, "death_2011" real );. Question: "What is the total number of birth/2012 for January–December 2012 in Kurgan Oblast?". [/INST] SELECT COUNT("birth_2012") FROM "table1_25703_2" WHERE "january_december_2012"='Kurgan Oblast';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25703_2" ( "january_december_2012" text, "birth_2012" real, "birth_2011" real, "death_2012" real, "death_2011" real );. Question: "What were the total number of 2012 deaths when 2012 births were 127?". [/INST] SELECT "death_2012" FROM "table1_25703_2" WHERE "birth_2012"=127;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25703_2" ( "january_december_2012" text, "birth_2012" real, "birth_2011" real, "death_2012" real, "death_2011" real );. Question: "What were the total number of 2012 births for the January–December 2012 Tver Oblast region?". [/INST] SELECT MIN("birth_2012") FROM "table1_25703_2" WHERE "january_december_2012"='Tver Oblast';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25703_2" ( "january_december_2012" text, "birth_2012" real, "birth_2011" real, "death_2012" real, "death_2011" real );. Question: "What were the total 2012 births when the 2012 deaths were 163?". [/INST] SELECT MIN("birth_2012") FROM "table1_25703_2" WHERE "death_2012"=163;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "How many pf catagories are listed for the skip that had 3 for l". [/INST] SELECT COUNT("pf") FROM "standings" WHERE "l"=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 "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "How many l's are there for the skip with 3 for w? ". [/INST] SELECT MAX("l") FROM "standings" WHERE "w"=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 "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "How many skip's are listed for 30 ends won? ". [/INST] SELECT COUNT("skip_club") FROM "standings" WHERE "ends_won"=30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "How many ends won catagories are listed when there are 8 stolen ends? ". [/INST] SELECT COUNT("ends_won") FROM "standings" WHERE "stolen_ends"=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 "scoring_summary" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_4_points" real, "safeties_2_points" real, "total_points" real );. Question: "How many extra points did Germany Schultz score? ". [/INST] SELECT "extra_points_1_point" FROM "scoring_summary" WHERE "player"='Germany Schultz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summary" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_4_points" real, "safeties_2_points" real, "total_points" real );. Question: "What is the least number of field goals scored by a player? ". [/INST] SELECT MIN("field_goals_4_points") FROM "scoring_summary";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summary" ( "player" text, "touchdowns_5_points" real, "extra_points_1_point" real, "field_goals_4_points" real, "safeties_2_points" real, "total_points" real );. Question: "How many field goals were scored by the player that got 7 touchdowns? ". [/INST] SELECT "field_goals_4_points" FROM "scoring_summary" WHERE "touchdowns_5_points"=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 "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "How many ends were won where the blank ends are smaller than 3.0?". [/INST] SELECT "ends_won" FROM "standings" WHERE "blank_ends"<3.0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is the largest amount of ends won when stolen ends were 3?". [/INST] SELECT MAX("ends_won") FROM "standings" WHERE "stolen_ends"=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 "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is the number of wins when ends won is 30?". [/INST] SELECT MAX("w") FROM "standings" WHERE "ends_won"=30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2572788_1" ( "county" text, "town_city" text, "milepost" text, "station" text, "connections" text );. Question: "How many counties are at milepost 69.5? ". [/INST] SELECT COUNT("county") FROM "table1_2572788_1" WHERE "milepost"='69.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_2572788_1" ( "county" text, "town_city" text, "milepost" text, "station" text, "connections" text );. Question: "In what city or town is Stratford (limited service)? ". [/INST] SELECT "town_city" FROM "table1_2572788_1" WHERE "station"='Stratford (Limited service)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2572788_1" ( "county" text, "town_city" text, "milepost" text, "station" text, "connections" text );. Question: "At what city or town is milepost 71.1? ". [/INST] SELECT "town_city" FROM "table1_2572788_1" WHERE "milepost"='71.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 "table1_2572788_1" ( "county" text, "town_city" text, "milepost" text, "station" text, "connections" text );. Question: "How many towns or cities are at milepost 71.1? ". [/INST] SELECT COUNT("town_city") FROM "table1_2572788_1" WHERE "milepost"='71.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 "table1_2572788_1" ( "county" text, "town_city" text, "milepost" text, "station" text, "connections" text );. Question: "At what milepost is Beacon Falls? ". [/INST] SELECT "milepost" FROM "table1_2572788_1" WHERE "town_city"='Beacon Falls';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_2_2010" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real );. Question: "How many people wrote episode number 2 of the season?". [/INST] SELECT COUNT("writer") FROM "series_2_2010" WHERE "num"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_2_2010" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real );. Question: "What episode number of the season did Tony Basgallop write?". [/INST] SELECT MIN("num") FROM "series_2_2010" WHERE "writer"='Tony Basgallop';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_2_2010" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real );. Question: "What episode number of the season is episode number 11 in the series?". [/INST] SELECT MAX("num") FROM "series_2_2010" WHERE "no"=11;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_2_2010" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real );. Question: "How many items are listed under the column 'viewing figure' for "the looking glass"?". [/INST] SELECT COUNT("viewing_figure") FROM "series_2_2010" WHERE "episode"='\"The Looking Glass\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "domestic" ( "nations" text, "competition" text, "teams" real, "established" real, "latest_year" text, "winner" text, "runner_up" text, "tier_division" text );. Question: "Which competition did the toronto city saints win?". [/INST] SELECT "competition" FROM "domestic" WHERE "winner"='Toronto City 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 "domestic" ( "nations" text, "competition" text, "teams" real, "established" real, "latest_year" text, "winner" text, "runner_up" text, "tier_division" text );. Question: "What was the number of teams in the competition that wynnum manly seagulls won?". [/INST] SELECT MIN("teams") FROM "domestic" WHERE "winner"='Wynnum Manly Seagulls';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "domestic" ( "nations" text, "competition" text, "teams" real, "established" real, "latest_year" text, "winner" text, "runner_up" text, "tier_division" text );. Question: "How many cook island league competitions were there?". [/INST] SELECT COUNT("latest_year") FROM "domestic" WHERE "competition"='Cook Island League';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biography" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "How many positions are shown for the 2010 season?". [/INST] SELECT COUNT("position") FROM "biography" WHERE "season"=2010;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biography" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What is the season with podiums more than 2.0?". [/INST] SELECT MAX("season") FROM "biography" WHERE "podiums">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 "biography" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "Which series is in position nc?". [/INST] SELECT "series" FROM "biography" WHERE "position"='NC';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "biography" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What are the f/laps for race 14?". [/INST] SELECT "f_laps" FROM "biography" WHERE "races"=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 "biography" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "How many flaps are there for the team march 3 racing (1-4) top speed racing team (5-12)?". [/INST] SELECT COUNT("f_laps") FROM "biography" WHERE "team"='March 3 Racing (1-4) Top Speed Racing Team (5-12)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "defense" ( "player" text, "g" real, "solo_tk" real, "asst_tk" real, "total_tk" real, "sack" text, "yd_l" real, "int" real, "yards" real, "for_fum" real, "fum_rec" real, "td" real );. Question: "If the player is Maake Kemoeatu, what is the int maximum?". [/INST] SELECT MAX("int") FROM "defense" WHERE "player"='Maake Kemoeatu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "defense" ( "player" text, "g" real, "solo_tk" real, "asst_tk" real, "total_tk" real, "sack" text, "yd_l" real, "int" real, "yards" real, "for_fum" real, "fum_rec" real, "td" real );. Question: "What is the ydi minimum?". [/INST] SELECT MIN("yd_l") FROM "defense";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "defense" ( "player" text, "g" real, "solo_tk" real, "asst_tk" real, "total_tk" real, "sack" text, "yd_l" real, "int" real, "yards" real, "for_fum" real, "fum_rec" real, "td" real );. Question: "What is the fumrec minimum?". [/INST] SELECT MIN("fum_rec") FROM "defense";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "defense" ( "player" text, "g" real, "solo_tk" real, "asst_tk" real, "total_tk" real, "sack" text, "yd_l" real, "int" real, "yards" real, "for_fum" real, "fum_rec" real, "td" real );. Question: "If the player is Reed Doughty, what isthe fumrec?". [/INST] SELECT "fum_rec" FROM "defense" WHERE "player"='Reed Doughty';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_performances" ( "season" text, "led_team_in_scoring" real, "led_team_in_rebounding" real, "30_points" real, "20_rebounds" real, "10_rebounds" real, "20_20" real, "double_double" real, "5_blocks" real );. Question: "How many games did he lead team in rebounding in the season when his 5 blocks stat is 10?". [/INST] SELECT "led_team_in_rebounding" FROM "career_performances" WHERE "5_blocks"=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 "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text );. Question: "What stadium(sO does san juan jabloteh play in?". [/INST] SELECT "stadium" FROM "team_summaries" WHERE "team"='San Juan Jabloteh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text );. Question: "Wh owas the captian of the north east stars?". [/INST] SELECT "captain" FROM "team_summaries" WHERE "team"='North East Stars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text );. Question: "What was the maximum capacity of larry gomes stadium?". [/INST] SELECT MAX("capacity") FROM "team_summaries" WHERE "stadium"='Larry Gomes Stadium';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12_1966_67" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "What is the lowest season #?". [/INST] SELECT MIN("season_num") FROM "season_12_1966_67";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_12_1966_67" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "Who directed series # 422?". [/INST] SELECT "director" FROM "season_12_1966_67" WHERE "series_num"=422;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12_1966_67" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "How many directors were there for series # 431?". [/INST] SELECT COUNT("director") FROM "season_12_1966_67" WHERE "series_num"=431;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_12_1966_67" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "Who directed the episode with a title of " old friend "?". [/INST] SELECT "director" FROM "season_12_1966_67" WHERE "title"='\" Old Friend \"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25800134_12" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "What episode number of the series aired on February 26, 1968?". [/INST] SELECT "series_num" FROM "table1_25800134_12" WHERE "airdate"='February 26, 1968';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25800134_12" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "How many people directed the episode that aired on February 5, 1968?". [/INST] SELECT COUNT("director") FROM "table1_25800134_12" WHERE "airdate"='February 5, 1968';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25800134_12" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "Who directed the episode that aired on September 25, 1967?". [/INST] SELECT "director" FROM "table1_25800134_12" WHERE "airdate"='September 25, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25800134_12" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "Who directed the episode that aired on February 19, 1968?". [/INST] SELECT "director" FROM "table1_25800134_12" WHERE "airdate"='February 19, 1968';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25800134_12" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "How many episode titles aired on September 25, 1967?". [/INST] SELECT COUNT("title") FROM "table1_25800134_12" WHERE "airdate"='September 25, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_19_1973_74" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "name the most series number for season 22". [/INST] SELECT MAX("series_num") FROM "season_19_1973_74" WHERE "season_num"=22;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "team_classification" text );. Question: "What is the earliest stage where mountains classifications was awarded to Peter Stetina? ". [/INST] SELECT MIN("stage") FROM "classification_leadership" WHERE "mountains_classification"='Peter Stetina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10_1964_65" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "what is the title where the airdate is december 5, 1964?". [/INST] SELECT "title" FROM "season_10_1964_65" WHERE "airdate"='December 5, 1964';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10_1964_65" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text );. Question: "what is the number of series where the airdate is december 26, 1964?". [/INST] SELECT COUNT("series_num") FROM "season_10_1964_65" WHERE "airdate"='December 26, 1964';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "Who was the actor/actress with a first appearance is 3 june 2007?". [/INST] SELECT "actor_actress" FROM "characters" WHERE "first_appearance"='3 June 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "Who was the actor/actress with a last appearance of 1 january 2010 and total is 20 and character is vanessa 'nessa' jenkins?". [/INST] SELECT "actor_actress" FROM "characters" WHERE "last_appearance"='1 January 2010' AND "total"=20 AND "character"='Vanessa ''Nessa'' Jenkins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "What is the highest total number?". [/INST] SELECT MAX("total") FROM "characters";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "How many characters where actor/actress is larry lamb?". [/INST] SELECT COUNT("character") FROM "characters" WHERE "actor_actress"='Larry Lamb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "What was the last appearance of actor/actress is pam ferris?". [/INST] SELECT "last_appearance" FROM "characters" WHERE "actor_actress"='Pam Ferris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "characters" ( "actor_actress" text, "character" text, "first_appearance" text, "last_appearance" text, "duration" text, "total" real );. Question: "How many total are there when actor/actress is pam ferris?". [/INST] SELECT "total" FROM "characters" WHERE "actor_actress"='Pam Ferris';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "merchandise_trade" ( "country" text, "population_in_2011_in_thousands" real, "gdp_nominal_in_2011_usd_millions" real, "gdp_nominal_per_capita" real, "gdp_ppp_in_2011_usd_millions" real, "gdp_ppp_per_capita" real, "merchandise_exports_billions_2011" text, "merchandise_imports_billions_2011" text, "exports_to_mercosur_pct_of_each_2010" text, "imports_from_mercosur_pct_of_each_2010" text );. Question: "How many different imports from Mercosur had a % of 18.0?". [/INST] SELECT COUNT("gdp_nominal_per_capita") FROM "merchandise_trade" WHERE "imports_from_mercosur_pct_of_each_2010"='18.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 "merchandise_trade" ( "country" text, "population_in_2011_in_thousands" real, "gdp_nominal_in_2011_usd_millions" real, "gdp_nominal_per_capita" real, "gdp_ppp_in_2011_usd_millions" real, "gdp_ppp_per_capita" real, "merchandise_exports_billions_2011" text, "merchandise_imports_billions_2011" text, "exports_to_mercosur_pct_of_each_2010" text, "imports_from_mercosur_pct_of_each_2010" text );. Question: "What is the GDP (ppp) in 2011 when the imports from Mercosur is 48.8?". [/INST] SELECT MIN("gdp_ppp_in_2011_usd_millions") FROM "merchandise_trade" WHERE "imports_from_mercosur_pct_of_each_2010"='48.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 "merchandise_trade" ( "country" text, "population_in_2011_in_thousands" real, "gdp_nominal_in_2011_usd_millions" real, "gdp_nominal_per_capita" real, "gdp_ppp_in_2011_usd_millions" real, "gdp_ppp_per_capita" real, "merchandise_exports_billions_2011" text, "merchandise_imports_billions_2011" text, "exports_to_mercosur_pct_of_each_2010" text, "imports_from_mercosur_pct_of_each_2010" text );. Question: "What is the lowest GDP (ppp) per capita?". [/INST] SELECT MIN("gdp_ppp_per_capita") FROM "merchandise_trade";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "What was the original air date of "unprepared"?". [/INST] SELECT "original_air_date" FROM "table1_25923164_1" WHERE "title"='\"Unprepared\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "Who directed the episode that had 12.88 million viewers?". [/INST] SELECT "directed_by" FROM "table1_25923164_1" WHERE "u_s_viewers_million"='12.88';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "What was the original air date of the episode written by amanda segel?". [/INST] SELECT "original_air_date" FROM "table1_25923164_1" WHERE "written_by"='Amanda Segel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "What was the original air date of the episode directed by gloria muzio?". [/INST] SELECT "original_air_date" FROM "table1_25923164_1" WHERE "directed_by"='Gloria Muzio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "Who wrote the episode "crash"?". [/INST] SELECT "written_by" FROM "table1_25923164_1" WHERE "title"='\"Crash\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25923164_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );. Question: "What was the original air date of the episode directed by frederick e. o. toye?". [/INST] SELECT "original_air_date" FROM "table1_25923164_1" WHERE "directed_by"='Frederick E. O. Toye';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?". [/INST] SELECT "top_10" FROM "nascar_nationwide_series" WHERE "team_s"='#10 Phil Parsons Racing' AND "avg_finish"='22.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 "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: "What is every year with average start of 27.2?". [/INST] SELECT "year" FROM "nascar_nationwide_series" WHERE "avg_start"='27.2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "How many values of top 10 for 5th position?". [/INST] SELECT COUNT("top_10") FROM "nascar_nationwide_series" WHERE "position"='5th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is every value for top 5 if average start is 21.9?". [/INST] SELECT "top_5" FROM "nascar_nationwide_series" WHERE "avg_start"='21.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 "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: "How many values for winnings correspond to average start of 19.0?". [/INST] SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "avg_start"='19.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_25987797_1" ( "school" text, "nickname" text, "location" text, "colors" text, "tenure" text );. Question: "What is the name of the school in Lucas ? ". [/INST] SELECT "location" FROM "table1_25987797_1" WHERE "school"='Lucas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_nfl_draft" ( "round_num" real, "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "What was the pick number for Andrew Quarless? ". [/INST] SELECT MAX("pick_num") FROM "2010_nfl_draft" WHERE "player"='Andrew Quarless';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_nfl_draft" ( "round_num" real, "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );. Question: "How many players are from Purdue? ". [/INST] SELECT COUNT("player") FROM "2010_nfl_draft" WHERE "college"='Purdue';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players_with_multiple_all_euroleague_tea" ( "player" text, "number_of_selections" real, "first_team" real, "second_team" real, "season_mvp" real, "final_four_mvp" real );. Question: "who are all the players when season mvp is less than 1.0 and second team is less than 1.0". [/INST] SELECT "player" FROM "players_with_multiple_all_euroleague_tea" WHERE "season_mvp"<1.0 AND "second_team"<1.0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players_with_multiple_all_euroleague_tea" ( "player" text, "number_of_selections" real, "first_team" real, "second_team" real, "season_mvp" real, "final_four_mvp" real );. Question: "when number of selection is 2 and first team is 1 who are all the player". [/INST] SELECT "player" FROM "players_with_multiple_all_euroleague_tea" WHERE "first_team"=1 AND "number_of_selections"=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 "players_with_multiple_all_euroleague_tea" ( "player" text, "number_of_selections" real, "first_team" real, "second_team" real, "season_mvp" real, "final_four_mvp" real );. Question: "what would be final four mvp maximum when first team is 1". [/INST] SELECT MAX("final_four_mvp") FROM "players_with_multiple_all_euroleague_tea" WHERE "first_team"=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 "players_with_multiple_all_euroleague_tea" ( "player" text, "number_of_selections" real, "first_team" real, "second_team" real, "season_mvp" real, "final_four_mvp" real );. Question: "when season mvp is larger than 1.0 what is the maximum number of selection". [/INST] SELECT MAX("number_of_selections") FROM "players_with_multiple_all_euroleague_tea" WHERE "season_mvp">1.0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "players_with_multiple_all_euroleague_tea" ( "player" text, "number_of_selections" real, "first_team" real, "second_team" real, "season_mvp" real, "final_four_mvp" real );. Question: "who is first team when dimitris diamantidis play.". [/INST] SELECT COUNT("first_team") FROM "players_with_multiple_all_euroleague_tea" WHERE "player"='Dimitris Diamantidis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "What is the earliest term limit for the senator who resides in Coshocton? ". [/INST] SELECT MIN("term_limited") FROM "members_of_the_127th_ohio_senate" WHERE "residence"='Coshocton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "What is the party for district 27? ". [/INST] SELECT "party" FROM "members_of_the_127th_ohio_senate" WHERE "district"=27;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "How many party classifications are there for the senator from Canton? ". [/INST] SELECT "party" FROM "members_of_the_127th_ohio_senate" WHERE "residence"='Canton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "What is the party affiliation for Senator David Goodman? ". [/INST] SELECT "party" FROM "members_of_the_127th_ohio_senate" WHERE "senator"='David 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 "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "What is the term limit for Senator Tom Niehaus? ". [/INST] SELECT MIN("term_limited") FROM "members_of_the_127th_ohio_senate" WHERE "senator"='Tom Niehaus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_the_127th_ohio_senate" ( "district" real, "senator" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "What is the party affiliation for senator mark Wagoner? ". [/INST] SELECT "party" FROM "members_of_the_127th_ohio_senate" WHERE "senator"='Mark Wagoner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "If the residence is Chagrin falls, who is the representative?". [/INST] SELECT "representative" FROM "house_of_representatives" WHERE "residence"='Chagrin Falls';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "If first elected on 2003 (appt.), when was the term limited?". [/INST] SELECT MIN("term_limited") FROM "house_of_representatives" WHERE "first_elected"='2003 (Appt.)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "How many times was Scott Oelslager a representative?". [/INST] SELECT COUNT("residence") FROM "house_of_representatives" WHERE "representative"='Scott Oelslager';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "In which district is the residence Dublin?". [/INST] SELECT "district" FROM "house_of_representatives" WHERE "residence"='Dublin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "If the representative is Dave Hall, when was the term limited?". [/INST] SELECT "term_limited" FROM "house_of_representatives" WHERE "representative"='Dave Hall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real );. Question: "If the Representative is Barbara sears, what is the district number?". [/INST] SELECT MAX("district") FROM "house_of_representatives" WHERE "representative"='Barbara Sears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_26139378_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text );. Question: "What is the original airdate of the episode titled "Taking it on the Chin"?". [/INST] SELECT "original_airdate" FROM "table1_26139378_1" WHERE "title"='\"Taking It on the Chin\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_26139378_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text );. Question: "What is the original airdate of the episode that had 8.23 million viewers?". [/INST] SELECT "original_airdate" FROM "table1_26139378_1" WHERE "viewers_in_millions"='8.23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_26139378_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text );. Question: "How many millions of viewers did Episode number 16 have?". [/INST] SELECT "viewers_in_millions" FROM "table1_26139378_1" WHERE "episode_num"=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 "table1_26139378_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text );. Question: "What number in the series episode was titled "Puppy Love"?". [/INST] SELECT "series_num" FROM "table1_26139378_1" WHERE "title"='\"Puppy Love\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "no_in_series" real, "no_in_season" real, "title" text, "vessel_type" text, "vessel_operator" text, "narrated_by" text, "original_air_date" real );. Question: "Name the vessel type for beluga shipping". [/INST] SELECT "vessel_type" FROM "season_4" WHERE "vessel_operator"='Beluga Shipping';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "no_in_series" real, "no_in_season" real, "title" text, "vessel_type" text, "vessel_operator" text, "narrated_by" text, "original_air_date" real );. Question: "Name the vessel type for dof subsea". [/INST] SELECT "vessel_type" FROM "season_4" WHERE "vessel_operator"='DOF Subsea';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "no_in_series" real, "no_in_season" real, "title" text, "vessel_type" text, "vessel_operator" text, "narrated_by" text, "original_air_date" real );. Question: "Name the most number in season ". [/INST] SELECT MIN("no_in_season") FROM "season_4";</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.