question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What's the 2nd leg for team 2 san francisco?
CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "matches" WHERE "team_2"='san francisco';
2-17991582-1
What's the 1st leg of team 1 alajuelense?
CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "matches" WHERE "team_1"='alajuelense';
2-17991582-1
What was the format for catalog 660-51-015?
CREATE TABLE "release_history" ( "region" text, "year" text, "label" text, "format" text, "catalog" text );
SELECT "format" FROM "release_history" WHERE "catalog"='660-51-015';
2-18351753-2
Which region had the year May 1974?
CREATE TABLE "release_history" ( "region" text, "year" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "year"='may 1974';
2-18351753-2
Which region had a year March 10, 1998?
CREATE TABLE "release_history" ( "region" text, "year" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "year"='march 10, 1998';
2-18351753-2
What is the first party for Lord John Hay earlier than 1857?
CREATE TABLE "m_ps_1707_1868" ( "year" real, "first_member" text, "first_party" text, "second_member" text, "second_party" text );
SELECT "first_party" FROM "m_ps_1707_1868" WHERE "year"<1857 AND "first_member"='lord john hay';
2-1828009-3
Who is the second member more recently than 1790 when John Williams is the first member?
CREATE TABLE "m_ps_1707_1868" ( "year" real, "first_member" text, "first_party" text, "second_member" text, "second_party" text );
SELECT "second_member" FROM "m_ps_1707_1868" WHERE "year">1790 AND "first_member"='john williams';
2-1828009-3
Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?
CREATE TABLE "m_ps_1707_1868" ( "year" real, "first_member" text, "first_party" text, "second_member" text, "second_party" text );
SELECT "second_member" FROM "m_ps_1707_1868" WHERE "first_party"='tory' AND "year"<1804 AND "first_member"='henry isherwood';
2-1828009-3
Who is the second member when RT Hon. Edward Stanley is the first member?
CREATE TABLE "m_ps_1707_1868" ( "year" real, "first_member" text, "first_party" text, "second_member" text, "second_party" text );
SELECT "second_member" FROM "m_ps_1707_1868" WHERE "first_member"='rt hon. edward stanley';
2-1828009-3
What is the second party where the first party is Tory and the year is 1820?
CREATE TABLE "m_ps_1707_1868" ( "year" real, "first_member" text, "first_party" text, "second_member" text, "second_party" text );
SELECT "second_party" FROM "m_ps_1707_1868" WHERE "first_party"='tory' AND "year"=1820;
2-1828009-3
Who is the player who won in 1993?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1993';
2-18096431-2
What years did the player with a t71 finish win?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t71';
2-18096431-2
What year did player payne stewart win?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='payne stewart';
2-18096431-2
What year did the player with a t3 finish win?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t3';
2-18096431-2
What is the lowest total of the player with a t41 finish?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT MIN("total") FROM "made_the_cut" WHERE "finish"='t41';
2-18096431-2
In what Battle was Bulgarian Commander of Gavril Radomir?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "battle" FROM "medieval_bulgarian_army" WHERE "bulgarian_commander"='gavril radomir';
2-17822543-1
What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "date" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "battle"='battle of arcadiopolis';
2-17822543-1
What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "bulgarian_commander" FROM "medieval_bulgarian_army" WHERE "battle"='battle of thessalonica' AND "date"='autumn 1040';
2-17822543-1
What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "byzantine_commander" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "battle"='siege of lovech';
2-17822543-1
What is the Result of the Battle of Marcellae in 756?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "result" FROM "medieval_bulgarian_army" WHERE "battle"='battle of marcellae' AND "date"='756';
2-17822543-1
What is the date of Gavril Radomir's Bulgarian Victory?
CREATE TABLE "medieval_bulgarian_army" ( "battle" text, "date" text, "bulgarian_commander" text, "byzantine_commander" text, "result" text );
SELECT "date" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "bulgarian_commander"='gavril radomir';
2-17822543-1
What is 3 Season, when 1 Season is "2 959 699"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "3_season" FROM "rating_figures" WHERE "1_season"='2 959 699';
2-17671150-13
What is 1 Season, when 4 Season is "2 101 043 (13 May 2009)"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "1_season" FROM "rating_figures" WHERE "4_season"='2 101 043 (13 may 2009)';
2-17671150-13
What is 5 Season, when 2 Season is "3 168 673 (2 April 2008)"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "5_season" FROM "rating_figures" WHERE "2_season"='3 168 673 (2 april 2008)';
2-17671150-13
What is 4 Season, when 2 Season is "3 168 673 (2 April 2008)"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "4_season" FROM "rating_figures" WHERE "2_season"='3 168 673 (2 april 2008)';
2-17671150-13
What is 3 Season, when 4 Season is "2 628 383 (3 June 2009)"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "3_season" FROM "rating_figures" WHERE "4_season"='2 628 383 (3 june 2009)';
2-17671150-13
What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?
CREATE TABLE "rating_figures" ( "episode" text, "1_season" text, "2_season" text, "3_season" text, "4_season" text, "5_season" text, "6_season" text );
SELECT "1_season" FROM "rating_figures" WHERE "4_season"='3 273 440 (17 march 2009)';
2-17671150-13
What was the wind at New York City when the rank was smaller than 6?
CREATE TABLE "all_time_top_25_outdoors" ( "rank" real, "res" text, "wind" text, "athlete" text, "date" text, "location" text );
SELECT "wind" FROM "all_time_top_25_outdoors" WHERE "rank"<6 AND "location"='new york city';
2-1833981-1
What was the highest rink for Kingston?
CREATE TABLE "all_time_top_25_outdoors" ( "rank" real, "res" text, "wind" text, "athlete" text, "date" text, "location" text );
SELECT MAX("rank") FROM "all_time_top_25_outdoors" WHERE "location"='kingston';
2-1833981-1
What is the average first elected for the district South Carolina 2?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT AVG("first_elected") FROM "south_carolina" WHERE "district"='south carolina 2';
2-1805191-41
Who was the first elected for the republican party?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "first_elected" FROM "south_carolina" WHERE "party"='republican';
2-1805191-41
What party has the South Carolina 2 district?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "party" FROM "south_carolina" WHERE "district"='south carolina 2';
2-1805191-41
What is the type for Cassano?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text );
SELECT "type" FROM "in" WHERE "name"='cassano';
2-17970271-1
What nationality is Diogo?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text );
SELECT "nat" FROM "in" WHERE "name"='diogo';
2-17970271-1
What is the name of the player with a winter transfer window moving from Roma?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text );
SELECT "name" FROM "in" WHERE "transfer_window"='winter' AND "moving_from"='roma';
2-17970271-1
What pressure is Ken?
CREATE TABLE "season_effects" ( "name" text, "dates_active" text, "windspeeds" text, "pressure" text, "deaths" text );
SELECT "pressure" FROM "season_effects" WHERE "name"='ken';
2-18270152-1
In which round was Barbara Hawcroft the loser?
CREATE TABLE "women" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT "round" FROM "women" WHERE "loser"='barbara hawcroft';
2-18336099-2
In which year is Nerida Gregory listed as the loser?
CREATE TABLE "women" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT AVG("year") FROM "women" WHERE "loser"='nerida gregory';
2-18336099-2
In which year did Misaki Doi lose the Australian Open Grand Slam?
CREATE TABLE "women" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT SUM("year") FROM "women" WHERE "grand_slam"='australian open' AND "loser"='misaki doi';
2-18336099-2
Which Polish Cup has a Puchat Ligi larger than 0?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "puchat_ligi" real, "uefa_cup" real, "total" real );
SELECT AVG("polish_cup") FROM "top_scorers" WHERE "puchat_ligi">0;
2-17694624-1
Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "puchat_ligi" real, "uefa_cup" real, "total" real );
SELECT "player" FROM "top_scorers" WHERE "total"=3 AND "ekstraklasa"<3 AND "uefa_cup"=2;
2-17694624-1
Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "puchat_ligi" real, "uefa_cup" real, "total" real );
SELECT MIN("puchat_ligi") FROM "top_scorers" WHERE "uefa_cup"<2 AND "player"='takesure chinyama';
2-17694624-1
How much Ekstraklasa has a Total smaller than 3?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "puchat_ligi" real, "uefa_cup" real, "total" real );
SELECT SUM("ekstraklasa") FROM "top_scorers" WHERE "total"<3;
2-17694624-1
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
CREATE TABLE "top_scorers" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "puchat_ligi" real, "uefa_cup" real, "total" real );
SELECT SUM("puchat_ligi") FROM "top_scorers" WHERE "total"<5 AND "ekstraklasa">1;
2-17694624-1
Which player has a to par greater than 11, with a total less than 155?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "player" FROM "missed_the_cut" WHERE "to_par">11 AND "total"<155;
2-18121795-2
What country has a to par less than 13, with wayne grady as the player?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "country" FROM "missed_the_cut" WHERE "to_par"<13 AND "player"='wayne grady';
2-18121795-2
Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4?
CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("points_1") FROM "third_division_final_table" WHERE "drawn"=5 AND "goal_difference"='+58' AND "lost">4;
2-17716055-3
Which Lost has Goals Against larger than 92?
CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("lost") FROM "third_division_final_table" WHERE "goals_against">92;
2-17716055-3
Which Points 1 has a Team of atherton collieries, and a Position smaller than 8?
CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("points_1") FROM "third_division_final_table" WHERE "team"='atherton collieries' AND "position"<8;
2-17716055-3
How much Played has a Position of 7, and a Drawn smaller than 7?
CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT SUM("played") FROM "third_division_final_table" WHERE "position"=7 AND "drawn"<7;
2-17716055-3
How much Drawn has Points 1 of 51, and a Lost larger than 5?
CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT COUNT("drawn") FROM "third_division_final_table" WHERE "points_1"=51 AND "lost">5;
2-17716055-3
When was the aircraft introduced that could seat 115 people?
CREATE TABLE "fleet_history" ( "aircraft" text, "introduced" real, "retired" text, "seating" text, "notes" text );
SELECT AVG("introduced") FROM "fleet_history" WHERE "seating"='115';
2-180466-4
What year was the aircraft retired when it was replaced by 737-300s?
CREATE TABLE "fleet_history" ( "aircraft" text, "introduced" real, "retired" text, "seating" text, "notes" text );
SELECT "retired" FROM "fleet_history" WHERE "notes"='replaced by 737-300s';
2-180466-4
What aircraft was introduced in 2004 and has a retired of —?
CREATE TABLE "fleet_history" ( "aircraft" text, "introduced" real, "retired" text, "seating" text, "notes" text );
SELECT "aircraft" FROM "fleet_history" WHERE "retired"='—' AND "introduced"=2004;
2-180466-4
Which aircraft has 148/9 seating?
CREATE TABLE "fleet_history" ( "aircraft" text, "introduced" real, "retired" text, "seating" text, "notes" text );
SELECT "aircraft" FROM "fleet_history" WHERE "seating"='148/9';
2-180466-4
How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?
CREATE TABLE "fleet_history" ( "aircraft" text, "introduced" real, "retired" text, "seating" text, "notes" text );
SELECT "seating" FROM "fleet_history" WHERE "notes"='in service' AND "introduced"=2008;
2-180466-4
What is the nationality of the player who was previously with the Detroit Pistons?
CREATE TABLE "selections" ( "player" text, "pos" text, "nationality" text, "previous_team" text, "years_of_nba_experience_a" real, "career_with_the_franchise" text );
SELECT "nationality" FROM "selections" WHERE "previous_team"='detroit pistons';
2-17690296-3
What is the career with the franchise of the f/c player with fewer than 9 years of NBA experience who previously played for the Phoenix Suns?
CREATE TABLE "selections" ( "player" text, "pos" text, "nationality" text, "previous_team" text, "years_of_nba_experience_a" real, "career_with_the_franchise" text );
SELECT "career_with_the_franchise" FROM "selections" WHERE "years_of_nba_experience_a"<9 AND "pos"='f/c' AND "previous_team"='phoenix suns';
2-17690296-3
What was the tie number when Bournemouth was the home team?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='bournemouth';
2-17751811-5
Who was the away team when the home team was Norwich City?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='norwich city';
2-17751811-5
On what date was Wimbledon the home team?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fifth_round_proper" WHERE "home_team"='wimbledon';
2-17751811-5
On what date was the away team West Ham United?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fifth_round_proper" WHERE "away_team"='west ham united';
2-17751811-5
On what date was the away team Bournemouth?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fifth_round_proper" WHERE "away_team"='bournemouth';
2-17751811-5
What district has abhayapuri south as the name?
CREATE TABLE "assembly_segments" ( "constituency_number" real, "name" text, "reserved_for_sc_st_none" text, "district" text, "electorates_2011" real );
SELECT "district" FROM "assembly_segments" WHERE "name"='abhayapuri south';
2-17921573-1
Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "bronze" FROM "performances_by_nation" WHERE "gold">1 AND "silver"<3 AND "rank"<5;
2-17837875-2
Which Rank has a Gold larger than 1, and a Bronze of 4, and a Silver smaller than 1?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("rank") FROM "performances_by_nation" WHERE "gold">1 AND "bronze"=4 AND "silver"<1;
2-17837875-2
Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("rank") FROM "performances_by_nation" WHERE "gold"=3 AND "bronze"=4 AND "total">8;
2-17837875-2
How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold larger than 3?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "performances_by_nation" WHERE "rank"<10 AND "silver">3 AND "gold">3;
2-17837875-2
Which Total has a Rank of 9, and a Silver smaller than 2?
CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "performances_by_nation" WHERE "rank"=9 AND "silver"<2;
2-17837875-2
What event had Xu Zhilin competing?
CREATE TABLE "medalists" ( "medal" text, "name" text, "sport" text, "event" text, "date" text );
SELECT "event" FROM "medalists" WHERE "name"='xu zhilin';
2-17950898-1
What sport has Ma Yuxi in it?
CREATE TABLE "medalists" ( "medal" text, "name" text, "sport" text, "event" text, "date" text );
SELECT "sport" FROM "medalists" WHERE "name"='ma yuxi';
2-17950898-1
How many years is Antonio Pompa-Baldi Italy first?
CREATE TABLE "table_showing_prize_winners_from_the_cle" ( "year" real, "first" text, "second" text, "third" text, "fourth" text );
SELECT COUNT("year") FROM "table_showing_prize_winners_from_the_cle" WHERE "first"='antonio pompa-baldi italy';
2-18332376-1
Who is fourth when Anders Martinson USA is second?
CREATE TABLE "table_showing_prize_winners_from_the_cle" ( "year" real, "first" text, "second" text, "third" text, "fourth" text );
SELECT "fourth" FROM "table_showing_prize_winners_from_the_cle" WHERE "second"='anders martinson usa';
2-18332376-1
Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18?
CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT SUM("wins") FROM "league_standings" WHERE "club"='abuls smiltene' AND "goals_for"<18;
2-18017936-2
Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7?
CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT AVG("wins") FROM "league_standings" WHERE "goal_difference">-24 AND "draws">7;
2-18017936-2
Can you tell me the highest Draws that has the Goal Difference smaller than 64, and the Played larger than 30?
CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT MAX("draws") FROM "league_standings" WHERE "goal_difference"<64 AND "played">30;
2-18017936-2
Can you tell me the highest Points that has the Played smaller than 30?
CREATE TABLE "league_standings" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT MAX("points") FROM "league_standings" WHERE "played"<30;
2-18017936-2
What rank was the country with no bronze but at least 1 silver medals?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_count" WHERE "bronze"<1 AND "silver">1;
2-17657219-1
What is the smallest number of gold medals a country with 1 bronze, and a total of 3 medals which is lower than rank 7?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_count" WHERE "bronze"=1 AND "total"=3 AND "rank">7;
2-17657219-1
What is the smallest number of gold medals a country with 7 medals has?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_count" WHERE "total"=7;
2-17657219-1
Can you tell me the Host City that has the Games of vii?
CREATE TABLE "venues" ( "games" text, "year" real, "host_city" text, "province" text, "dates" text );
SELECT "host_city" FROM "venues" WHERE "games"='vii';
2-18312341-1
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year">2006 AND "award"='drama desk award' AND "category"='outstanding featured actor in a musical';
2-1833678-1
What year was Evita nominated for outstanding featured actor in a musical?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "category"='outstanding featured actor in a musical' AND "nominated_work"='evita';
2-1833678-1
What was the nominated work, nominated for the drama league award before 2007?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='drama league award' AND "year"<2007;
2-1833678-1
Who had the pole position on 7 August?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );
SELECT "pole_position" FROM "race_calendar_and_winners" WHERE "date"='7 august';
2-18095719-2
Who was the winning team at Zandvoort?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );
SELECT "winning_team" FROM "race_calendar_and_winners" WHERE "circuit"='zandvoort';
2-18095719-2
Which Losses have Wins smaller than 6, and a South West DFL of sandford?
CREATE TABLE "2010_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("losses") FROM "2010_ladder" WHERE "wins"<6 AND "south_west_dfl"='sandford';
2-17746037-15
How much Against has Draws of 2, and Losses smaller than 4?
CREATE TABLE "2010_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("against") FROM "2010_ladder" WHERE "draws"=2 AND "losses"<4;
2-17746037-15
How many Losses have South West DFL of coleraine, and an Against smaller than 891?
CREATE TABLE "2010_ladder" ( "south_west_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("losses") FROM "2010_ladder" WHERE "south_west_dfl"='coleraine' AND "against"<891;
2-17746037-15
What is the lowest played number when goals for is 47, and wins is smaller than 14?
CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("played") FROM "group_i" WHERE "goals_for"=47 AND "wins"<14;
2-17832085-2
What Club has 13 wins, goals against less than 48, and a position of 4?
CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT "club" FROM "group_i" WHERE "wins"=13 AND "goals_against"<48 AND "position"=4;
2-17832085-2
What is the lowest position number when goals against was 59, and a goals for is smaller than 24?
CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("position") FROM "group_i" WHERE "goals_against"=59 AND "goals_for"<24;
2-17832085-2
What is the highest goals against when points are larger than 31, the goal difference is smaller than 9, wins are 13, and draws are larger than 6?
CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("goals_against") FROM "group_i" WHERE "points">31 AND "goal_difference"<9 AND "wins"=13 AND "draws">6;
2-17832085-2
What is the lowest played number when points are larger than 32, and a wins are larger than 18?
CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("played") FROM "group_i" WHERE "points">32 AND "wins">18;
2-17832085-2
Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002?
CREATE TABLE "2002" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT MAX("against") FROM "2002" WHERE "status"='six nations' AND "date"='02/03/2002';
2-18178551-3
Can you tell me the average Against thaylt has the Date of 23/03/2002?
CREATE TABLE "2002" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT AVG("against") FROM "2002" WHERE "date"='23/03/2002';
2-18178551-3
What is the population of area of 11?
CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" text, "density" text );
SELECT "population" FROM "subdivisions" WHERE "area"='11';
2-1834138-2
What shows for traditional when the population was 44,803?
CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" text, "density" text );
SELECT "traditional" FROM "subdivisions" WHERE "population"='44,803';
2-1834138-2
What is the population when the area is 4,575?
CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" text, "density" text );
SELECT "population" FROM "subdivisions" WHERE "area"='4,575';
2-1834138-2
What shows for simplified when the density is 52?
CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" text, "density" text );
SELECT "simplified" FROM "subdivisions" WHERE "density"='52';
2-1834138-2