text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25703_1" ( "january_september_2013" text, "birth_2013" real, "birth_2012" real, "death_2013" real, "death_2012" text ); Question: What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast? <|assistant|> SELECT "death_2012" FROM "table1_25703_1" WHERE "death_2013"=140 AND "january_september_2013"='Moscow Oblast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25703_1" ( "january_september_2013" text, "birth_2013" real, "birth_2012" real, "death_2013" real, "death_2012" text ); Question: How many figures for birth/2013 when January-September is Oryol Oblast? <|assistant|> SELECT COUNT("birth_2013") FROM "table1_25703_1" WHERE "january_september_2013"='Oryol Oblast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_65_ohio_wesleyan_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns did the player took which gained 25 points? <|assistant|> SELECT "touchdowns" FROM "michigan_65_ohio_wesleyan_0" WHERE "points"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_65_ohio_wesleyan_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many maximum points did Curtis scored? <|assistant|> SELECT MAX("points") FROM "michigan_65_ohio_wesleyan_0" WHERE "player"='Curtis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_65_ohio_wesleyan_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns did the left guard took? <|assistant|> SELECT MAX("touchdowns") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Left guard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_65_ohio_wesleyan_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many numbers were recorded on the fields goals of the Left End player? <|assistant|> SELECT COUNT("field_goals") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Left end';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_65_ohio_wesleyan_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What was the minimum touchdowns of the Fullback player? <|assistant|> SELECT MIN("touchdowns") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Fullback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_70_albion_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns did the fullback score? <|assistant|> SELECT MIN("touchdowns") FROM "michigan_70_albion_0" WHERE "position"='Fullback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_70_albion_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many figures are provided for Weeks' field goals? <|assistant|> SELECT COUNT("field_goals") FROM "michigan_70_albion_0" WHERE "player"='Weeks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_70_albion_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What is the most points recorded for a right halfback? <|assistant|> SELECT MAX("points") FROM "michigan_70_albion_0" WHERE "position"='Right halfback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_70_albion_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Was Magoffin a starting player? <|assistant|> SELECT "starter" FROM "michigan_70_albion_0" WHERE "player"='Magoffin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_70_albion_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which player was at position left tackle? <|assistant|> SELECT "player" FROM "michigan_70_albion_0" WHERE "position"='Left tackle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the original air date for the episode written by daniel dratch? <|assistant|> SELECT "original_air_date" FROM "table1_25716399_1" WHERE "written_by"='Daniel Dratch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What season was an episode directed by wendey stanzler? <|assistant|> SELECT MAX("no_in_season") FROM "table1_25716399_1" WHERE "directed_by"='Wendey Stanzler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What was the original air date where there were u.s. viewers (millions) is 5.60? <|assistant|> SELECT "original_air_date" FROM "table1_25716399_1" WHERE "u_s_viewers_millions"='5.60';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who was the writer for season 14? <|assistant|> SELECT "written_by" FROM "table1_25716399_1" WHERE "no_in_season"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who wrote the episode where the original air date is july20,2007? <|assistant|> SELECT "written_by" FROM "table1_25716399_1" WHERE "original_air_date"='July20,2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716399_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: what season was written by jonathan collier? <|assistant|> SELECT MAX("no_in_season") FROM "table1_25716399_1" WHERE "written_by"='Jonathan Collier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716397_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text ); Question: How many episodes were written by Tom Scharpling and Daniel Dratch? <|assistant|> SELECT COUNT("no_in_season") FROM "table1_25716397_1" WHERE "written_by"='Tom Scharpling and Daniel Dratch';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716397_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text ); Question: How many people directed the episode that Joe Toplyn wrote? <|assistant|> SELECT COUNT("directed_by") FROM "table1_25716397_1" WHERE "written_by"='Joe Toplyn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716397_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text ); Question: How many titles does the episode written by Joe Toplyn have? <|assistant|> SELECT COUNT("title") FROM "table1_25716397_1" WHERE "written_by"='Joe Toplyn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716397_1" ( "series_no" real, "no_in_season" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text ); Question: How many directors of episode 55? <|assistant|> SELECT COUNT("directed_by") FROM "table1_25716397_1" WHERE "series_no"=55;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25716401_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many titles are there for the episode written by Tom Scharpling? <|assistant|> SELECT COUNT("title") FROM "table1_25716401_1" WHERE "written_by"='Tom Scharpling';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "red_dwarf_x" ( "episode_no" real, "airdate" text, "dave_viewers" real, "dave_rank" real, "rank_cable" real, "dave_ja_vu_viewers" real, "total_viewers" real ); Question: Which episode number aired on 18 october 2012? <|assistant|> SELECT MIN("episode_no") FROM "red_dwarf_x" WHERE "airdate"='18 October 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "red_dwarf_x" ( "episode_no" real, "airdate" text, "dave_viewers" real, "dave_rank" real, "rank_cable" real, "dave_ja_vu_viewers" real, "total_viewers" real ); Question: What is the lowest cable rank of an episode with 1464000 viewers? <|assistant|> SELECT MIN("rank_cable") FROM "red_dwarf_x" WHERE "total_viewers"=1464000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "red_dwarf_x" ( "episode_no" real, "airdate" text, "dave_viewers" real, "dave_rank" real, "rank_cable" real, "dave_ja_vu_viewers" real, "total_viewers" real ); Question: What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers? <|assistant|> SELECT MAX("dave_viewers") FROM "red_dwarf_x" WHERE "dave_ja_vu_viewers"=119000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "red_dwarf_x" ( "episode_no" real, "airdate" text, "dave_viewers" real, "dave_rank" real, "rank_cable" real, "dave_ja_vu_viewers" real, "total_viewers" real ); Question: How many episodes aired on 25 october 2012? <|assistant|> SELECT COUNT("total_viewers") FROM "red_dwarf_x" WHERE "airdate"='25 October 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "red_dwarf_x" ( "episode_no" real, "airdate" text, "dave_viewers" real, "dave_rank" real, "rank_cable" real, "dave_ja_vu_viewers" real, "total_viewers" real ); Question: What was the airdate of the episode with 106000 dave ja vu viewers? <|assistant|> SELECT "airdate" FROM "red_dwarf_x" WHERE "dave_ja_vu_viewers"=106000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25721_4" ( "release" text, "num_of_discs" real, "region_1" text, "region_2" text, "region_4" text ); Question: How many DVDs where were in the complete collection series 1-8 with extras? <|assistant|> SELECT "num_of_discs" FROM "table1_25721_4" WHERE "release"='The Complete Collection Series 1-8 with extras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25721_4" ( "release" text, "num_of_discs" real, "region_1" text, "region_2" text, "region_4" text ); Question: Which release had 6 DVDs? <|assistant|> SELECT "release" FROM "table1_25721_4" WHERE "num_of_discs"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25721_4" ( "release" text, "num_of_discs" real, "region_1" text, "region_2" text, "region_4" text ); Question: How many region 1's did back to earth have? <|assistant|> SELECT COUNT("region_1") FROM "table1_25721_4" WHERE "release"='Back to Earth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many field goals did Walter Rheinschild have? <|assistant|> SELECT MAX("field_goals") FROM "scoring_leaders" WHERE "player"='Walter Rheinschild';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Jack Loell had how many extra points? <|assistant|> SELECT "extra_points" FROM "scoring_leaders" WHERE "player"='Jack Loell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many points did Donald Green score? <|assistant|> SELECT COUNT("points") FROM "scoring_leaders" WHERE "player"='Donald Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many field goals did Donald Green score? <|assistant|> SELECT COUNT("field_goals") FROM "scoring_leaders" WHERE "player"='Donald Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What was the least amount of points scored? <|assistant|> SELECT MIN("extra_points") FROM "scoring_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many extra points did Stanfield Wells make? <|assistant|> SELECT COUNT("extra_points") FROM "scoring_leaders" WHERE "player"='Stanfield Wells';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What are the most points listed? <|assistant|> SELECT MAX("points") FROM "scoring_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns were the when there was more than 1.0 extra point? <|assistant|> SELECT "touchdowns" FROM "scoring_leaders" WHERE "extra_points">1.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Name the player/s when there were 20 points with less than 1.0 extra point . <|assistant|> SELECT "player" FROM "scoring_leaders" WHERE "extra_points"<1.0 AND "points"=20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What were the least amount of field goals when Frederick L. Conklin played? <|assistant|> SELECT MIN("field_goals") FROM "scoring_leaders" WHERE "player"='Frederick L. Conklin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What is the least number of extra points? <|assistant|> SELECT MIN("extra_points") FROM "scoring_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many points did William Wasmund have? <|assistant|> SELECT "points" FROM "scoring_leaders" WHERE "player"='William Wasmund';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns did the player with 10 points have? <|assistant|> SELECT MIN("touchdowns") FROM "scoring_leaders" WHERE "points"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many points does George M. Lawton have? <|assistant|> SELECT MAX("points") FROM "scoring_leaders" WHERE "player"='George M. Lawton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Name the player for 1 touchdowns <|assistant|> SELECT "player" FROM "scoring_leaders" WHERE "touchdowns"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Name the least extra points <|assistant|> SELECT MIN("extra_points") FROM "scoring_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Name the least extra points <|assistant|> SELECT MIN("extra_points") FROM "scoring_leaders";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2009" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real ); Question: Who directed episode number 2? <|assistant|> SELECT "director" FROM "series_1_2009" WHERE "no"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2009" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real ); Question: What was the episode number that had 797000 viewers? <|assistant|> SELECT "no" FROM "series_1_2009" WHERE "viewing_figure"=797000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1_2009" ( "no" real, "num" real, "episode" text, "writer" text, "director" text, "original_air_date" text, "viewing_figure" real ); Question: Who directed the episode directed by colin teague? <|assistant|> SELECT "writer" FROM "series_1_2009" WHERE "director"='Colin Teague';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many episodes with the production code CA106 are there? <|assistant|> SELECT COUNT("written_by") FROM "table1_25740548_2" WHERE "production_code"='CA106';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who was the director for episodes that were written be Matthew Lau? <|assistant|> SELECT "directed_by" FROM "table1_25740548_2" WHERE "written_by"='Matthew Lau';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many episode were written by Brett Conrad? <|assistant|> SELECT COUNT("title") FROM "table1_25740548_2" WHERE "written_by"='Brett Conrad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many episodes were directed by Tim Matheson? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Tim Matheson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many episodes were directed by Rod Hardy? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Rod Hardy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who wrote the episode with 3.92 million US viewers? <|assistant|> SELECT "written_by" FROM "table1_25740548_3" WHERE "u_s_viewers_million"='3.92';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many original air dates are there for the episode with code CA210? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_25740548_3" WHERE "production_code"='CA210';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25740548_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who directed the episode "The Outsiders"? <|assistant|> SELECT "directed_by" FROM "table1_25740548_3" WHERE "title"='\"The Outsiders\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1? <|assistant|> SELECT COUNT("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='0.7/2' AND "rating"='2.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What is the lowest episode number that had a ratings/share (18-49) of 1.1/3? <|assistant|> SELECT MIN("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.1/3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2? <|assistant|> SELECT "rating" FROM "weekly_ratings" WHERE "share"=4 AND "rating_share_18_49"='0.7/2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4? <|assistant|> SELECT MIN("rank_night") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.3/4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_singles" ( "entered_a" text, "weeks_in_top_10" real, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_at_number_1" real ); Question: What is the song released by Travis? <|assistant|> SELECT "single" FROM "top_10_singles" WHERE "artist"='Travis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_singles" ( "entered_a" text, "weeks_in_top_10" real, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_at_number_1" real ); Question: error (see notes) <|assistant|> SELECT MIN("weeks_at_number_1") FROM "top_10_singles";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_singles" ( "entered_a" text, "weeks_in_top_10" real, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_at_number_1" real ); Question: What is the song by the musician panjabi mc? <|assistant|> SELECT "single" FROM "top_10_singles" WHERE "artist"='Panjabi MC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Where was the round 1 race? <|assistant|> SELECT "location" FROM "race_calendar_and_results" WHERE "round"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Who won the April 11 race? <|assistant|> SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "date"='April 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position? <|assistant|> SELECT "location" FROM "race_calendar_and_results" WHERE "pole_position"='Daniel Erickson' AND "fastest_lap"='Cole Morgan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: How many rounds were played on May 8? <|assistant|> SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "date"='May 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap? <|assistant|> SELECT "pole_position" FROM "race_calendar_and_results" WHERE "fastest_lap"='Victor Carbone' AND "location"='Braselton, Georgia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Where did Audette Racing win? <|assistant|> SELECT "location" FROM "race_calendar_and_results" WHERE "winning_team"='Audette Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25764073_3" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); Question: Name the directors for peter gawler <|assistant|> SELECT "director_s" FROM "table1_25764073_3" WHERE "writer_s"='Peter Gawler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25764073_3" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); Question: Name the least episode number for anne brooksbank and vicki madden <|assistant|> SELECT MIN("episode_num") FROM "table1_25764073_3" WHERE "writer_s"='Anne Brooksbank and Vicki Madden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25764073_3" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); Question: Name the title for season number 35 <|assistant|> SELECT "title" FROM "table1_25764073_3" WHERE "season_num"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_player_of_the_month_selection" ( "selection" real, "month" text, "season" text, "team_record" text, "points_per_game" text, "field_goal_percentage" text, "rebounds_per_game" text, "blocks_per_game" text ); Question: What were the points per game in the selection where the rebounds per game were 15.0? <|assistant|> SELECT "points_per_game" FROM "conference_player_of_the_month_selection" WHERE "rebounds_per_game"='15.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_player_of_the_month_selection" ( "selection" real, "month" text, "season" text, "team_record" text, "points_per_game" text, "field_goal_percentage" text, "rebounds_per_game" text, "blocks_per_game" text ); Question: What were the blocks per game in the selection where the field goal percentage was .594 (2nd)? <|assistant|> SELECT "blocks_per_game" FROM "conference_player_of_the_month_selection" WHERE "field_goal_percentage"='.594 (2nd)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formation_of_the_1st_arkansas_state_troo" ( "company" text, "name" text, "county" text, "militia_regiment" text, "commander" text, "organization_date" text ); Question: Name the name for company d <|assistant|> SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "company"='Company D';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formation_of_the_1st_arkansas_state_troo" ( "company" text, "name" text, "county" text, "militia_regiment" text, "commander" text, "organization_date" text ); Question: Name the name for organization date being unknown <|assistant|> SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "organization_date"='Unknown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formation_of_the_1st_arkansas_state_troo" ( "company" text, "name" text, "county" text, "militia_regiment" text, "commander" text, "organization_date" text ); Question: Name the name for desha <|assistant|> SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formation_of_the_1st_arkansas_state_troo" ( "company" text, "name" text, "county" text, "militia_regiment" text, "commander" text, "organization_date" text ); Question: Name the company for desha county <|assistant|> SELECT "company" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1956_57" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who wrote the episode with series number 56? <|assistant|> SELECT "writer_s" FROM "season_2_1956_57" WHERE "series_num"=56;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1956_57" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: What is largest series number for the episode that aired February 16, 1957? <|assistant|> SELECT MAX("series_num") FROM "season_2_1956_57" WHERE "airdate"='February 16, 1957';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1956_57" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who directed the episodes that aired December 15, 1956? <|assistant|> SELECT "director" FROM "season_2_1956_57" WHERE "airdate"='December 15, 1956';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_1956_57" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who wrote the episode that aired December 1, 1956? <|assistant|> SELECT "writer_s" FROM "season_2_1956_57" WHERE "airdate"='December 1, 1956';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_14_1968_69" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who was the writer of the episode that originally aired on October 14, 1968? <|assistant|> SELECT "writer_s" FROM "season_14_1968_69" WHERE "airdate"='October 14, 1968';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_1969_70" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: What is the season # for the episode with air date february 2, 1970? <|assistant|> SELECT MAX("season_num") FROM "season_15_1969_70" WHERE "airdate"='February 2, 1970';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_1972_73" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who was the writer who wrote the episode that was aired on September 11, 1972? <|assistant|> SELECT "writer_s" FROM "season_18_1972_73" WHERE "airdate"='September 11, 1972';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_20_1974_75" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who directed episode number 626 in the series? <|assistant|> SELECT "director" FROM "season_20_1974_75" WHERE "series_num"=626;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1957_58" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who are all the writers of episodes in season 24? <|assistant|> SELECT "writer_s" FROM "season_3_1957_58" WHERE "season_num"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1957_58" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: What is the title of the episode that aired on May 10, 1958? <|assistant|> SELECT "title" FROM "season_3_1957_58" WHERE "airdate"='May 10, 1958';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_1959_60" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who was the writer of episode 15? <|assistant|> SELECT "writer_s" FROM "season_5_1959_60" WHERE "season_num"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_1959_60" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: What is the title of #33? <|assistant|> SELECT "title" FROM "season_5_1959_60" WHERE "season_num"=33;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_1959_60" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: How many directors worked on #158? <|assistant|> SELECT COUNT("director") FROM "season_5_1959_60" WHERE "series_num"=158;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_1958_59" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: How many writers were for season #1? <|assistant|> SELECT COUNT("writer_s") FROM "season_4_1958_59" WHERE "season_num"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_1958_59" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "airdate" text ); Question: Who was the director for the episode on May 2, 1959? <|assistant|> SELECT "director" FROM "season_4_1958_59" WHERE "airdate"='May 2, 1959';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25810656_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name the number in series for production code being 204 <|assistant|> SELECT "no_in_series" FROM "table1_25810656_3" WHERE "production_code"=204;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25810656_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name the number of title for number in series being 25 <|assistant|> SELECT COUNT("title") FROM "table1_25810656_3" WHERE "no_in_series"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_riders_classification" text, "team_classification" text ); Question: What was the latest stage won by Mikhail Ignatiev? <|assistant|> SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Mikhail Ignatiev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25815180_1" ( "sec" real, "offence" text, "definition_example_or_notes" text, "civilian" text, "summary_hearing" text, "max_sentence_at_court_martial" text ); Question: What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person? <|assistant|> SELECT "summary_hearing" FROM "table1_25815180_1" WHERE "definition_example_or_notes"='Flying an aircraft so as to annoy any person';<|endoftext|>