question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which series # had 0.852 U.S. viewers(millions)?
CREATE TABLE "table1_26808178_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.852';
1-26808178-3
Which original air date had 0.871 U.S. viewers (millions)?
CREATE TABLE "table1_26808178_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.871';
1-26808178-3
Which series # had 0.645 U.S. viewers(millions)?
CREATE TABLE "table1_26808178_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.645';
1-26808178-3
Who was the writer for the episode entitled "dic pics"?
CREATE TABLE "table1_26808178_3" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "written_by" FROM "table1_26808178_3" WHERE "title"='\"Dic Pics\"';
1-26808178-3
When 12th is the final placing what is the wins?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "final_placing" text );
SELECT "wins" FROM "career_summary" WHERE "final_placing"='12th';
1-26815674-1
When 24th is the final placing how many wins are there?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "final_placing" text );
SELECT COUNT("wins") FROM "career_summary" WHERE "final_placing"='24th';
1-26815674-1
What is the lowest overall amount of wins?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "final_placing" text );
SELECT MIN("wins") FROM "career_summary";
1-26815674-1
What date did the episode with production code 3aky05 air?
CREATE TABLE "table1_26824484_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_26824484_1" WHERE "production_code"='3AKY05';
1-26824484-1
Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?
CREATE TABLE "table1_26824484_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "title" FROM "table1_26824484_1" WHERE "directed_by"='Jeff Woolnough' AND "written_by"='Christopher Ambrose';
1-26824484-1
What was the original air date of the episode that was directed by Jessica Landaw?
CREATE TABLE "table1_26824484_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_26824484_1" WHERE "directed_by"='Jessica Landaw';
1-26824484-1
What is the episode number of the episode with a production code of 4aky14?
CREATE TABLE "table1_26825349_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "no_in_season" FROM "table1_26825349_1" WHERE "production_code"='4AKY14';
1-26825349-1
"The con man in the meth lab" was which episode number?
CREATE TABLE "table1_26825349_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "no_in_season" FROM "table1_26825349_1" WHERE "title"='\"The Con Man in the Meth Lab\"';
1-26825349-1
The episode that had 8.62 million US viewers originally aired on which date?
CREATE TABLE "table1_26825349_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_26825349_1" WHERE "u_s_viewers_millions"='8.62';
1-26825349-1
What was the result in the game broadcast on the Big East Network?
CREATE TABLE "week_five" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_five" WHERE "broadcast"='Big East Network';
1-26842217-12
What was the result in the game where the visiting team was Louisiana-Monroe?
CREATE TABLE "week_five" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_five" WHERE "visiting_team"='Louisiana-Monroe';
1-26842217-12
Who was the home team in the game broadcast on the Big East Network?
CREATE TABLE "week_five" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "home_team" FROM "week_five" WHERE "broadcast"='Big East Network';
1-26842217-12
What was the result in the game broadcast on the SEC Network?
CREATE TABLE "week_five" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_five" WHERE "broadcast"='SEC Network';
1-26842217-12
What is the number enrolled where t/vap is exactly 52.9%?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT "enrolled" FROM "electoral_districts" WHERE "t_vap"='52.9%';
1-2683116-1
How many districts have t/vap values of 67.0%?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT COUNT("district") FROM "electoral_districts" WHERE "t_vap"='67.0%';
1-2683116-1
What is the e/vap value for a turnout of exactly 85.7%?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT "e_vap" FROM "electoral_districts" WHERE "turnout"='85.7%';
1-2683116-1
What communes have enrolled values of 174946?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT "communes" FROM "electoral_districts" WHERE "enrolled"=174946;
1-2683116-1
How many total votes values are associated with t/vap values of 45.3%?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT COUNT("total_votes") FROM "electoral_districts" WHERE "t_vap"='45.3%';
1-2683116-1
How many vap values are associated with 140469 valid votes?
CREATE TABLE "electoral_districts" ( "district" real, "region" text, "communes" text, "population_2002_census" real, "pct_of_total_population" text, "vap" real, "enrolled" real, "total_votes" real, "valid_votes" real, "turnout" text, "e_vap" text, "t_vap" text, "v_vap" text );
SELECT COUNT("vap") FROM "electoral_districts" WHERE "valid_votes"=140469;
1-2683116-1
Name the time for georgia
CREATE TABLE "week_four" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_four" WHERE "visiting_team"='Georgia';
1-26842217-10
Name the time for #1 alabama
CREATE TABLE "week_four" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_four" WHERE "visiting_team"='#1 Alabama';
1-26842217-10
Name the time for result msst 29–24
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_eight" WHERE "result"='MSST 29–24';
1-26842217-18
Name the number of time for uab
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT COUNT("time") FROM "week_eight" WHERE "visiting_team"='UAB';
1-26842217-18
Name the date for broadcast fsn
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "date" FROM "week_eight" WHERE "broadcast"='FSN';
1-26842217-18
Name the broadcast for 7:00pm and mississippi state
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "broadcast" FROM "week_eight" WHERE "time"='7:00pm' AND "home_team"='Mississippi State';
1-26842217-18
Name the date for espn
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "date" FROM "week_eight" WHERE "broadcast"='ESPN';
1-26842217-18
Name the broadcast for davis-wade stadium • starkville ms
CREATE TABLE "week_eight" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "broadcast" FROM "week_eight" WHERE "site"='Davis-Wade Stadium • Starkville MS';
1-26842217-18
On what network was the Kentucky game broadcast?
CREATE TABLE "week_seven" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "broadcast" FROM "week_seven" WHERE "home_team"='Kentucky';
1-26842217-16
Where's the louisiana-lafayette as a visiting team?
CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "site" FROM "week_one" WHERE "visiting_team"='Louisiana-Lafayette';
1-26842217-4
What were the results of the tennessee tech as a visiting team?
CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_one" WHERE "visiting_team"='Tennessee Tech';
1-26842217-4
What is the home team where the San Jose state is the visiting team?
CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "home_team" FROM "week_one" WHERE "visiting_team"='San Jose State';
1-26842217-4
What were the results in the bryant-denny stadium • tuscaloosa, al?
CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_one" WHERE "site"='Bryant-Denny Stadium • Tuscaloosa, AL';
1-26842217-4
What home team is at 7:30pm in ESPN?
CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "home_team" FROM "week_one" WHERE "time"='7:30pm' AND "broadcast"='ESPN';
1-26842217-4
If the visiting team is Clemson, when was the time?
CREATE TABLE "week_three" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_three" WHERE "visiting_team"='Clemson';
1-26842217-8
How many times was the site wallace wade stadium • durham, nc?
CREATE TABLE "week_three" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "week_three" WHERE "site"='Wallace Wade Stadium • Durham, NC';
1-26842217-8
If the site was wallace wade stadium • durham, nc, what was the result?
CREATE TABLE "week_three" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "result" FROM "week_three" WHERE "site"='Wallace Wade Stadium • Durham, NC';
1-26842217-8
If the site is sanford stadium • athens, ga, what is the date?
CREATE TABLE "week_three" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "date" FROM "week_three" WHERE "site"='Sanford Stadium • Athens, GA';
1-26842217-8
What is the production code for the movie with 4.32 million U.S. viewers?
CREATE TABLE "table1_26845668_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );
SELECT "production_code" FROM "table1_26845668_1" WHERE "u_s_viewers_millions"='4.32';
1-26845668-1
How many times was Louisiana-Monroe a visiting team?
CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT COUNT("time") FROM "week_two" WHERE "visiting_team"='Louisiana-Monroe';
1-26842217-6
List all dates where South Florida was a visiting team.
CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "date" FROM "week_two" WHERE "visiting_team"='South Florida';
1-26842217-6
How many times was #7 Oregon a visiting team?
CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_two" WHERE "visiting_team"='#7 Oregon';
1-26842217-6
List all home teams when Western Kentucky was the visiting team.
CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "home_team" FROM "week_two" WHERE "visiting_team"='Western Kentucky';
1-26842217-6
List all times with Kentucky as the home team.
CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real );
SELECT "time" FROM "week_two" WHERE "home_team"='Kentucky';
1-26842217-6
What is the score when the opposition is mid canterbury?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "score" FROM "2009" WHERE "opposition"='Mid Canterbury';
1-26847237-3
what is the home team when the opposition is east coast?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "home_team" FROM "2009" WHERE "opposition"='East Coast';
1-26847237-3
What is the home team when the opposition is wairarapa bush?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "home_team" FROM "2009" WHERE "opposition"='Wairarapa Bush';
1-26847237-3
what is the home team when the round # is round 1?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "home_team" FROM "2009" WHERE "round_num"='Round 1';
1-26847237-3
Who is the opposition when the score is 37 - 28?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "opposition" FROM "2009" WHERE "score"='37 - 28';
1-26847237-3
What is the location when the opposition is mid canterbury?
CREATE TABLE "2009" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "location" FROM "2009" WHERE "opposition"='Mid Canterbury';
1-26847237-3
What was the score in round 7?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "score" FROM "2008" WHERE "round_num"='Round 7';
1-26847237-1
Who was the home team when the opposition was Buller?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "home_team" FROM "2008" WHERE "opposition"='Buller';
1-26847237-1
Was it a win or loss for Wanganui in round 3?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "win_loss" FROM "2008" WHERE "round_num"='Round 3';
1-26847237-1
What was the location when the opposition was East Coast?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "location" FROM "2008" WHERE "opposition"='East Coast';
1-26847237-1
What was the score when the opposition was West Coast in Wanganui?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "score" FROM "2008" WHERE "opposition"='West Coast' AND "location"='Wanganui';
1-26847237-1
Was it a win or a loss for Wanganui in Paeroa?
CREATE TABLE "2008" ( "round_num" text, "home_team" text, "win_loss" text, "score" text, "opposition" text, "location" text );
SELECT "win_loss" FROM "2008" WHERE "location"='Paeroa';
1-26847237-1
What is every original air date for series# of 26?
CREATE TABLE "table1_26866205_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "original_airdate" FROM "table1_26866205_1" WHERE "series_num"=26;
1-26866205-1
Who is the director where title is "the comeback"?
CREATE TABLE "table1_26866277_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "director" FROM "table1_26866277_1" WHERE "title"='\"The Comeback\"';
1-26866277-1
The episode with the title "Written in Dust" is what episode #?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "episode_num" FROM "table1_26866233_1" WHERE "title"='\"Written in Dust\"';
1-26866233-1
Who are the directors of the episode in series # 54?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "director" FROM "table1_26866233_1" WHERE "series_num"=54;
1-26866233-1
The director of the episode with the title "The Sky is Falling" is who?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "director" FROM "table1_26866233_1" WHERE "title"='\"The Sky is Falling\"';
1-26866233-1
Who are the writers of the episode with the title "An Angel by Any Other Name"?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "writer" FROM "table1_26866233_1" WHERE "title"='\"An Angel by Any Other Name\"';
1-26866233-1
The episode where the director is Gene Reynolds has who as the writer?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "writer" FROM "table1_26866233_1" WHERE "director"='Gene Reynolds';
1-26866233-1
The episode with the original airdate December22,1996 has what title?
CREATE TABLE "table1_26866233_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "title" FROM "table1_26866233_1" WHERE "original_airdate"='December22,1996';
1-26866233-1
What was the original air date of the episode written by michael glassberg?
CREATE TABLE "table1_26866299_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "original_airdate" FROM "table1_26866299_1" WHERE "writer"='Michael Glassberg';
1-26866299-1
What was the original air date for episode number 96 in the series?
CREATE TABLE "table1_26866299_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "original_airdate" FROM "table1_26866299_1" WHERE "series_num"=96;
1-26866299-1
What was the first numbered episode in the series titled "the wind beneath our wings"?
CREATE TABLE "table1_26866299_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT MIN("series_num") FROM "table1_26866299_1" WHERE "title"='\"The Wind Beneath Our Wings\"';
1-26866299-1
What numbered episode in the series is directed by tim van patten and titled "black like monica"?
CREATE TABLE "table1_26866299_1" ( "series_num" real, "episode_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT MIN("series_num") FROM "table1_26866299_1" WHERE "director"='Tim Van Patten' AND "title"='\"Black Like Monica\"';
1-26866299-1
What episode number in the series is "millennium"?
CREATE TABLE "table1_26866434_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_air_date" text );
SELECT MIN("series_num") FROM "table1_26866434_1" WHERE "title"='\"Millennium\"';
1-26866434-1
Who wrote episode 122 in the series?
CREATE TABLE "table1_26866434_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_air_date" text );
SELECT "writer" FROM "table1_26866434_1" WHERE "series_num"=122;
1-26866434-1
Who wrote "Monica's bad day"?
CREATE TABLE "table1_26866434_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_air_date" text );
SELECT "writer" FROM "table1_26866434_1" WHERE "title"='\"Monica''s Bad Day\"';
1-26866434-1
Who directed series episode number 201?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "director" FROM "table1_26866519_1" WHERE "series_num"=201;
1-26866519-1
What is the first series episode number for "the christmas watch"?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT MIN("series_num") FROM "table1_26866519_1" WHERE "title"='\"The Christmas Watch\"';
1-26866519-1
What are the original air date(s) for season episode 20?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "original_airdate" FROM "table1_26866519_1" WHERE "season_num"=20;
1-26866519-1
Who wrote "at the end of the aisle"?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "writer" FROM "table1_26866519_1" WHERE "title"='\"At The End of the Aisle\"';
1-26866519-1
Who wrote "the word"?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT "writer" FROM "table1_26866519_1" WHERE "title"='\"The Word\"';
1-26866519-1
How many episodes are directed by ricardo mendez matta?
CREATE TABLE "table1_26866519_1" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer" text, "original_airdate" text );
SELECT COUNT("season_num") FROM "table1_26866519_1" WHERE "director"='Ricardo Mendez Matta';
1-26866519-1
Name the leaast points for standing 5th
CREATE TABLE "central_hockey_league" ( "season" text, "games" real, "wins" real, "losses" real, "ties" real, "points" real, "goals_for" real, "goals_against" real, "standing" text, "playoffs" text );
SELECT MIN("points") FROM "central_hockey_league" WHERE "standing"='5th';
1-26882866-1
If puma is 12, what is camper?
CREATE TABLE "table1_26894949_2" ( "event" text, "start_date" text, "finish_date" text, "start" text, "finish" text, "distance" text, "abu_dhabi" text, "camper" real, "groupama" real, "puma" text, "sanya" text, "telef_nica" real );
SELECT MIN("camper") FROM "table1_26894949_2" WHERE "puma"='12';
1-26894949-2
In how many events was Puma 20 and abu dhabi 30?
CREATE TABLE "table1_26894949_2" ( "event" text, "start_date" text, "finish_date" text, "start" text, "finish" text, "distance" text, "abu_dhabi" text, "camper" real, "groupama" real, "puma" text, "sanya" text, "telef_nica" real );
SELECT COUNT("event") FROM "table1_26894949_2" WHERE "puma"='20' AND "abu_dhabi"='30';
1-26894949-2
How many time was the distance Abu Dhabi?
CREATE TABLE "table1_26894949_2" ( "event" text, "start_date" text, "finish_date" text, "start" text, "finish" text, "distance" text, "abu_dhabi" text, "camper" real, "groupama" real, "puma" text, "sanya" text, "telef_nica" real );
SELECT COUNT("sanya") FROM "table1_26894949_2" WHERE "distance"='Abu Dhabi';
1-26894949-2
When czech republic is the country what is the lowest amount l?
CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );
SELECT MIN("l") FROM "standings" WHERE "country"='Czech Republic';
1-26912584-2
What is the largest amount of ends lost?
CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );
SELECT MAX("ends_lost") FROM "standings";
1-26912584-2
When sweden is the country who is the skip?
CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );
SELECT "skip" FROM "standings" WHERE "country"='Sweden';
1-26912584-2
When chen lu'an is the skip what is the lowest amount l's?
CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );
SELECT MIN("l") FROM "standings" WHERE "skip"='Chen Lu''an';
1-26912584-2
Who wrote the story viewed by 0.53 million viewers?
CREATE TABLE "table1_26914076_3" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "story_by" FROM "table1_26914076_3" WHERE "u_s_viewers_millions"='0.53';
1-26914076-3
How many viewers watched the episode with a story by david simon & mari kornhauser?
CREATE TABLE "table1_26914076_3" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_26914076_3" WHERE "story_by"='David Simon & Mari Kornhauser';
1-26914076-3
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
CREATE TABLE "table1_26914076_3" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT COUNT("u_s_viewers_millions") FROM "table1_26914076_3" WHERE "directed_by"='Rob Bailey';
1-26914076-3
What is the date the episode directed by rob bailey aired?
CREATE TABLE "table1_26914076_3" ( "no" real, "num" real, "title" text, "directed_by" text, "story_by" text, "teleplay_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_26914076_3" WHERE "directed_by"='Rob Bailey';
1-26914076-3
WHich team had dave penney as an incoming manager
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text, "position_in_table" text );
SELECT "team" FROM "managerial_changes" WHERE "incoming_manager"='Dave Penney';
1-26914759-3
What was the manner of departure for notts county with an incoming manager of martin allen
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text, "position_in_table" text );
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Notts County' AND "incoming_manager"='Martin Allen';
1-26914759-3
How many teams had gary megson as an incoming manager
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text, "position_in_table" text );
SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "incoming_manager"='Gary Megson';
1-26914759-3
who was the incoming manager for the 12th position in the table
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text, "position_in_table" text );
SELECT "incoming_manager" FROM "managerial_changes" WHERE "position_in_table"='12th';
1-26914759-3
How tall is the player from farmington, ky?
CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "age" real, "home_town" text, "team_school" text );
SELECT "height" FROM "roster" WHERE "home_town"='Farmington, KY';
1-26916717-1
Where did adrian smith go to college?
CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "age" real, "home_town" text, "team_school" text );
SELECT "team_school" FROM "roster" WHERE "name"='Adrian Smith';
1-26916717-1
What player attended california university?
CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "age" real, "home_town" text, "team_school" text );
SELECT "name" FROM "roster" WHERE "team_school"='California';
1-26916717-1
What is the name of the player from purcell, ok?
CREATE TABLE "roster" ( "name" text, "position" text, "height" text, "weight" real, "age" real, "home_town" text, "team_school" text );
SELECT "name" FROM "roster" WHERE "home_town"='Purcell, OK';
1-26916717-1