question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What Team 1 has union douala as Team 2?
CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "second_round" WHERE "team_2"='union douala';
2-12483185-2
What was the score of the game that had a loss of Cerutti (0-1)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "loss"='cerutti (0-1)';
2-12207474-7
Who was the opponent at the game that had a record of 93-54?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "record"='93-54';
2-12207474-7
What was the score to par for 156 strokes?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total">156;
2-12819742-2
How many strokes for arnold palmer with a to par of greater than 9?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">9 AND "player"='arnold palmer';
2-12819742-2
What was the score to par in 1960?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1960';
2-12819742-2
What is the earliest first game for a rugby team that has 7 lost games and 0 draws?
CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text );
SELECT MIN("first_game") FROM "rugby_germany_internationals_1989" WHERE "lost"=7 AND "drawn"<0;
2-13099215-1
How many games were played by a team that won 0.00% of their games and 0 draws?
CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text );
SELECT SUM("played") FROM "rugby_germany_internationals_1989" WHERE "percentage"='0.00%' AND "drawn"<0;
2-13099215-1
Name the matches for the first match being 30 march 1997
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "1st_match"='30 march 1997';
2-12161422-1
Name the 1st match for brisbane bears
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "1st_match" FROM "team_wins_losses_and_draws" WHERE "team"='brisbane bears';
2-12161422-1
Name the lost for matches of 1 928
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "matches"='1 928';
2-12161422-1
Name the lost for % won of 55.37
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37';
2-12161422-1
Name the matches for gold coast
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "team"='gold coast';
2-12161422-1
Name the lost for % won of 55.37
CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text );
SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37';
2-12161422-1
What is the year when cable was 4.6%?
CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );
SELECT "year" FROM "statistics" WHERE "cable"='4.6%';
2-12837881-3
What is the other for 2012?
CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );
SELECT "other" FROM "statistics" WHERE "year"='2012';
2-12837881-3
What is the xDSL for the other of 0.6% and FTTx of 35.4%?
CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );
SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "ft_tx"='35.4%';
2-12837881-3
What is the other for a 78.2% xDSL?
CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );
SELECT "other" FROM "statistics" WHERE "x_dsl"='78.2%';
2-12837881-3
What is the xDSL in 2010 when the other was 0.6%?
CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );
SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "year"='2010';
2-12837881-3
Which date has a Result of won, and a Score of 1-0?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "date" FROM "international_goals" WHERE "result"='won' AND "score"='1-0';
2-12402576-1
Which result has a Date of november 2, 2007?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "date"='november 2, 2007';
2-12402576-1
Which Competition has a Score of 2-0?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "score"='2-0';
2-12402576-1
Which Venue has a Date of january 9, 2011?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "date"='january 9, 2011';
2-12402576-1
What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?
CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );
SELECT "termination_of_mission" FROM "see_also" WHERE "presentation_of_credentials"='july 4, 1898';
2-12826598-1
What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?
CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );
SELECT "presentation_of_credentials" FROM "see_also" WHERE "title"='ambassador extraordinary and plenipotentiary' AND "representative"='raúl h. castro';
2-12826598-1
Who is the representative with a presentation of credentials date on February 23, 1854?
CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );
SELECT "representative" FROM "see_also" WHERE "presentation_of_credentials"='february 23, 1854';
2-12826598-1
What is the title of the representative appointed by James K. Polk?
CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );
SELECT "title" FROM "see_also" WHERE "appointed_by"='james k. polk';
2-12826598-1
What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?
CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );
SELECT "termination_of_mission" FROM "see_also" WHERE "appointed_by"='franklin pierce' AND "title"='chargé d''affaires';
2-12826598-1
What is the Stadium held on november 29?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "2007_season" WHERE "date"='november 29';
2-12771946-2
Who is the Visiting team on december 20?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "visiting_team" FROM "2007_season" WHERE "date"='december 20';
2-12771946-2
Which Stadium has a Visiting team of pittsburgh steelers?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "stadium" FROM "2007_season" WHERE "visiting_team"='pittsburgh steelers';
2-12771946-2
Who is the Host team that has a chicago bears as a visiting team?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='chicago bears';
2-12771946-2
What is the Final score on november 22?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "2007_season" WHERE "date"='november 22';
2-12771946-2
What is the Host team that has indianapolis colts as a Visiting team?
CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='indianapolis colts';
2-12771946-2
Who won when np cooper av cooke was runner up?
CREATE TABLE "winners" ( "year" real, "winners" text, "club" text, "time" text, "runners_up" text );
SELECT "winners" FROM "winners" WHERE "runners_up"='np cooper av cooke';
2-12963180-1
What was the record of the match that had a time of 1:44?
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 "time"='1:44';
2-12758642-2
Who was the opponent at GCM – D.O.G. 4?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='gcm – d.o.g. 4';
2-12758642-2
What was the location of the match that ended before round 2, against Hikaru Sato?
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 "round"<2 AND "opponent"='hikaru sato';
2-12758642-2
What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?
CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );
SELECT "company_or_product_name" FROM "series_10" WHERE "money_requested"='75,000' AND "entrepreneur_s"='geoff and colette bell';
2-12617978-14
Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?
CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );
SELECT "investing_dragon_s" FROM "series_10" WHERE "episode"='episode 9' AND "entrepreneur_s"='ashley sayed';
2-12617978-14
What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?
CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );
SELECT "episode" FROM "series_10" WHERE "entrepreneur_s"='luke booth and christopher eves';
2-12617978-14
Which Company or Product name requested £70,000 on Episode 11?
CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );
SELECT "company_or_product_name" FROM "series_10" WHERE "episode"='episode 11' AND "money_requested"='70,000';
2-12617978-14
What is the year in which Yong Yudianto won the men's singles?
CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT MIN("year") FROM "previous_winners" WHERE "men_s_singles"='yong yudianto';
2-12275654-1
Who won the men's singles in 1999?
CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "men_s_singles" FROM "previous_winners" WHERE "year"=1999;
2-12275654-1
What is stephen arigbabu's height?
CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text );
SELECT MIN("height") FROM "fiba_euro_basket_2007_squads" WHERE "player"='stephen arigbabu';
2-12962773-9
For all games with los angeles as visitor, what is the highest attendance of all?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT MAX("attendance") FROM "february" WHERE "visitor"='los angeles';
2-13242342-7
For all games with calgary as home, what is the average number of attendees?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "february" WHERE "home"='calgary';
2-13242342-7
Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?
CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text );
SELECT "no_5" FROM "nominations" WHERE "no_1"='lena claudisabel' AND "no_2"='lena sylvie';
2-12531692-10
Who is no.3 when Claudio Sylvie is no.1?
CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text );
SELECT "no_3" FROM "nominations" WHERE "no_1"='claudio sylvie';
2-12531692-10
What was the score of the game when the record was 18-20?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "record"='18-20';
2-12206356-2
What Men's double held together with Women's singles of camilla martin?
CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='camilla martin';
2-12171145-1
Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?
CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='zhu lin';
2-12513240-1
Who was on the Men's Doubles Team in 2002?
CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2002;
2-12513240-1
Which year did Aya Ohori play in the Women's Singles?
CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );
SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='aya ohori';
2-12513240-1
Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?
CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "partner" FROM "doubles_8" WHERE "opponents_in_the_final"='flavio cipolla simone vagnozzi';
2-13141391-4
Who were the Opponents in the final that played on a carpet (i) Surface?
CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "surface"='carpet (i)';
2-13141391-4
Played on Clay Surface, what was the Score of the Dortmund Tournament?
CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "doubles_8" WHERE "surface"='clay' AND "tournament"='dortmund';
2-13141391-4
Who is Partner Frederik Nielsen's Opponents in the final?
CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "partner"='frederik nielsen';
2-13141391-4
What is Partner Tomas Behrend's Score in the final?
CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "doubles_8" WHERE "partner"='tomas behrend';
2-13141391-4
What Country does Larry Mize play for?
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 "player"='larry mize';
2-12531523-2
What is the winning total from 1976?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT MAX("total") FROM "missed_the_cut" WHERE "year_s_won"='1976';
2-12531523-2
What year was owner Michael E. Pegram's last win?
CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT MAX("year") FROM "winners_since_1995" WHERE "owner"='michael e. pegram';
2-12168673-1
Who is the trainer for Cherry Valley Farm?
CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "trainer" FROM "winners_since_1995" WHERE "owner"='cherry valley farm';
2-12168673-1
Who owned winner Blueeyesintherein after 2009?
CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );
SELECT "owner" FROM "winners_since_1995" WHERE "year">2009 AND "winner"='blueeyesintherein';
2-12168673-1
Who was the Blue Jays' opponent when their record was 33-15?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "record"='33-15';
2-12207528-4
Who did the Blue Jays lose to when their record was 36-20?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "record"='36-20';
2-12207528-4
What is the rank of the qual 141.471?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "qual"='141.471';
2-1252065-1
What is the start of lap 55?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "start" FROM "indy_500_results" WHERE "laps"=55;
2-1252065-1
What is rank of the year 1956?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "year"='1956';
2-1252065-1
What is the lap number for the rank of 13?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "laps" FROM "indy_500_results" WHERE "rank"='13';
2-1252065-1
What is the rank for 1961?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "year"='1961';
2-1252065-1
What is the sum of the lap with a finish of 24?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT SUM("laps") FROM "indy_500_results" WHERE "finish"='24';
2-1252065-1
Which band plays Self Versus Self - Immersion?
CREATE TABLE "discography" ( "album_or_song" text, "band" text, "memebrship" text, "role" text, "year" real );
SELECT "band" FROM "discography" WHERE "album_or_song"='self versus self - immersion';
2-1297671-1
What Event used submission (rear naked choke) with 9-4?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "record"='9-4';
2-12278106-2
What event was Donald Ouimet involved?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='donald ouimet';
2-12278106-2
What event did she finish 3rd in 2010?
CREATE TABLE "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT "event" FROM "senior" WHERE "position"='3rd' AND "year"=2010;
2-13047884-1
What year did she compete in tampere, finland?
CREATE TABLE "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );
SELECT AVG("year") FROM "senior" WHERE "venue"='tampere, finland';
2-13047884-1
Ben Hogan with a score larger than 66 had a place listed of what?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "place" FROM "first_round" WHERE "score">66 AND "player"='ben hogan';
2-13081672-1
With a score of 70, this player's name is listed as what?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "score"=70;
2-13081672-1
With a score smaller than 71 along with a place of t6, what is the To par score?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "score"<71 AND "place"='t6';
2-13081672-1
Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?
CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real );
SELECT "hanyu_pinyin" FROM "cities" WHERE "gdp_2011_billion_yuan">688.02 AND "regional_population_2010"='8,700,400';
2-1300302-1
Which Hanzi has a Regional Population of 4,591,972 in 2010?
CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real );
SELECT "hanzi" FROM "cities" WHERE "regional_population_2010"='4,591,972';
2-1300302-1
What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT "name" FROM "semifinal_2" WHERE "rank"<5 AND "time"<55.62 AND "lane"<5 AND "nationality"='netherlands';
2-12382948-5
What is the highest Rank of Karen Pickering when she had a time of less than 55.71?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MAX("rank") FROM "semifinal_2" WHERE "name"='karen pickering' AND "time"<55.71;
2-12382948-5
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MAX("lane") FROM "semifinal_2" WHERE "time">55.94 AND "rank">8;
2-12382948-5
What was the date of the game that had a loss of Burns (0-1)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "loss"='burns (0-1)';
2-12207553-3
What was the loss of the game when the record was 20-16?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "record"='20-16';
2-12207553-3
What was the loss of the game that had an attendance of 18,769?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "attendance"='18,769';
2-12207553-3
What was the date of the game that had a loss of Geisel (0-1)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "loss"='geisel (0-1)';
2-12207553-3
What is the date of the game against the Royals that had an attendance of 12,699?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "attendance"='12,699';
2-12207553-3
When Regions center has a rank less than 11, what is the greatest number o floors?
CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT MAX("floors") FROM "tallest_buildings" WHERE "name"='regions center' AND "rank"<11;
2-12169960-1
What is the average rank for a building with 24 floors?
CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT AVG("rank") FROM "tallest_buildings" WHERE "floors"=24;
2-12169960-1
What is the rank for Omni nashville hotel?
CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT SUM("rank") FROM "tallest_buildings" WHERE "name"='omni nashville hotel';
2-12169960-1
What is the greatest rank for Fifth third center?
CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT MAX("rank") FROM "tallest_buildings" WHERE "name"='fifth third center';
2-12169960-1
When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?
CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT AVG("year") FROM "tallest_buildings" WHERE "floors"<23 AND "height_ft_m"='292 (89)' AND "rank"<14;
2-12169960-1
What type of regular season/preseason game was played on August 25, 2007?
CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );
SELECT "regular_season_preseason" FROM "game_summaries" WHERE "date"='august 25, 2007';
2-12938428-1
In what stadium was the game on August 22, 2008 played?
CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );
SELECT "stadium" FROM "game_summaries" WHERE "date"='august 22, 2008';
2-12938428-1
In what stadium was the home team Dallas Cowboys 21?
CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );
SELECT "stadium" FROM "game_summaries" WHERE "home_team"='dallas cowboys 21';
2-12938428-1
On what date was the home team the Dallas Cowboys 34?
CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );
SELECT "date" FROM "game_summaries" WHERE "home_team"='dallas cowboys 34';
2-12938428-1
Who was the visiting team on October 15, 2006?
CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );
SELECT "visiting_team" FROM "game_summaries" WHERE "date"='october 15, 2006';
2-12938428-1