question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What was the worldwide gross for the film directed by joe pytka?
CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT "worldwide_gross" FROM "highest_grossing_films_of_1996" WHERE "director"='joe pytka';
2-169568-1
What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?
CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "studio"='20th century fox' AND "director"='roland emmerich';
2-169568-1
What is the average rank for the film directed by michael bay?
CREATE TABLE "highest_grossing_films_of_1996" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "director"='michael bay';
2-169568-1
What is the 3rd largest where the largest city is Ardabil?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='ardabil';
2-17288411-3
What is the province where the 3rd largest is Savojbolagh?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='savojbolagh';
2-17288411-3
What is the 4th largest where the 2nd largest is Minab?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "4th_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
2-17288411-3
In which province is the 3rd largest Dehbarez?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='dehbarez';
2-17288411-3
What is the 3rd largest when 2nd largest in Minab?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
2-17288411-3
What province has the largest city of Birjand?
CREATE TABLE "largest_cities_in_the_provinces" ( "province" text, "largest_city" text, "2nd_largest" text, "3rd_largest" text, "4th_largest" text );
SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='birjand';
2-17288411-3
What was the score on september 28?
CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text, "attendance" real );
SELECT "score" FROM "season_schedule" WHERE "date"='september 28';
2-16351004-2
What date was the score 29-7?
CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "result" text, "record" text, "attendance" real );
SELECT "date" FROM "season_schedule" WHERE "score"='29-7';
2-16351004-2
How much January has a Game smaller than 37, and an Opponent of detroit red wings?
CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );
SELECT COUNT("january") FROM "schedule_and_results" WHERE "game"<37 AND "opponent"='detroit red wings';
2-17311417-5
Which January has an Opponent of toronto maple leafs?
CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );
SELECT "january" FROM "schedule_and_results" WHERE "opponent"='toronto maple leafs';
2-17311417-5
Which January has an Opponent of @ detroit red wings?
CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );
SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='@ detroit red wings';
2-17311417-5
What date was the score won 1-2?
CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text );
SELECT "date" FROM "friendlies" WHERE "score"='won 1-2';
2-17580726-2
What was the score when Bornor Regis Town was the opponent?
CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text );
SELECT "score" FROM "friendlies" WHERE "opponent"='bornor regis town';
2-17580726-2
What is the number of people in attendance when Tonbridge Angels is the opponent?
CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text );
SELECT "attendance" FROM "friendlies" WHERE "opponent"='tonbridge angels';
2-17580726-2
What is the score when the attendance shows TBC, and Sidley United was the opponent?
CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text );
SELECT "score" FROM "friendlies" WHERE "attendance"='tbc' AND "opponent"='sidley united';
2-17580726-2
What is the score when the scorers show match report?
CREATE TABLE "friendlies" ( "date" text, "opponent" text, "venue" text, "score" text, "attendance" text, "scorers" text );
SELECT "score" FROM "friendlies" WHERE "scorers"='match report';
2-17580726-2
Which Album has a Label of msb 801?
CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "label" text, "us_pop" text, "album" text );
SELECT "album" FROM "singles" WHERE "label"='msb 801';
2-1704799-6
Which Album has a Label of tumbleweed 1014?
CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "label" text, "us_pop" text, "album" text );
SELECT "album" FROM "singles" WHERE "label"='tumbleweed 1014';
2-1704799-6
What was the score when the tie no was 12?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='12';
2-17438338-4
What date was the match against carlisle united?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='carlisle united';
2-17438338-4
Who was the home team when millwall was the away team?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='millwall';
2-17438338-4
What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680?
CREATE TABLE "members" ( "country" text, "un_budget" text, "international_trade_millions_of_usd_2011" real, "gdp_nominal_millions_of_usd_2011" real, "gdp_ppp_millions_of_usd_2011" real, "population" real );
SELECT SUM("international_trade_millions_of_usd_2011") FROM "members" WHERE "gdp_ppp_millions_of_usd_2011"<'471,890' AND "un_budget"='0.238%' AND "gdp_nominal_millions_of_usd_2011"<'845,680';
2-1743892-1
What category was the nominated in after 2008?
CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text );
SELECT "category" FROM "recording_career" WHERE "outcome"='nominated' AND "year">2008;
2-1630266-1
What year had the supernova award?
CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text );
SELECT "year" FROM "recording_career" WHERE "category"='supernova award';
2-1630266-1
What category was the winner in?
CREATE TABLE "recording_career" ( "event" text, "year" real, "category" text, "work" text, "outcome" text );
SELECT "category" FROM "recording_career" WHERE "outcome"='winner';
2-1630266-1
what is the country when the iata is gva?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "destinations" WHERE "iata"='gva';
2-1749585-2
what is the country for the city of cardiff?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "destinations" WHERE "city"='cardiff';
2-1749585-2
what is the icao when the country is norway?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "icao" FROM "destinations" WHERE "country"='norway';
2-1749585-2
what is the city for the country of netherlands?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "city" FROM "destinations" WHERE "country"='netherlands';
2-1749585-2
what is the airport when the city is düsseldorf?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "airport" FROM "destinations" WHERE "city"='düsseldorf';
2-1749585-2
what is the iata when the city is leipzig?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "iata" FROM "destinations" WHERE "city"='leipzig';
2-1749585-2
What is the record on February 23?
CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );
SELECT "record" FROM "schedule_and_results" WHERE "february"=23;
2-17323283-6
What was the rank of the rider whose ascent time was 43:24 before the year 2002?
CREATE TABLE "fastest_ascents_of_the_angliru" ( "rank" real, "year" real, "ascent_time" text, "speed" text, "rider" text );
SELECT COUNT("rank") FROM "fastest_ascents_of_the_angliru" WHERE "year"<2002 AND "ascent_time"='43:24';
2-1756060-2
Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?
CREATE TABLE "fastest_ascents_of_the_angliru" ( "rank" real, "year" real, "ascent_time" text, "speed" text, "rider" text );
SELECT "rider" FROM "fastest_ascents_of_the_angliru" WHERE "rank"<8 AND "year"=2000 AND "speed"='18.32 km/h';
2-1756060-2
What is the number of completions and attempts taken in 2009?
CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text );
SELECT "comp_att" FROM "college" WHERE "season"='2009';
2-16337186-2
What is the completion/attempts value for the year with an average per game of 36.5?
CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text );
SELECT "comp_att" FROM "college" WHERE "avg_g"='36.5';
2-16337186-2
What is the long value for the year with an average/game of 160.9?
CREATE TABLE "college" ( "season" text, "gp_gs" text, "comp_att" text, "pct" text, "yards" text, "long" text, "avg_g" text );
SELECT "long" FROM "college" WHERE "avg_g"='160.9';
2-16337186-2
What was the highest attendance of February 7, 2009 and more than 49 points?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT MAX("attendance") FROM "game_log" WHERE "date"='february 7, 2009' AND "points">49;
2-16864968-7
Which game has a number lower than 57 and more than 50 points?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "location" FROM "game_log" WHERE "game"<57 AND "points">50;
2-16864968-7
What game in February 10, 2009 has the most points and a game number larger than 54?
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"='february 10, 2009' AND "game">54;
2-16864968-7
What's the opponent's venue result when the opponent is tennessee?
CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text );
SELECT "at_opponent_s_venue" FROM "record_vs_sec_opponents" WHERE "missouri_vs"='tennessee';
2-16201038-5
What's the current streak with a last 10 meetings of lsu, 2-1?
CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text );
SELECT "current_streak" FROM "record_vs_sec_opponents" WHERE "last_10_meetings"='lsu, 2-1';
2-16201038-5
What's the last 5 meetings with an opponent's venue result of vu, 2-0?
CREATE TABLE "record_vs_sec_opponents" ( "missouri_vs" text, "overall_record" text, "at_columbia" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text, "current_streak" text, "since_joining_sec" text );
SELECT "last_5_meetings" FROM "record_vs_sec_opponents" WHERE "at_opponent_s_venue"='vu, 2-0';
2-16201038-5
What is the probable future word for the simple present/future word high grade?
CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text );
SELECT "probable_future" FROM "finite_forms_of_garnu_to_do" WHERE "simple_present_future"='high grade';
2-16337329-5
What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?
CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text );
SELECT "injunctive" FROM "finite_forms_of_garnu_to_do" WHERE "simple_past"='गरुँला garũlā ''i will (probably) do''';
2-16337329-5
What is the date of taking office for Giorgia Meloni?
CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text );
SELECT "took_office" FROM "ministers_without_portfolio" WHERE "minister"='giorgia meloni';
2-17310356-2
Which party was Andrea Ronchi from?
CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text );
SELECT "party" FROM "ministers_without_portfolio" WHERE "minister"='andrea ronchi';
2-17310356-2
What is the lowest Division, when Team is "Benfica", and when Apps is 22?
CREATE TABLE "club_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real );
SELECT MIN("division") FROM "club_statistics" WHERE "team"='benfica' AND "apps"=22;
2-17226452-1
What Championship had a winning score of 69-71-67-68=275?
CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text, "winner_s_share" real );
SELECT "championship" FROM "wins_5" WHERE "winning_score"='69-71-67-68=275';
2-17335602-4
What is the smallest winner's share for the LPGA championship?
CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text, "winner_s_share" real );
SELECT MIN("winner_s_share") FROM "wins_5" WHERE "championship"='lpga championship';
2-17335602-4
What is Jockey, when Time is 1:15.89?
CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "jockey" FROM "winners_since_2000" WHERE "time"='1:15.89';
2-16828302-1
What is Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher?
CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "time" FROM "winners_since_2000" WHERE "jockey"='john velazquez' AND "trainer"='todd a. pletcher';
2-16828302-1
What is Winner, when Year is 2001?
CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "winner" FROM "winners_since_2000" WHERE "year"=2001;
2-16828302-1
What is Jockey, when Winner is Alke?
CREATE TABLE "winners_since_2000" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "jockey" FROM "winners_since_2000" WHERE "winner"='alke';
2-16828302-1
What is the average laps for the +50.653 time?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT AVG("laps") FROM "superbike_race_2_classification" WHERE "time"='+50.653';
2-17564943-2
What is the highest Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1?
CREATE TABLE "table" ( "place" real, "matches" real, "drawn" real, "lost" real, "difference" text, "points" real );
SELECT MAX("matches") FROM "table" WHERE "points"<8 AND "place">13 AND "drawn"<1;
2-1736167-3
What is the average points when the drawn is less than 0?
CREATE TABLE "table" ( "place" real, "matches" real, "drawn" real, "lost" real, "difference" text, "points" real );
SELECT AVG("points") FROM "table" WHERE "drawn"<0;
2-1736167-3
What was Turkey's lowest gold when there were less than 2 bronze?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "nation"='turkey' AND "bronze"<2;
2-16852553-1
What is the average area in square miles for the division that is 9,630,960 square kilometers with a national share larger than 100%?
CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text );
SELECT AVG("area_sq_mi") FROM "notes" WHERE "area_km"='9,630,960' AND "national_share_pct">100;
2-171666-1
What is the average area in square miles for the hunan administrative division with a national share less than 2.19%?
CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text );
SELECT AVG("area_sq_mi") FROM "notes" WHERE "administrative_division"='hunan' AND "national_share_pct"<2.19;
2-171666-1
What is the average square kilometer area of the division that has a 2,448 square mile area and a national share larger than 0.065%?
CREATE TABLE "notes" ( "rank" text, "administrative_division" text, "area_km" real, "area_sq_mi" real, "national_share_pct" real, "comparable_country" text );
SELECT AVG("area_km") FROM "notes" WHERE "area_sq_mi"='2,448' AND "national_share_pct">0.065;
2-171666-1
What is Central Michigan's average overall when the pick was 8?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='central michigan' AND "pick"=8;
2-17100961-27
what is the record when the opponent is jeff williams?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='jeff williams';
2-17624865-4
what is the method for round 1 and the opponent is bobby mcmaster?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='bobby mcmaster';
2-17624865-4
what is the location when the time is 3:15?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='3:15';
2-17624865-4
what is the record when the round is before 3 and the time si 4:59?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "time"='4:59';
2-17624865-4
what is the record when the event is shido usa mma and the opponent is raphael assunção?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='shido usa mma' AND "opponent"='raphael assunção';
2-17624865-4
How much money did Ben Crenshaw earn?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_leaderboard" WHERE "player"='ben crenshaw';
2-16490473-3
what is the competition when the score is 2-1?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "score"='2-1';
2-1637082-3
what is the venue when the score is 10-0 on 1997-06-22?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "score"='10-0' AND "date"='1997-06-22';
2-1637082-3
what is the venue when the competition is 1996 afc asian cup group stage?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "competition"='1996 afc asian cup group stage';
2-1637082-3
what is the competition when the date is 1995-08-06?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "date"='1995-08-06';
2-1637082-3
What is the total number of weeks that the Giants played against the Dallas Cowboys?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "channel" text, "attendance" text );
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='dallas cowboys';
2-16677823-3
Which Home has an Away of hispano?
CREATE TABLE "round_15" ( "date" text, "home" text, "score" text, "away" text, "attendance" real );
SELECT "home" FROM "round_15" WHERE "away"='hispano';
2-17026847-17
What engine has the Mercedes AMG Petronas f1 team, and 93 points?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );
SELECT "engine" FROM "complete_formula_one_results" WHERE "entrant"='mercedes amg petronas f1 team' AND "points"='93';
2-1628331-4
Which Chassis has 4 points?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text );
SELECT "chassis" FROM "complete_formula_one_results" WHERE "points"='4';
2-1628331-4
What is Opponent, when Year is greater than 2009, and when Score is 7–5, 6–7 (6–8) , 6–1?
CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_21_17_titles_4_runner_ups" WHERE "year">2009 AND "score"='7–5, 6–7 (6–8) , 6–1';
2-164910-2
What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?
CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT MIN("year") FROM "singles_21_17_titles_4_runner_ups" WHERE "surface"='hard' AND "opponent"='dinara safina';
2-164910-2
What is Surface, when Championship is Australian Open?
CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_21_17_titles_4_runner_ups" WHERE "championship"='australian open';
2-164910-2
What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?
CREATE TABLE "singles_21_17_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_21_17_titles_4_runner_ups" WHERE "opponent"='victoria azarenka' AND "score"='6–2, 2–6, 7–5';
2-164910-2
WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?
CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text );
SELECT "series" FROM "dvd_and_blu_ray_releases" WHERE "released_by"='itv studios' AND "release_date"='august 15, 2012';
2-170661-4
WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD?
CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text );
SELECT "episode_no" FROM "dvd_and_blu_ray_releases" WHERE "no_of_dv_ds"='28';
2-170661-4
WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?
CREATE TABLE "dvd_and_blu_ray_releases" ( "release_title" text, "series" text, "no_of_dv_ds" text, "no_of_blu_ray_discs" text, "release_date" text, "episode_no" text, "region_no" real, "released_by" text );
SELECT "episode_no" FROM "dvd_and_blu_ray_releases" WHERE "region_no">1 AND "no_of_dv_ds"='32';
2-170661-4
Who was the player from Duke?
CREATE TABLE "k" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );
SELECT "position" FROM "k" WHERE "from"='duke';
2-16772687-11
What is Duration, when Test Flight is Taxi Test #2?
CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text );
SELECT "duration" FROM "list_of_alt_flights" WHERE "test_flight"='taxi test #2';
2-16237630-3
What it Duration, when Test Flight is Free Flight #3?
CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text );
SELECT "duration" FROM "list_of_alt_flights" WHERE "test_flight"='free flight #3';
2-16237630-3
What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?
CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text );
SELECT "date" FROM "list_of_alt_flights" WHERE "comment"='tailcone on, lakebed landing' AND "duration"='5min 34 s';
2-16237630-3
What is Crew, when Date is July 26, 1977?
CREATE TABLE "list_of_alt_flights" ( "test_flight" text, "date" text, "speed" text, "altitude" text, "crew" text, "duration" text, "comment" text );
SELECT "crew" FROM "list_of_alt_flights" WHERE "date"='july 26, 1977';
2-16237630-3
What is Years, when Nationality is United States, and when Position is PG / SG?
CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "years" FROM "r" WHERE "nationality"='united states' AND "position"='pg / sg';
2-16772687-17
What is Nationality, when Years is 1979?
CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "nationality" FROM "r" WHERE "years"='1979';
2-16772687-17
What is From, when Player is Jackie Robinson Category:Articles With Hcards?
CREATE TABLE "r" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "from" FROM "r" WHERE "player"='jackie robinson category:articles with hcards';
2-16772687-17
WHAT SCORE HAS A TIME OF 18:27?
CREATE TABLE "scoring_summary" ( "period" text, "team" text, "goal" text, "time" text, "score" text );
SELECT "score" FROM "scoring_summary" WHERE "time"='18:27';
2-17058856-1
WHAT GOAL HAS A TIME OF 39:37?
CREATE TABLE "scoring_summary" ( "period" text, "team" text, "goal" text, "time" text, "score" text );
SELECT "goal" FROM "scoring_summary" WHERE "time"='39:37';
2-17058856-1
What is Electorate, when Party is "Country", when State is "WA", and when Member is "John Hallett"?
CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text );
SELECT "electorate" FROM "see_also" WHERE "party"='country' AND "state"='wa' AND "member"='john hallett';
2-1742704-1
What is Term of Office, when Member is "Dominic Costa"?
CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text );
SELECT "term_of_office" FROM "see_also" WHERE "member"='dominic costa';
2-1742704-1
What is State, when Member is "Gil Duthie"?
CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text );
SELECT "state" FROM "see_also" WHERE "member"='gil duthie';
2-1742704-1
What was the number of attendance at Stadion with a score of 2-0
CREATE TABLE "stockholm_derbies" ( "date" text, "venue" text, "opponents" text, "score" text, "attendance" text );
SELECT "attendance" FROM "stockholm_derbies" WHERE "venue"='stadion' AND "score"='2-0';
2-16574199-2