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 winning score in the u.s. women's open that was won by 5 strokes?
CREATE TABLE "wins_13" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text );
SELECT "winning_score" FROM "wins_13" WHERE "championship"='u.s. women''s open' AND "margin"='5 strokes';
2-1635463-1
What is Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "high_rebounds"='marcus camby (15)' AND "high_assists"='baron davis (7)';
2-17323529-6
What is Game, when Team is "Philadelphia"
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "game" FROM "game_log" WHERE "team"='philadelphia';
2-17323529-6
What is High Assists, when Team is "@ Milwaukee"?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "game_log" WHERE "team"='@ milwaukee';
2-17323529-6
What was the tie number for the round against visiting opponent Chelsea?
CREATE TABLE "fourth_round" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT SUM("tie_no") FROM "fourth_round" WHERE "away_team"='chelsea';
2-17540875-5
What was the tie number for the round against visiting opponent Newcastle United?
CREATE TABLE "fourth_round" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "fourth_round" WHERE "away_team"='newcastle united';
2-17540875-5
What date was Millwall the home team?
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 "home_team"='millwall';
2-17608125-5
What date was Leeds United the away team?
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"='leeds united';
2-17608125-5
What was the score when Bolton Wanderers were the away team?
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 "away_team"='bolton wanderers';
2-17608125-5
What is the total of events when the tournament was U.S. Open and the Top-25 was less than 1?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT SUM("events") FROM "summary" WHERE "tournament"='u.s. open' AND "top_25"<1;
2-16884082-3
How many total wins have 3 as the Top-35 and less than 5 cuts made?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT SUM("wins") FROM "summary" WHERE "top_25"=3 AND "cuts_made"<5;
2-16884082-3
What is the minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_10") FROM "summary" WHERE "tournament"='the open championship' AND "wins">0;
2-16884082-3
With wins greater than 0 what is the minimum Top-10?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_10") FROM "summary" WHERE "wins">0;
2-16884082-3
What is the total Top-25 when the events were less than 0?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT SUM("top_25") FROM "summary" WHERE "events"<0;
2-16884082-3
Who is the player from the United States with a score of 71-75=146?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "score"='71-75=146';
2-17245554-3
Who is the player with a 77-68=145 score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "score"='77-68=145';
2-17245554-3
What is the country with a 76-68=144 score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "score"='76-68=144';
2-17245554-3
Who is the player in t8 place with a 75-71=146 score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "place"='t8' AND "score"='75-71=146';
2-17245554-3
What is the to par of the player from the United States with a place of t1 and a 76-68=144 score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "place"='t1' AND "score"='76-68=144';
2-17245554-3
What is the country of player lee trevino, who has a to par of +2?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "to_par"='+2' AND "player"='lee trevino';
2-17245554-3
Who was the pilot at lake dumbleyung?
CREATE TABLE "record_holders" ( "speed" text, "craft" text, "pilot_s" text, "location" text, "date" text );
SELECT "pilot_s" FROM "record_holders" WHERE "location"='lake dumbleyung';
2-1631951-1
How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?
CREATE TABLE "record_holders" ( "speed" text, "craft" text, "pilot_s" text, "location" text, "date" text );
SELECT "speed" FROM "record_holders" WHERE "location"='coniston water' AND "pilot_s"='malcolm campbell';
2-1631951-1
Which Home has an Away of 1–1?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "home" FROM "local_rivals" WHERE "away"='1–1';
2-16993234-5
Which Away has a Season of 2007–08?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "away" FROM "local_rivals" WHERE "season"='2007–08';
2-16993234-5
Which Season has an Away of 1–2?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "season" FROM "local_rivals" WHERE "away"='1–2';
2-16993234-5
Which Away has a Home of 1–0?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "away" FROM "local_rivals" WHERE "home"='1–0';
2-16993234-5
Which Season has a League of bezirksliga?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "season" FROM "local_rivals" WHERE "league"='bezirksliga';
2-16993234-5
Which Season has a Home of 0–1?
CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "season" FROM "local_rivals" WHERE "home"='0–1';
2-16993234-5
What was the Venue in 2003?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "date"='2003';
2-1663052-1
What Competition had a Score of 3–3?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "score"='3–3';
2-1663052-1
Name the lowest Round with Opponent of rolando delgado?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "opponent"='rolando delgado';
2-16881318-2
Name the total number of Round in liverpool , england?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "location"='liverpool , england';
2-16881318-2
Which Event is in chandigarh , india?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='chandigarh , india';
2-16881318-2
Who is the player with a year later than 2007 and the college/high school/club of Arizona?
CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text );
SELECT "player" FROM "selections" WHERE "year">2007 AND "college_high_school_club"='arizona';
2-17269615-4
What is the earliest year of c position player gary bergen?
CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text );
SELECT MIN("year") FROM "selections" WHERE "position"='c' AND "player"='gary bergen';
2-17269615-4
What round is sf/sg player sly williams from a year after 1965 from?
CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text );
SELECT "round" FROM "selections" WHERE "position"='sf/sg' AND "year">1965 AND "player"='sly williams';
2-17269615-4
What is the round of the pf position player from 1996 and the college/high school/club mississippi state?
CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text );
SELECT "round" FROM "selections" WHERE "position"='pf' AND "year"=1996 AND "college_high_school_club"='mississippi state';
2-17269615-4
Which Score has a Visitor of montreal canadiens, and Points of 5?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "visitor"='montreal canadiens' AND "points"=5;
2-17206737-4
Which Points have an Attendance of 21,273, and a Record of 5–1–1?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT MIN("points") FROM "game_log" WHERE "attendance"='21,273' AND "record"='5–1–1';
2-17206737-4
Which Points have a Visitor of montreal canadiens, and an Attendance larger than 18,568, and a Record of 2–0–1?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT MAX("points") FROM "game_log" WHERE "visitor"='montreal canadiens' AND "attendance">'18,568' AND "record"='2–0–1';
2-17206737-4
Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT "date" FROM "game_log" WHERE "home"='montreal canadiens' AND "points">9 AND "decision"='price';
2-17206737-4
What is the score for the home team Notts County?
CREATE TABLE "fifth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='notts county';
2-17437287-5
Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "rating" real, "share" real, "viewers_millions" real, "weekly_rank" text );
SELECT "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions">11.26 AND "weekly_rank"='#8' AND "share"=12;
2-17472074-5
Which Viewers (millions) has an Episode of "i'm not a good villain", and a Share smaller than 12?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "rating" real, "share" real, "viewers_millions" real, "weekly_rank" text );
SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"='\"i''m not a good villain\"' AND "share"<12;
2-17472074-5
What is the 2012 with a mini in 2009?
CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2012" FROM "see_also" WHERE "2009"='mini';
2-17513566-1
What is the 2013 with virgin in 2009?
CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2013" FROM "see_also" WHERE "2009"='virgin';
2-17513566-1
What is the highest rank of the 2009 xbox?
CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT MAX("rank") FROM "see_also" WHERE "2009"='xbox';
2-17513566-1
What is the 2010 with a rank higher than 15 and a 2011 maserati?
CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2010" FROM "see_also" WHERE "rank">15 AND "2011"='maserati';
2-17513566-1
What is the record with 23 points and a visitor of Chicago?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "points"=23 AND "visitor"='chicago';
2-17301013-4
What venue had a tie?
CREATE TABLE "captaincy_record" ( "venue" text, "span" text, "matches" text, "lost" text, "tied" text );
SELECT "tied" FROM "captaincy_record" WHERE "venue"='venue';
2-1695229-9
What was the score in Spain T3?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "place"='t3' AND "country"='spain';
2-16514242-4
What score did Lee Trevino get in T1?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "place"='t1' AND "player"='lee trevino';
2-16514242-4
Which player had the score 71-72=143 in Spain?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "score"='71-72=143' AND "country"='spain';
2-16514242-4
When curtis strange had a to par +1, what was his score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='curtis strange';
2-16514242-4
Who is the player for Zimbabwe?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "country"='zimbabwe';
2-17231232-5
What country is Greg Norman from?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='greg norman';
2-17231232-5
What country is Bob Tway from?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='bob tway';
2-17231232-5
What was the highest number of starts in 2007 when the average start was over 17.6?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text, "team_s" text );
SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "year"=2007 AND "avg_start">17.6;
2-1637041-4
What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?
CREATE TABLE "season_by_season" ( "driver" text, "points" real, "races" real, "wins" text, "second" text, "third" text );
SELECT "wins" FROM "season_by_season" WHERE "third"='1' AND "points"<572 AND "races"<16;
2-16775140-1
What was the result for the friendly match competition?
CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real );
SELECT "res" FROM "notable_matches" WHERE "competition"='friendly match';
2-1664918-1
What was the team #1 for the match that had a result of 0-3?
CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real );
SELECT "team_num1" FROM "notable_matches" WHERE "res"='0-3';
2-1664918-1
what is the 2010 population density for municipio ponce?
CREATE TABLE "puerto_rico" ( "2012_rank" real, "municipio" text, "2010_land_area" text, "2010_population_density" text, "ansi" real, "location" text );
SELECT "2010_population_density" FROM "puerto_rico" WHERE "municipio"='ponce';
2-1649321-4
What's the category for the tween academy: class of 2012 nomination?
CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text );
SELECT "category" FROM "awards_and_nominations" WHERE "nominated_for"='tween academy: class of 2012';
2-16910989-5
How many years was famas awards the award giving body?
CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text );
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award_giving_body"='famas awards';
2-16910989-5
What's the result for the category of best actor in a supporting role?
CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "category"='best actor in a supporting role';
2-16910989-5
Which Record has a Date of december 17?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "record" FROM "season_schedule" WHERE "date"='december 17';
2-17064870-5
Which Streak has a Team of new york knicks?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "streak" FROM "season_schedule" WHERE "team"='new york knicks';
2-17064870-5
Which Date has a Record of 21–10?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "date" FROM "season_schedule" WHERE "record"='21–10';
2-17064870-5
Which Team has a Record of 17–8?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "team" FROM "season_schedule" WHERE "record"='17–8';
2-17064870-5
Which Date has a Score of 102–113?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "date" FROM "season_schedule" WHERE "score"='102–113';
2-17064870-5
Which Game has a Streak of loss 1, and a Score of 110–111?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "game" FROM "season_schedule" WHERE "streak"='loss 1' AND "score"='110–111';
2-17064870-5
What is the name of the player who is Sco and moving to greenock morton in the summer?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "name" FROM "out" WHERE "nat"='sco' AND "transfer_window"='summer' AND "moving_to"='greenock morton';
2-17438913-3
Where is rory loy moving to?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "moving_to" FROM "out" WHERE "name"='rory loy';
2-17438913-3
What is the transfer fee for rory loy?
CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "transfer_fee" FROM "out" WHERE "name"='rory loy';
2-17438913-3
What is the date of the game with toronto as the visitor?
CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "date" FROM "final_standings" WHERE "visitor"='toronto';
2-17239112-4
What is the date of the game with less than 35 points and chicago as the home team?
CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "date" FROM "final_standings" WHERE "points"<35 AND "home"='chicago';
2-17239112-4
What is the date of the game with pittsburgh as the home team and boston as the visitor team?
CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "date" FROM "final_standings" WHERE "home"='pittsburgh' AND "visitor"='boston';
2-17239112-4
What is the record of the game with 35 points and pittsburgh as the home team?
CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "record" FROM "final_standings" WHERE "home"='pittsburgh' AND "points"=35;
2-17239112-4
What place did bobby wadkins come in?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "place" FROM "first_round" WHERE "player"='bobby wadkins';
2-17231302-4
What is the lowest Lane, when Mark is 7.66?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT MIN("lane") FROM "final" WHERE "mark"='7.66';
2-16188309-4
What is Mark, when React is less than 0.148?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT "mark" FROM "final" WHERE "react"<0.148;
2-16188309-4
What is the sum of Land, when React is greater than 0.217, and when Name is Yoel Hernández?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT SUM("lane") FROM "final" WHERE "react">0.217 AND "name"='yoel hernández';
2-16188309-4
What is Mark, when Lane is less than 5, and when React is 0.217?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT "mark" FROM "final" WHERE "lane"<5 AND "react"=0.217;
2-16188309-4
What was the record following game 67?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "record" FROM "season_schedule" WHERE "game"=67;
2-17064796-7
What day in February had an opponent of @ Colorado Rockies?
CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );
SELECT SUM("february") FROM "schedule_and_results" WHERE "opponent"='@ colorado rockies';
2-17562992-6
What was the score of the game with a record of 18-22-13?
CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "schedule_and_results" WHERE "record"='18-22-13';
2-17562992-6
Which Opponent in the final has a Score of 6–3, 3–6, 6–8?
CREATE TABLE "runners_up_17" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "runners_up_17" WHERE "score"='6–3, 3–6, 6–8';
2-1723582-10
Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?
CREATE TABLE "runners_up_17" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "tournament" FROM "runners_up_17" WHERE "surface"='carpet' AND "date"<1995 AND "opponent_in_the_final"='ken flach robert seguso';
2-1723582-10
What time in office does the U.S. Navy have?
CREATE TABLE "commanders_in_chief_commanders" ( "name" text, "branch" text, "term_began" text, "term_ended" text, "time_in_office" text );
SELECT "time_in_office" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. navy';
2-1711234-1
When did the term end for the U.S. Marine Corps?
CREATE TABLE "commanders_in_chief_commanders" ( "name" text, "branch" text, "term_began" text, "term_ended" text, "time_in_office" text );
SELECT "term_ended" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. marine corps';
2-1711234-1
What is the 2006 figure for Argentina when 2007 is less than 0,15?
CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real );
SELECT COUNT("2006") FROM "world_energy_intensity_progression_by_ye" WHERE "country"='argentina' AND "2007"<'0,15';
2-17541500-2
What is the 2009 average if 2008 is less than 0,11 and 2007 is less than 0,08?
CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real );
SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2008"<'0,11' AND "2007"<'0,08';
2-17541500-2
What is the 2009 average when the 2007 average is more than 0,18?
CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real );
SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2007">'0,18';
2-17541500-2
How many gains were there for the player who had a loss greater than 57 and a long less than 55?
CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );
SELECT COUNT("gain") FROM "rushing" WHERE "loss">57 AND "long"<55;
2-17102123-5
What is the lowest Loss for the player named total that has a long greater than 55?
CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );
SELECT MIN("loss") FROM "rushing" WHERE "name"='total' AND "long">55;
2-17102123-5
What nationality is Kentucky and the player Tayshaun Prince?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text );
SELECT "nationality" FROM "p" WHERE "school_club_team"='kentucky' AND "player"='tayshaun prince';
2-16494599-16
What is the nationality of Duke?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text );
SELECT "nationality" FROM "p" WHERE "school_club_team"='duke';
2-16494599-16
What was the nationality of a point guard position in 1999-2001?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text );
SELECT "nationality" FROM "p" WHERE "position"='point guard' AND "years_for_grizzlies"='1999-2001';
2-16494599-16
What is the position of Tayshaun Prince?
CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text );
SELECT "position" FROM "p" WHERE "player"='tayshaun prince';
2-16494599-16
Who was the parent on the order of 6?
CREATE TABLE "list_of_princesses_royal" ( "order" real, "name_dates" text, "princess_royal_from_date_to_date" text, "parent" text, "date_married" text, "husband_dates" text );
SELECT "parent" FROM "list_of_princesses_royal" WHERE "order"=6;
2-172426-1