question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the sum of all laps with rank 3?
CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT COUNT("laps") FROM "indy_500_results" WHERE "rank"='3';
2-1236138-1
What is the sum of all laps starting at 10 and finishing at 20?
CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT SUM("laps") FROM "indy_500_results" WHERE "start"='10' AND "finish"='20';
2-1236138-1
What's the rank when the start is 10 and the laps are fewer than 192?
CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "start"='10' AND "laps"<192;
2-1236138-1
What's the rank when the laps are fewer than 137 and the qual is 116.470?
CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "laps"<137 AND "qual"='116.470';
2-1236138-1
What director worked with Al Mackay as writer?
CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text );
SELECT "director_s" FROM "2009_i" WHERE "writer_s"='al mackay';
2-12181447-1
Which producer worked with Robert Sproul-cran as writer?
CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text );
SELECT "producer_s" FROM "2009_i" WHERE "writer_s"='robert sproul-cran';
2-12181447-1
Which film did Al Mackay write?
CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text );
SELECT "film" FROM "2009_i" WHERE "writer_s"='al mackay';
2-12181447-1
Who directed the film 'The Chapel'?
CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text );
SELECT "director_s" FROM "2009_i" WHERE "film"='the chapel';
2-12181447-1
What award did Andrew Ryder win as producer?
CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text );
SELECT "award" FROM "2009_i" WHERE "producer_s"='andrew ryder';
2-12181447-1
What is the total national rank of Canada with lanes larger than 3?
CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );
SELECT SUM("rank") FROM "semifinal_1" WHERE "nationality"='canada' AND "lane">3;
2-12446647-4
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("wins") FROM "final_table" WHERE "points"='39+1' AND "draws"<7;
2-12255317-2
For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("draws") FROM "final_table" WHERE "goal_difference">3 AND "losses"<8;
2-12255317-2
Which club had fewer than 29 goals against and a difference smaller than 26?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT "club" FROM "final_table" WHERE "goals_against"<29 AND "goal_difference"<26;
2-12255317-2
What was the score when the Rangers' attendance was 23,493?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance"='23,493';
2-12125069-7
Who was the opponent on the game on April 14, 2007?
CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "opponent" FROM "2007_game_log" WHERE "date"='april 14, 2007';
2-12172459-3
How many people were in attendance on the game on April 8, 2007?
CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "attendance" FROM "2007_game_log" WHERE "date"='april 8, 2007';
2-12172459-3
What was the date of the game with 16,404 people?
CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "date" FROM "2007_game_log" WHERE "attendance"='16,404';
2-12172459-3
Which category was Dev Patel nominated for?
CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text );
SELECT "category" FROM "nickelodeon_movies" WHERE "winner_nominee_s"='dev patel';
2-1305286-6
Which film was Eddie Murphy nominated for?
CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text );
SELECT "film" FROM "nickelodeon_movies" WHERE "winner_nominee_s"='eddie murphy' AND "result"='nominated';
2-1305286-6
When the start is 22, what is the finish?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "finish" FROM "indy_500_results" WHERE "start"='22';
2-1251885-1
What year resulted in 54 laps?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "year" FROM "indy_500_results" WHERE "laps"=54;
2-1251885-1
On what date was the score 2–4?
CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "score"='2–4';
2-12736926-3
Who was the home team when the score was 4–3?
CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "score"='4–3';
2-12736926-3
On what date was the record 2–1?
CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "record"='2–1';
2-12736926-3
Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text );
SELECT "winning_driver" FROM "race_calendar_and_winners" WHERE "winning_team"='opel team holzer 1' AND "round"<9 AND "fastest_lap"='bernd schneider';
2-12563443-2
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text );
SELECT COUNT("round") FROM "race_calendar_and_winners" WHERE "winning_manufacturer"='mercedes-benz' AND "circuit"='hockenheimring';
2-12563443-2
What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text );
SELECT "date" FROM "race_calendar_and_winners" WHERE "circuit"='hockenheimring' AND "winning_manufacturer"='mercedes-benz';
2-12563443-2
Who was the winning driver of the Circuit of Lausitzring?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text );
SELECT "winning_driver" FROM "race_calendar_and_winners" WHERE "circuit"='lausitzring';
2-12563443-2
What is the city of txdot har?
CREATE TABLE "am_radio" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text );
SELECT "city_of_license" FROM "am_radio" WHERE "brand"='txdot har';
2-12394513-2
What was radio mexicana's website?
CREATE TABLE "am_radio" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text );
SELECT "website" FROM "am_radio" WHERE "brand"='radio mexicana';
2-12394513-2
Which player ranks higher than 9?
CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real );
SELECT "player" FROM "rebounds" WHERE "rank">9;
2-12661367-3
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text );
SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "gross_revenue_1982"='$156,315';
2-12557214-2
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text );
SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "gross_revenue_1982"='$156,315';
2-12557214-2
How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011?
CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text );
SELECT "tickets_sold_available" FROM "box_office_score_data" WHERE "gross_revenue_2011"='$333,100';
2-12557214-2
What is the venue in the city of Brussels, Belgium?
CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text );
SELECT "venue" FROM "box_office_score_data" WHERE "city"='brussels, belgium';
2-12557214-2
What venue had gross revenues of $1,325,153 in 2011?
CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text );
SELECT "venue" FROM "box_office_score_data" WHERE "gross_revenue_2011"='$1,325,153';
2-12557214-2
What was held in 2003/04 when Former Ranking Tournaments was in 2007/08?
CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2003_04" FROM "performance_and_rankings_timeline" WHERE "2007_08"='former ranking tournaments';
2-12553592-1
What was held in 2009/10 with Former Ranking Tournaments in 2003/04?
CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2003_04"='former ranking tournaments';
2-12553592-1
What was held in 2003/04 when 3R was in 2012?
CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2003_04" FROM "performance_and_rankings_timeline" WHERE "2012_13"='3r';
2-12553592-1
What was held in 2009/10 when 2004/05 was Variant Format Tournaments?
CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2004_05"='variant format tournaments';
2-12553592-1
How many people are in Livingstone when less than 6,406 are in Firzroy, less than 3,967 in Mt. Morgan, more than 52,383 in Rochhampton, and less than 102,048 in total region?
CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real );
SELECT COUNT("livingstone") FROM "population" WHERE "fitzroy"<'6,406' AND "mt_morgan"<'3,967' AND "rockhampton">'52,383' AND "total_region"<'102,048';
2-12570207-1
How many people in the total region when there are more than 6,406 in Fitzroy, 27,017 in Livinstonge, and less than 58,382 in Rochhampton?
CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real );
SELECT COUNT("total_region") FROM "population" WHERE "fitzroy">'6,406' AND "livingstone"='27,017' AND "rockhampton"<'58,382';
2-12570207-1
How many people were in Mt Morgan earlier than 1933 when the Total Region had 44,501?
CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real );
SELECT COUNT("mt_morgan") FROM "population" WHERE "total_region"='44,501' AND "year"<1933;
2-12570207-1
What is the sum of people in the total region when more than 5,060 were in Mt. Morgan?
CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real );
SELECT SUM("total_region") FROM "population" WHERE "mt_morgan">'5,060';
2-12570207-1
What is the total swimsuit with Preliminaries smaller than 8.27?
CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("swimsuit") FROM "final_competition_scores" WHERE "preliminaries"<8.27;
2-12338595-1
What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842?
CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT AVG("interview") FROM "final_competition_scores" WHERE "preliminaries">8.27 AND "evening_gown"=8.85 AND "average"<8.842;
2-12338595-1
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?
CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT COUNT("swimsuit") FROM "final_competition_scores" WHERE "evening_gown">9 AND "interview">8.405;
2-12338595-1
What is the 2000 population in OK with a 1990-2000 percent change of A078 +17.22%?
CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text );
SELECT "2000_population" FROM "u_s_census_statistics" WHERE "state_s"='ok' AND "percent_change_1990_2000"='a078 +17.22%';
2-12720275-1
What is the 1990-2000 percent change of a result that is estimated to be 45,393 in 2007?
CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text );
SELECT "percent_change_1990_2000" FROM "u_s_census_statistics" WHERE "2007_estimate"='45,393';
2-12720275-1
What is the rank of a result with a population of 99,962 in 2000?
CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text );
SELECT "rank_csa" FROM "u_s_census_statistics" WHERE "2000_population"='99,962';
2-12720275-1
How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11?
CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT SUM("matches") FROM "for_top_goalkeepers" WHERE "goalkeeper"='wilfredo caballero' AND "average"<1.11;
2-12951990-4
What is the average goals less than 41 that goalkeeper Claudio Bravo had?
CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT COUNT("average") FROM "for_top_goalkeepers" WHERE "goals"<41 AND "goalkeeper"='claudio bravo';
2-12951990-4
What is the highest average of goals less than 45 for team Real Sociedad?
CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT MAX("average") FROM "for_top_goalkeepers" WHERE "goals"<45 AND "team"='real sociedad';
2-12951990-4
When did the person born on 3 May 1446 cease to be countess?
CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text );
SELECT "ceased_to_be_countess" FROM "1405_1482" WHERE "birth"='3 may 1446';
2-1279636-7
Who was the father of the person born in 1363?
CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text );
SELECT "father" FROM "1405_1482" WHERE "birth"='1363';
2-1279636-7
When was the marriage of the person who died on 17 December 1471?
CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text );
SELECT "marriage" FROM "1405_1482" WHERE "death"='17 december 1471';
2-1279636-7
On what surface did Poland play as the against team?
CREATE TABLE "fed_cup_doubles_performances_0_5" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text );
SELECT "surface" FROM "fed_cup_doubles_performances_0_5" WHERE "against"='poland';
2-12326046-6
Who was played against with a result of 3–6, 2–6?
CREATE TABLE "fed_cup_doubles_performances_0_5" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text );
SELECT "against" FROM "fed_cup_doubles_performances_0_5" WHERE "result"='3–6, 2–6';
2-12326046-6
Name the least year for paris, france venue
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );
SELECT MIN("year") FROM "achievements" WHERE "venue"='paris, france';
2-13252480-1
What's the total number of picks for mckinney high school?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT SUM("pick") FROM "supplemental_first_round_selections" WHERE "school"='mckinney high school';
2-12733279-3
What was the highest pick for the player Adam Jones?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT MAX("pick") FROM "supplemental_first_round_selections" WHERE "player"='adam jones';
2-12733279-3
What's the total number of picks for the player Matt Murton?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT SUM("pick") FROM "supplemental_first_round_selections" WHERE "player"='matt murton';
2-12733279-3
What position was pick 32?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );
SELECT "position" FROM "supplemental_first_round_selections" WHERE "pick"=32;
2-12733279-3
Who won at the Barbagallo Raceway circuit?
CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "circuit"='barbagallo raceway';
2-12807827-2
What was the title of the race at Oran Park Raceway?
CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "race_title" FROM "race_calendar" WHERE "circuit"='oran park raceway';
2-12807827-2
Who won at the Oran Park Raceway?
CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "winner" FROM "race_calendar" WHERE "circuit"='oran park raceway';
2-12807827-2
When Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed?
CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "city_state" FROM "race_calendar" WHERE "winner"='jim richards' AND "circuit"='winton motor raceway';
2-12807827-2
What is the capacity of the mine that is operated by Cyprus Amax minerals?
CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text );
SELECT "capacity_thousands_of_metric_tons" FROM "leading_copper_producing_mines" WHERE "operator"='cyprus amax minerals';
2-12728719-2
What rank is the Silver Bell mine of Pima county?
CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text );
SELECT "rank" FROM "leading_copper_producing_mines" WHERE "county"='pima' AND "mine"='silver bell';
2-12728719-2
What is the capacity of the Pinto Valley mine in Gila county?
CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text );
SELECT "capacity_thousands_of_metric_tons" FROM "leading_copper_producing_mines" WHERE "county"='gila' AND "mine"='pinto valley';
2-12728719-2
What is the first leg with an agg of 10-2?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "first_round" WHERE "agg"='10-2';
2-12443672-1
What is the agg of team 2 for Vantour Club Mangoungou?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "first_round" WHERE "team_2"='vantour club mangoungou';
2-12443672-1
What is the first leg of team 1 for Hardware stars?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "first_round" WHERE "team_1"='hardware stars';
2-12443672-1
What is the agg with a second leg of 0-1?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "first_round" WHERE "2nd_leg"='0-1';
2-12443672-1
What team 2 had a 1st leg of 1-1, and agg of 3-1?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "first_round" WHERE "1st_leg"='1-1' AND "agg"='3-1';
2-12443672-1
What team 2 had a second leg of 3-2?
CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "first_round" WHERE "2nd_leg"='3-2';
2-12443672-1
On what date was the game played at home against the opponent Siena?
CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text );
SELECT "date" FROM "matches" WHERE "opponent"='siena' AND "ground"='home';
2-12200756-14
What time was the game played against Cagliari that lasted 16 rounds?
CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text );
SELECT "time" FROM "matches" WHERE "opponent"='cagliari' AND "round"='16';
2-12200756-14
Where was the game played that had a score of 3-2 and a time of 15:00 cet?
CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text );
SELECT "ground" FROM "matches" WHERE "score"='3-2' AND "time"='15:00 cet';
2-12200756-14
What was the score on April 18?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='april 18';
2-12205709-3
What was the attendance when Nakamura (0-1) lost?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "loss"='nakamura (0-1)';
2-12205709-3
What was their record when they lost with Lilly (0-1) pitching?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "loss"='lilly (0-1)';
2-12205709-3
What was their record when the attendance was 26,827?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "attendance"='26,827';
2-12205709-3
Who is the December playmate with a February playmate Anne-Marie Fox?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "december" FROM "1980_1989" WHERE "february"='anne-marie fox';
2-12868503-4
Who is the August playmate with the October playmate Shannon Long?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "august" FROM "1980_1989" WHERE "october"='shannon long';
2-12868503-4
Who is the December playmate with a November playmate Marlene Janssen?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "december" FROM "1980_1989" WHERE "november"='marlene janssen';
2-12868503-4
Who is the November playmate with the July playmate Hope Marie Carlton?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "november" FROM "1980_1989" WHERE "july"='hope marie carlton';
2-12868503-4
Who is the March playmate with an August playmate Gianna Amore?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "march" FROM "1980_1989" WHERE "august"='gianna amore';
2-12868503-4
Who is the January playmate with the November playmate Donna Edmondson?
CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );
SELECT "january" FROM "1980_1989" WHERE "november"='donna edmondson';
2-12868503-4
What is the home stadium of the Tennessee Titans?
CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "2010_season" WHERE "host_team"='tennessee titans';
2-12771946-5
When were the Houston Texans the visiting team later in the season?
CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT MAX("week") FROM "2010_season" WHERE "visiting_team"='houston texans';
2-12771946-5
The final score was 24-34 on what date?
CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "date" FROM "2010_season" WHERE "final_score"='24-34';
2-12771946-5
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?
CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "performance_by_nation" WHERE "silver"=2 AND "total"<7;
2-12634250-2
What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?
CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "performance_by_nation" WHERE "bronze"=7 AND "gold">18;
2-12634250-2
What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?
CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "performance_by_nation" WHERE "silver">11 AND "rank"='1' AND "bronze"<7;
2-12634250-2
What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?
CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "performance_by_nation" WHERE "bronze"=7 AND "silver">12;
2-12634250-2
What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals?
CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "performance_by_nation" WHERE "total"=37 AND "rank"='1' AND "bronze">7;
2-12634250-2
Name the score for yuliya ustyuzhanina
CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_titles" WHERE "opponent"='yuliya ustyuzhanina';
2-13140232-8
Name the date for hard surface and tournament of fort walton beach
CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_titles" WHERE "surface"='hard' AND "tournament"='fort walton beach';
2-13140232-8
Name the opponent with score of 1–6, 6–4, 6–4
CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_titles" WHERE "score"='1–6, 6–4, 6–4';
2-13140232-8