question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Name the first broadcast for tina malone and joe wilkinson
CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text );
SELECT "first_broadcast" FROM "series_15" WHERE "seans_team"='Tina Malone and Joe Wilkinson';
1-23292220-17
Name the number of jons team for 15x10
CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text );
SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x10';
1-23292220-17
Name the scores for chris ramsey and carol vorderman
CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text );
SELECT "scores" FROM "series_15" WHERE "seans_team"='Chris Ramsey and Carol Vorderman';
1-23292220-17
Name the total number of jons team for 15x07
CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text );
SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x07';
1-23292220-17
Name all of Jason's teams that appeared on episode 6x02?
CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT "jasons_team" FROM "series_6" WHERE "episode"='6x02';
1-23292220-6
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT COUNT("episode") FROM "series_6" WHERE "seans_team"='Vanessa Feltz and Lee Mack';
1-23292220-6
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.
CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT "episode" FROM "series_6" WHERE "jasons_team"='Duncan James and Johnny Vegas';
1-23292220-6
What round does Duncan Tappy drive in?
CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real );
SELECT MAX("sf_round") FROM "2009_season" WHERE "driver"='Duncan Tappy';
1-23293785-3
How many racing points did England get?
CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real );
SELECT MAX("race_total_pts") FROM "2009_season" WHERE "country"='England';
1-23293785-3
How many are the Race 2 points when Race 1 was 12?
CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real );
SELECT "race_2_pts" FROM "2009_season" WHERE "race_1_pts"=12;
1-23293785-3
How many millions of people in the US saw the episode number 226?
CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_23294081_11" WHERE "no"=226;
1-23294081-11
What is the highest episode number?
CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text );
SELECT MAX("no") FROM "table1_23294081_11";
1-23294081-11
Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?
CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text );
SELECT "performer_1" FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "num"=7;
1-23294081-11
What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?
CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text );
SELECT MIN("num") FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "u_s_viewers_millions"='2.99';
1-23294081-11
Name the episode for vic reeves and claudia winkleman
CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT "episode" FROM "series_7" WHERE "seans_team"='Vic Reeves and Claudia Winkleman';
1-23292220-7
Name the number of scores for episode 7x05
CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x05';
1-23292220-7
Name the seans team being 13 november 2008
CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT "seans_team" FROM "series_7" WHERE "first_broadcast"='13 November 2008';
1-23292220-7
Name the total number of seans team being 7x04
CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT COUNT("seans_team") FROM "series_7" WHERE "episode"='7x04';
1-23292220-7
Name the total number of scores for 7x10
CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text );
SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x10';
1-23292220-7
How many dates have a total points for race of 180?
CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real );
SELECT COUNT("date") FROM "2008_season" WHERE "race_total_pts"=180;
1-23293785-2
What is every points value for race 1 if the total race points is 180?
CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real );
SELECT "race_1_pts" FROM "2008_season" WHERE "race_total_pts"=180;
1-23293785-2
What is the lowest number of total race points for the country of Belgium?
CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real );
SELECT MIN("race_total_pts") FROM "2008_season" WHERE "country"='Belgium';
1-23293785-2
Who is every driver for the location of Estoril Circuit?
CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real );
SELECT "driver" FROM "2008_season" WHERE "location"='Estoril Circuit';
1-23293785-2
What is the highest value for SF round for the country of England?
CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real );
SELECT MAX("sf_round") FROM "2008_season" WHERE "country"='England';
1-23293785-2
What is the surface for the year 2001?
CREATE TABLE "singles_6_2_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "singles_6_2_titles_4_runner_ups" WHERE "year"=2001;
1-23297-3
What was the score on October 29?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "date"='October 29';
1-23308178-4
How many opponents were there with the record of 3-2-2?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("opponent") FROM "game_log" WHERE "record"='3-2-2';
1-23308178-4
What was the record on October 17?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "date"='October 17';
1-23308178-4
What date did they play agains the New York Rangers?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "date" FROM "game_log" WHERE "opponent"='New York Rangers';
1-23308178-4
How many points were there scored on October 27?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT MAX("points") FROM "game_log" WHERE "date"='October 27';
1-23308178-4
How many different scores are there for the game with 10-3-4 record?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("score") FROM "game_log" WHERE "record"='10-3-4';
1-23308178-5
When was the game with 13-5-6 record played?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "date" FROM "game_log" WHERE "record"='13-5-6';
1-23308178-5
What's the minimal number of points scored in any game?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT MIN("points") FROM "game_log";
1-23308178-5
How many different games against Florida Panthers were played in Verizon Center?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Florida Panthers' AND "location"='Verizon Center';
1-23308178-5
What was the record in the November 7 game?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "date"='November 7';
1-23308178-5
How many times was there a record of 49-15-11?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='49-15-11';
1-23308178-9
How many scores had a date of March 6?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("score") FROM "game_log" WHERE "date"='March 6';
1-23308178-9
If the date is 7-21-2006, who was the opponent?
CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text );
SELECT "opponent" FROM "singles_performances_18_10" WHERE "date"='7-21-2006';
1-23314951-4
If the opponent is Kristian Pless, who was it against?
CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text );
SELECT "against" FROM "singles_performances_18_10" WHERE "opponent"='Kristian Pless';
1-23314951-4
Who is the winning team when max busnelli is the winning driver?
CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text );
SELECT "winning_team" FROM "race_calendar" WHERE "winning_driver"='Max Busnelli';
1-23315271-2
In which location is aci vallelunga circuit?
CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text );
SELECT "location" FROM "race_calendar" WHERE "circuit"='ACI Vallelunga Circuit';
1-23315271-2
Who held the pole position in misano world circuit?
CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text );
SELECT "pole_position" FROM "race_calendar" WHERE "circuit"='Misano World Circuit';
1-23315271-2
List the results for all games which involved the detroit red wings.
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "opponent"='Detroit Red Wings';
1-23308178-7
Calculate the highest points where the win,loss, tie ratio is 28-12-6
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT MAX("points") FROM "game_log" WHERE "record"='28-12-6';
1-23308178-7
what are the previous performance details for games involving the montreal canadiens?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "opponent"='Montreal Canadiens';
1-23308178-7
Which years did Michigan state university come in third place?
CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text );
SELECT "year" FROM "table1_2331549_1" WHERE "third_place"='Michigan State University';
1-2331549-1
Who were the champions in years where michigan technological university was in third place?
CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text );
SELECT "champion" FROM "table1_2331549_1" WHERE "third_place"='Michigan Technological University';
1-2331549-1
What was the host city in years where the host school was école de technologie supérieure?
CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text );
SELECT "host_city" FROM "table1_2331549_1" WHERE "host_school"='École de technologie supérieure';
1-2331549-1
Who came in second place when the champion was south dakota school of mines & technology?
CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text );
SELECT "second_place" FROM "table1_2331549_1" WHERE "champion"='South Dakota School of Mines & Technology';
1-2331549-1
If the average is 45.65, what is the total number of innings?
CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text );
SELECT COUNT("innings") FROM "most_career_runs" WHERE "average"='45.65';
1-23316034-16
What is the name of the player if the innings is 82?
CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text );
SELECT "player" FROM "most_career_runs" WHERE "innings"=82;
1-23316034-16
If the innings is 68, what is the average?
CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text );
SELECT "average" FROM "most_career_runs" WHERE "innings"=68;
1-23316034-16
If the runs is 5028, what is the matches maximum?
CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text );
SELECT MAX("matches") FROM "most_career_runs" WHERE "runs"=5028;
1-23316034-16
Name the least dismissals for sammy carter
CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real );
SELECT MIN("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Sammy Carter';
1-23316034-23
Name the number of dismissals for adam gilchrist
CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real );
SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Adam Gilchrist';
1-23316034-23
Name the least dismissals for 4 rank
CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real );
SELECT MAX("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "rank"=4;
1-23316034-23
How many top 10 finishes did Ken Bouchard get in the year he won $17,695?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );
SELECT "top_10" FROM "nascar_nationwide_series" WHERE "winnings"='$17,695';
1-2333416-2
What year did Ken Bouchard finish in 78th place?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );
SELECT "year" FROM "nascar_nationwide_series" WHERE "position"='78th';
1-2333416-2
How many seasons did Ken Bouchard finish in 38th place?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );
SELECT COUNT("year") FROM "nascar_nationwide_series" WHERE "position"='38th';
1-2333416-2
What is the greatest number of wins Ken Bouchard had in a season?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );
SELECT MIN("wins") FROM "nascar_nationwide_series";
1-2333416-2
How many races in 2012 season have 0 podiums?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT COUNT("races") FROM "career_summary" WHERE "season"=2012 AND "podiums"=0;
1-23338693-1
How many seasons have motopark team?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT COUNT("season") FROM "career_summary" WHERE "team"='Motopark';
1-23338693-1
Which team has nc position for 2010 season?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT "team" FROM "career_summary" WHERE "position"='NC' AND "season"=2010;
1-23338693-1
How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT "points" FROM "career_summary" WHERE "series"='British Formula Renault 2.0 Winter Cup' AND "f_laps"=0;
1-23338693-1
If the amount of rebounds is 0, what is the maximum minutes?
CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT MAX("minutes") FROM "wnit_player_stats" WHERE "rebounds"=0;
1-23346303-5
What is the points total number if the assists is 7?
CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT COUNT("points") FROM "wnit_player_stats" WHERE "assists"=7;
1-23346303-5
If the field goals is 26, what are the players names?
CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT "player" FROM "wnit_player_stats" WHERE "field_goals"=26;
1-23346303-5
If the player is Jasmine Wynne, what is the minimum number of steals?
CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT MIN("steals") FROM "wnit_player_stats" WHERE "player"='Jasmine Wynne';
1-23346303-5
What is the blocks total number if the points is 4?
CREATE TABLE "wnit_player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT COUNT("blocks") FROM "wnit_player_stats" WHERE "points"=4;
1-23346303-5
How many steals did jasmine wynne have?
CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT "steals" FROM "player_stats" WHERE "player"='Jasmine Wynne';
1-23346303-4
How many games did janae stokes play?
CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT MAX("games_played") FROM "player_stats" WHERE "player"='Janae Stokes';
1-23346303-4
How many rebounds did crystal ayers have?
CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real );
SELECT COUNT("rebounds") FROM "player_stats" WHERE "player"='Crystal Ayers';
1-23346303-4
What was the Orangemen record during game 3?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text );
SELECT "record" FROM "schedule" WHERE "game"=3;
1-23346983-1
What was the record for the Orangemen when they played against Army?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text );
SELECT "record" FROM "schedule" WHERE "opponent"='Army';
1-23346983-1
How many points did the Orangemen score in game 1?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text );
SELECT MAX("orangemen_points") FROM "schedule" WHERE "game"=1;
1-23346983-1
Who did the Orangemen play against when their record was 5-1?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "orangemen_points" real, "opponents" real, "record" text );
SELECT "opponent" FROM "schedule" WHERE "record"='5-1';
1-23346983-1
Name the location for 2007
CREATE TABLE "movies" ( "year" real, "title_of_movie" text, "name_of_role" text, "nature_of_role" text, "co_artists" text, "location" text );
SELECT "location" FROM "movies" WHERE "year"=2007;
1-23379776-6
Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT MIN("mir_hossein_mousavi") FROM "provincial_results" WHERE "mohsen_rezaee"=44809;
1-23390604-1
What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT MAX("mohsen_rezaee") FROM "provincial_results" WHERE "mir_hossein_mousavi"=837858;
1-23390604-1
List all the total scores for the election which had 3072 invalid votes
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT "total_votes" FROM "provincial_results" WHERE "spoiled_ballots"=3072;
1-23390604-1
What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "province"='Azarbaijan, West';
1-23390604-1
List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT "mahmoud_ahmadinejad" FROM "provincial_results" WHERE "mir_hossein_mousavi"=218481;
1-23390604-1
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683
CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real );
SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "spoiled_ballots"=5683;
1-23390604-1
Name surface for 8 round
CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text );
SELECT "surface" FROM "calendar" WHERE "round"=8;
1-23385853-1
Name the rally base for 5 round
CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text );
SELECT "rally_base" FROM "calendar" WHERE "round"=5;
1-23385853-1
Name the rally base for rallye de france alsace
CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text );
SELECT "rally_base" FROM "calendar" WHERE "rally_name"='Rallye de France Alsace';
1-23385853-1
What is the lowest position for a driver with 2 points?
CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real );
SELECT MAX("pos") FROM "drivers" WHERE "points"=2;
1-23385853-19
What driver(s) had over 65 stag wins?
CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real );
SELECT "driver" FROM "drivers" WHERE "stage_wins"=65;
1-23385853-19
What is the power stage wins total number if the wins is 10?
CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real );
SELECT COUNT("power_stage_wins") FROM "constructors" WHERE "wins"=10;
1-23385853-20
If finishes is 10, what is the POS minimum?
CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real );
SELECT MIN("pos") FROM "constructors" WHERE "finishes"=10;
1-23385853-20
What is the finishes maximum number?
CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real );
SELECT MAX("finishes") FROM "constructors";
1-23385853-20
When relay is the station type and 5kw is the power kw what is the branding?
CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text );
SELECT "branding" FROM "ibc_tv_stations" WHERE "power_k_w"='5kW' AND "station_type"='Relay';
1-23394920-1
When dxrt-tv is the callsign what is the power kw?
CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text );
SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXRT-TV';
1-23394920-1
When dxzb-tv is the call sign what is the power kw?
CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text );
SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXZB-TV';
1-23394920-1
When dxcc-tv is the call sign how many station types are there?
CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text );
SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DXCC-TV';
1-23394920-1
When dwhr-tv is the call sign how many station types are there?
CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text );
SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DWHR-TV';
1-23394920-1
What date did Episode 22 originally air?
CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real );
SELECT COUNT("original_airdate") FROM "series_three" WHERE "num"=22;
1-23392257-4
What episode premier received 0.680 million viewers?
CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real );
SELECT "original_airdate" FROM "series_three" WHERE "viewers_millions"='0.680';
1-23392257-4
When did "The Intervention" originally air?
CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real );
SELECT "original_airdate" FROM "series_three" WHERE "title"='\"The Intervention\"';
1-23392257-4
What timeslot received 0.673 viewers?
CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real );
SELECT "timeslot" FROM "series_three" WHERE "viewers_millions"='0.673';
1-23392257-4