question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
In Ca/Nv, what are all of the regional page #s?
CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text );
SELECT "regional_page_num" FROM "tbm_regions" WHERE "state_name"='CA/NV';
1-287659-2
What is the maximum number of 2nd places for Tajikistan?
CREATE TABLE "region_rank_by_number_of_wins" ( "region_represented" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text );
SELECT MAX("second_place") FROM "region_rank_by_number_of_wins" WHERE "region_represented"='Tajikistan';
1-2876467-3
What is the maximum number of 1st places for the country with exactly 1 third place?
CREATE TABLE "region_rank_by_number_of_wins" ( "region_represented" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text );
SELECT MAX("first_place") FROM "region_rank_by_number_of_wins" WHERE "third_place"=1;
1-2876467-3
How many values of total top 3 placements does Taiwan have?
CREATE TABLE "region_rank_by_number_of_wins" ( "region_represented" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text );
SELECT COUNT("total_top_3_placements") FROM "region_rank_by_number_of_wins" WHERE "region_represented"='Taiwan';
1-2876467-3
What is the name of the country when the ioc code is mas?
CREATE TABLE "table1_2879165_1" ( "ioc_code" text, "country" text, "network_station" text, "television_station" text, "radio_station" text );
SELECT "country" FROM "table1_2879165_1" WHERE "ioc_code"='MAS';
1-2879165-1
What is the ioc code when the country is listed as Singapore?
CREATE TABLE "table1_2879165_1" ( "ioc_code" text, "country" text, "network_station" text, "television_station" text, "radio_station" text );
SELECT "ioc_code" FROM "table1_2879165_1" WHERE "country"='Singapore';
1-2879165-1
What is listed in Network station when the country is Brunei?
CREATE TABLE "table1_2879165_1" ( "ioc_code" text, "country" text, "network_station" text, "television_station" text, "radio_station" text );
SELECT COUNT("network_station") FROM "table1_2879165_1" WHERE "country"='Brunei';
1-2879165-1
How many television station listing have a radio station as lao national radio?
CREATE TABLE "table1_2879165_1" ( "ioc_code" text, "country" text, "network_station" text, "television_station" text, "radio_station" text );
SELECT COUNT("television_station") FROM "table1_2879165_1" WHERE "radio_station"='Lao National Radio';
1-2879165-1
How many television station listings have a ioc code as mas?
CREATE TABLE "table1_2879165_1" ( "ioc_code" text, "country" text, "network_station" text, "television_station" text, "radio_station" text );
SELECT COUNT("television_station") FROM "table1_2879165_1" WHERE "ioc_code"='MAS';
1-2879165-1
Who wrote "the diaper incident"?
CREATE TABLE "table1_28768925_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_million" text );
SELECT "written_by" FROM "table1_28768925_1" WHERE "title"='\"The Diaper Incident\"';
1-28768925-1
Who directed "the diaper incident"?
CREATE TABLE "table1_28768925_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_million" text );
SELECT "directed_by" FROM "table1_28768925_1" WHERE "title"='\"The Diaper Incident\"';
1-28768925-1
Who wrote episode 27 in the series that was directed by Wendey Stanzler?
CREATE TABLE "table1_28768925_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_million" text );
SELECT "written_by" FROM "table1_28768925_1" WHERE "directed_by"='Wendey Stanzler' AND "no_in_series"=27;
1-28768925-1
What is the name of episode 43 in the series?
CREATE TABLE "table1_28768925_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_million" text );
SELECT "title" FROM "table1_28768925_1" WHERE "no_in_series"=43;
1-28768925-1
What date did the episode that had 8.84 million u.s. viewers originally air?
CREATE TABLE "table1_28768925_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_million" text );
SELECT "original_air_date" FROM "table1_28768925_1" WHERE "u_s_viewers_million"='8.84';
1-28768925-1
How many games have high assists as earl watson (11) and location attendance as Keyarena 16,841?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT COUNT("game") FROM "game_log" WHERE "high_assists"='Earl Watson (11)' AND "location_attendance"='KeyArena 16,841';
1-28768469-7
What is the record listed when the high assists is earl watson (6)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "high_assists"='Earl Watson (6)';
1-28768469-7
Where is the location attendance when the date is January 9?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "location_attendance" FROM "game_log" WHERE "date"='January 9';
1-28768469-7
What is listed in hight points when the high rebounds is listed as Nick Collison (10)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Nick Collison (10)';
1-28768469-7
What is listed in game when the location attendance is listed as Keyarena 16,841?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='KeyArena 16,841';
1-28768469-7
What was the airdate of the episode of production code 214?
CREATE TABLE "table1_28787871_3" ( "no_in_series" real, "no_in_season" real, "title" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_28787871_3" WHERE "production_code"=214;
1-28787871-3
How many numbers in the season have an air date of June 3, 2012?
CREATE TABLE "table1_28787871_3" ( "no_in_series" real, "no_in_season" real, "title" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );
SELECT COUNT("no_in_season") FROM "table1_28787871_3" WHERE "original_air_date"='June 3, 2012';
1-28787871-3
What is the highest production code of the episodes having a US viewership of exactly 2.3?
CREATE TABLE "table1_28787871_3" ( "no_in_series" real, "no_in_season" real, "title" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );
SELECT MAX("production_code") FROM "table1_28787871_3" WHERE "u_s_viewers_millions"='2.3';
1-28787871-3
How many millions of US viewers watched the episode titled "Happy Howl-o-ween"?
CREATE TABLE "table1_28787871_3" ( "no_in_series" real, "no_in_season" real, "title" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_28787871_3" WHERE "title"='\"Happy Howl-O-Ween\"';
1-28787871-3
When the number of wickets is 29, what was the economy?
CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );
SELECT "economy" FROM "bowling_averages" WHERE "wickets"=29;
1-28797906-3
How many wickets was there when the economy was 3.64?
CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );
SELECT "wickets" FROM "bowling_averages" WHERE "economy"='3.64';
1-28797906-3
What is the average of all the wickets that were 27?
CREATE TABLE "bowling_averages" ( "player" text, "county" text, "balls" real, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real, "5wi" real );
SELECT "average" FROM "bowling_averages" WHERE "wickets"=27;
1-28797906-3
Which branding has the callsign of DXGH?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT "branding" FROM "dzrh_nationwide" WHERE "callsign"='DXGH';
1-28794440-1
What type of station is within the 972khz frequency?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT "station_type" FROM "dzrh_nationwide" WHERE "frequency"='972kHz';
1-28794440-1
What types of stations are located in Cebu?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT "station_type" FROM "dzrh_nationwide" WHERE "location"='Cebu';
1-28794440-1
Where are all the 1485khz frequency located?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT "location" FROM "dzrh_nationwide" WHERE "frequency"='1485kHz';
1-28794440-1
How many locations have the callsign DXGH?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT COUNT("location") FROM "dzrh_nationwide" WHERE "callsign"='DXGH';
1-28794440-1
Where are the broadcasting companys with the callsign DWRH located?
CREATE TABLE "dzrh_nationwide" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text );
SELECT "location" FROM "dzrh_nationwide" WHERE "callsign"='DWRH';
1-28794440-1
Where is the audition city when the venue is upi convention center?
CREATE TABLE "table1_28793672_1" ( "episode_air_date" text, "audition_city" text, "date" text, "venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );
SELECT "audition_city" FROM "table1_28793672_1" WHERE "venue"='UPI Convention Center';
1-28793672-1
How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?
CREATE TABLE "table1_28793672_1" ( "episode_air_date" text, "audition_city" text, "date" text, "venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );
SELECT COUNT("golden_tickets") FROM "table1_28793672_1" WHERE "callback_venue"='RCTI Studio, Jakarta';
1-28793672-1
In what year was 1.35% the average vote per candidate?
CREATE TABLE "general_election_results" ( "year" text, "candidates" real, "total_votes" real, "average_votes_per_candidate" real, "pct_of_total_vote" text, "average_pct_of_vote_per_candidate" text, "saved_deposits" real, "number_of_m_ps" real );
SELECT "year" FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='1.35';
1-28819393-1
When 3.29% was the average per candidate, what was the number of average votes per candidate?
CREATE TABLE "general_election_results" ( "year" text, "candidates" real, "total_votes" real, "average_votes_per_candidate" real, "pct_of_total_vote" text, "average_pct_of_vote_per_candidate" text, "saved_deposits" real, "number_of_m_ps" real );
SELECT MIN("average_votes_per_candidate") FROM "general_election_results" WHERE "average_pct_of_vote_per_candidate"='3.29';
1-28819393-1
What was the percentage of total votes in 1997?
CREATE TABLE "general_election_results" ( "year" text, "candidates" real, "total_votes" real, "average_votes_per_candidate" real, "pct_of_total_vote" text, "average_pct_of_vote_per_candidate" text, "saved_deposits" real, "number_of_m_ps" real );
SELECT "pct_of_total_vote" FROM "general_election_results" WHERE "year"='1997';
1-28819393-1
How many shows were launched on CBS (2002)?
CREATE TABLE "dramas" ( "no" real, "name" text, "country" text, "original_channel" text, "no_of_episodes" real, "running_time" text, "launched" text, "date" text, "irst" text );
SELECT COUNT("launched") FROM "dramas" WHERE "original_channel"='CBS (2002)';
1-28803803-1
How many IRST figures for the show that premiered on Canale 5 (2006)?
CREATE TABLE "dramas" ( "no" real, "name" text, "country" text, "original_channel" text, "no_of_episodes" real, "running_time" text, "launched" text, "date" text, "irst" text );
SELECT COUNT("irst") FROM "dramas" WHERE "original_channel"='Canale 5 (2006)';
1-28803803-1
What is the original channel of the show with 88 episodes?
CREATE TABLE "dramas" ( "no" real, "name" text, "country" text, "original_channel" text, "no_of_episodes" real, "running_time" text, "launched" text, "date" text, "irst" text );
SELECT "original_channel" FROM "dramas" WHERE "no_of_episodes"=88;
1-28803803-1
What are the dates that Falling Angel aired?
CREATE TABLE "dramas" ( "no" real, "name" text, "country" text, "original_channel" text, "no_of_episodes" real, "running_time" text, "launched" text, "date" text, "irst" text );
SELECT "date" FROM "dramas" WHERE "name"='Falling Angel';
1-28803803-1
How many economy stats for the player with 2/19 BBI?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT COUNT("economy") FROM "bowling_averages" WHERE "bbi"='2/19';
1-28846752-13
Who is the player with an average of 35.42?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "player" FROM "bowling_averages" WHERE "average"='35.42';
1-28846752-13
What is the economy of the player with BBI of 3/33?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "economy" FROM "bowling_averages" WHERE "bbi"='3/33';
1-28846752-13
What is the average when the highest score is 151?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT "average" FROM "batting_averages" WHERE "highest_score"='151';
1-28846752-4
Who is the player when the highest score is 84?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT "player" FROM "batting_averages" WHERE "highest_score"='84';
1-28846752-4
How many runs are there when the highest score is 228*?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT MIN("runs") FROM "batting_averages" WHERE "highest_score"='228*';
1-28846752-4
What is the average when the 100s is listed as 7?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT "average" FROM "batting_averages" WHERE "100s"=7;
1-28846752-4
What is the innings when the highest score is 72?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT MAX("innings") FROM "batting_averages" WHERE "highest_score"='72';
1-28846752-4
What is the highest number listed for matches?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT MAX("matches") FROM "batting_averages";
1-28846752-8
How many entries is under 50s column when the average is 39.60?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT "50s" FROM "batting_averages" WHERE "average"='39.60';
1-28846752-8
How many runs are there when the 50s column is 3?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT MIN("runs") FROM "batting_averages" WHERE "50s"=3;
1-28846752-8
Who is the player when the average is 69.66?
CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "highest_score" text, "100s" real, "50s" real );
SELECT "player" FROM "batting_averages" WHERE "average"='69.66';
1-28846752-8
what is the minimumfor 5wi?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "innings" real, "wickets" real, "average" text, "bbi" text, "bbm" text, "5wi" real, "10wi" real );
SELECT MIN("5wi") FROM "bowling_averages";
1-28846752-5
how many 10wi and bbi is 6/101
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "innings" real, "wickets" real, "average" text, "bbi" text, "bbm" text, "5wi" real, "10wi" real );
SELECT COUNT("10wi") FROM "bowling_averages" WHERE "bbi"='6/101';
1-28846752-5
how many innings had bbi 4/26?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "innings" real, "wickets" real, "average" text, "bbi" text, "bbm" text, "5wi" real, "10wi" real );
SELECT "innings" FROM "bowling_averages" WHERE "bbi"='4/26';
1-28846752-5
how many 5wi with an average of 33.13?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "innings" real, "wickets" real, "average" text, "bbi" text, "bbm" text, "5wi" real, "10wi" real );
SELECT COUNT("5wi") FROM "bowling_averages" WHERE "average"='33.13';
1-28846752-5
how many innings have an average of 19.60?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "innings" real, "wickets" real, "average" text, "bbi" text, "bbm" text, "5wi" real, "10wi" real );
SELECT "innings" FROM "bowling_averages" WHERE "average"='19.60';
1-28846752-5
What is the average when the BBI is 3/27?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "average" FROM "bowling_averages" WHERE "bbi"='3/27';
1-28846752-9
Who is the player when the economy is 6.14?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "player" FROM "bowling_averages" WHERE "economy"='6.14';
1-28846752-9
Who is the player when the economy is 5.29?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "player" FROM "bowling_averages" WHERE "economy"='5.29';
1-28846752-9
What the number of matches when the BBI is 3/27?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT MIN("matches") FROM "bowling_averages" WHERE "bbi"='3/27';
1-28846752-9
What is the BBI whent the economy is 5.68?
CREATE TABLE "bowling_averages" ( "player" text, "matches" real, "overs" text, "wickets" real, "average" text, "economy" text, "bbi" text, "4wi" real );
SELECT "bbi" FROM "bowling_averages" WHERE "economy"='5.68';
1-28846752-9
What is the year listed when tied is listed as 11?
CREATE TABLE "short_tournaments" ( "year" text, "position" real, "games_played" real, "won" real, "tied" real, "lost" real, "goals_scored" real, "goals_against" real, "points" real, "postseason_place" text );
SELECT "year" FROM "short_tournaments" WHERE "tied"=11;
1-28848697-4
What is the goals against listed when the goals scored is 30?
CREATE TABLE "short_tournaments" ( "year" text, "position" real, "games_played" real, "won" real, "tied" real, "lost" real, "goals_scored" real, "goals_against" real, "points" real, "postseason_place" text );
SELECT "goals_against" FROM "short_tournaments" WHERE "goals_scored"=30;
1-28848697-4
How many goals scored entries are listed when the year is verano 2001?
CREATE TABLE "short_tournaments" ( "year" text, "position" real, "games_played" real, "won" real, "tied" real, "lost" real, "goals_scored" real, "goals_against" real, "points" real, "postseason_place" text );
SELECT COUNT("goals_scored") FROM "short_tournaments" WHERE "year"='Verano 2001';
1-28848697-4
What are goals scored when postition is 17 and tied is 5?
CREATE TABLE "short_tournaments" ( "year" text, "position" real, "games_played" real, "won" real, "tied" real, "lost" real, "goals_scored" real, "goals_against" real, "points" real, "postseason_place" text );
SELECT "goals_scored" FROM "short_tournaments" WHERE "position"=17 AND "tied"=5;
1-28848697-4
Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?
CREATE TABLE "jersey_progression" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Jaime Vergara' AND "team_classification"='Col es Pasion Café De Colombia 472';
1-28853064-15
Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?
CREATE TABLE "jersey_progression" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "general_classification" FROM "jersey_progression" WHERE "winner"='Sergio Luis Henao' AND "points_classification"='Sergio Luis Henao';
1-28853064-15
Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?
CREATE TABLE "jersey_progression" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "winner" FROM "jersey_progression" WHERE "mountains_classification"='Oscar Solis' AND "team_classification"='EPM-UNE';
1-28853064-15
In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?
CREATE TABLE "jersey_progression" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "stage" FROM "jersey_progression" WHERE "team_classification"='EPM-UNE' AND "mountains_classification"='Oscar Solis' AND "winner"='Jaime Vergara';
1-28853064-15
What is the highest series number for "The Devil Made Me Do It"?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MAX("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"';
1-28859177-2
What is the episode series number for "The Devil Made Me Do It" ?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("series_num") FROM "season_1_2003_2004" WHERE "title"='\"The Devil Made Me Do It\"';
1-28859177-2
What is the production code for "State of Grace"?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MAX("production_code") FROM "season_1_2003_2004" WHERE "title"='\"State of Grace\"';
1-28859177-2
Who directed the episode that aired November 21, 2003?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "season_1_2003_2004" WHERE "original_air_date"='November 21, 2003';
1-28859177-2
What is the episode series number of "St. Joan"?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "series_num" FROM "season_1_2003_2004" WHERE "title"='\"St. Joan\"';
1-28859177-2
How many episode titles have series number 4?
CREATE TABLE "season_1_2003_2004" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("title") FROM "season_1_2003_2004" WHERE "series_num"=4;
1-28859177-2
How may college/junior/club team has a the nhl team listed as Colorado Avalanche?
CREATE TABLE "round_five" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT COUNT("college_junior_club_team") FROM "round_five" WHERE "nhl_team"='Colorado Avalanche';
1-2886617-5
What player was picked by the New York Rangers?
CREATE TABLE "round_two" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_two" WHERE "nhl_team"='New York Rangers';
1-2886617-2
What position did the draft pick for Toronto Maple Leafs play?
CREATE TABLE "round_eight" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "position" FROM "round_eight" WHERE "nhl_team"='Toronto Maple Leafs';
1-2886617-8
Who did Edmonton Oilers get for their draft pick?
CREATE TABLE "round_eight" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_eight" WHERE "nhl_team"='Edmonton Oilers';
1-2886617-8
What college team did Milan Kostolny play for?
CREATE TABLE "round_eight" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Milan Kostolny';
1-2886617-8
What player was picked for Buffalo Sabres?
CREATE TABLE "round_eight" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_eight" WHERE "nhl_team"='Buffalo Sabres';
1-2886617-8
What NHL team picked Sergei Luchinkin?
CREATE TABLE "round_eight" ( "pick" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "nhl_team" FROM "round_eight" WHERE "player"='Sergei Luchinkin';
1-2886617-8
What is the minimum MotoGP/500cc ranking?
CREATE TABLE "grand_prix_motorcycle_racing_world_champ" ( "rank" real, "rider" text, "country" text, "winning_span" text, "moto_gp_500cc" real, "350cc" real, "moto2_250cc" real, "moto3_125cc" real, "80cc_50cc" real, "total" real );
SELECT MIN("moto_gp_500cc") FROM "grand_prix_motorcycle_racing_world_champ";
1-2889810-1
Who was the conference player of the year from an independent conference?
CREATE TABLE "table1_28884880_4" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );
SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "conference"='Independent';
1-28884880-4
Who was the conference player of the year when Alabama State was the tournament winner?
CREATE TABLE "table1_28884880_4" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );
SELECT "conference_player_of_the_year" FROM "table1_28884880_4" WHERE "tournament_winner"='Alabama State';
1-28884880-4
Who was the tournament winner in the Southwestern Athletic Conference?
CREATE TABLE "table1_28884880_4" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );
SELECT "tournament_winner" FROM "table1_28884880_4" WHERE "conference"='Southwestern Athletic Conference';
1-28884880-4
what is the crashandride cymbalpads for the drumset name td-9k2
CREATE TABLE "list_of_roland_drum_sets" ( "drum_set_name" text, "product_line" text, "years_available" text, "drum_module" text, "kick_drum_pad" text, "snare_pad" text, "tom_tom_pads" text, "hi_hat_pad_controller" text, "crashand_ride_cymbal_pads" text, "drum_stand_oftenoptional" text );
SELECT "crashand_ride_cymbal_pads" FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-9K2';
1-2889300-6
how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are
CREATE TABLE "list_of_roland_drum_sets" ( "drum_set_name" text, "product_line" text, "years_available" text, "drum_module" text, "kick_drum_pad" text, "snare_pad" text, "tom_tom_pads" text, "hi_hat_pad_controller" text, "crashand_ride_cymbal_pads" text, "drum_stand_oftenoptional" text );
SELECT COUNT("drum_set_name") FROM "list_of_roland_drum_sets" WHERE "drum_stand_oftenoptional"='HD-1/3Stand' AND "tom_tom_pads"='3xCloth-Head';
1-2889300-6
in which year was available the rubber as kickdrum pad
CREATE TABLE "list_of_roland_drum_sets" ( "drum_set_name" text, "product_line" text, "years_available" text, "drum_module" text, "kick_drum_pad" text, "snare_pad" text, "tom_tom_pads" text, "hi_hat_pad_controller" text, "crashand_ride_cymbal_pads" text, "drum_stand_oftenoptional" text );
SELECT "years_available" FROM "list_of_roland_drum_sets" WHERE "kick_drum_pad"='Rubber';
1-2889300-6
in the drum module td-5 what are the tom-tom pads
CREATE TABLE "list_of_roland_drum_sets" ( "drum_set_name" text, "product_line" text, "years_available" text, "drum_module" text, "kick_drum_pad" text, "snare_pad" text, "tom_tom_pads" text, "hi_hat_pad_controller" text, "crashand_ride_cymbal_pads" text, "drum_stand_oftenoptional" text );
SELECT "tom_tom_pads" FROM "list_of_roland_drum_sets" WHERE "drum_module"='TD-5';
1-2889300-6
for the drumset name td-15k how many snare pads are
CREATE TABLE "list_of_roland_drum_sets" ( "drum_set_name" text, "product_line" text, "years_available" text, "drum_module" text, "kick_drum_pad" text, "snare_pad" text, "tom_tom_pads" text, "hi_hat_pad_controller" text, "crashand_ride_cymbal_pads" text, "drum_stand_oftenoptional" text );
SELECT COUNT("snare_pad") FROM "list_of_roland_drum_sets" WHERE "drum_set_name"='TD-15K';
1-2889300-6
Who won the race on June 26?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='June 26';
1-28925058-1
Who won the race on June 26?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='June 26';
1-28925058-1
Who won the race on August 15?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='August 15';
1-28925058-1
What is the date of the Italian Grand Prix?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT "date" FROM "table1_28925058_1" WHERE "grand_prix"='Italian Grand Prix';
1-28925058-1
How many dates did Daniel Ruiz win the Spanish Grand Prix?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT COUNT("date") FROM "table1_28925058_1" WHERE "grand_prix"='Spanish Grand Prix' AND "race_winner"='Daniel Ruiz';
1-28925058-1
Who won the race on May 1?
CREATE TABLE "table1_28925058_1" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );
SELECT "race_winner" FROM "table1_28925058_1" WHERE "date"='May 1';
1-28925058-1
When james rutherford is the incumbent how many dates are there?
CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );
SELECT COUNT("date") FROM "changes_during_term" WHERE "incumbent"='James Rutherford';
1-28898974-3