question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What Time elapsed has 14 February 2011 as the Closest approach?
CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text );
SELECT "time_elapsed" FROM "1990s" WHERE "closest_approach"='14 february 2011';
2-13698001-10
What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?
CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text );
SELECT "launched" FROM "1990s" WHERE "time_elapsed"='1991 days (5 yr, 5 mo, 12 d)';
2-13698001-10
With a Launched of 3 July 1998 what is the Closest approach?
CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text );
SELECT "closest_approach" FROM "1990s" WHERE "launched"='3 july 1998';
2-13698001-10
What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?
CREATE TABLE "1990s" ( "spacecraft" text, "destination" text, "launched" text, "closest_approach" text, "time_elapsed" text );
SELECT "launched" FROM "1990s" WHERE "spacecraft"='ulysses' AND "time_elapsed"='491 days (1 yr, 4 mo, 3 d)';
2-13698001-10
What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "karen_handel" FROM "republican_primary" WHERE "eric_johnson"='13%' AND "undecided"='22%';
2-13774007-2
In what poll is Nathan Deal at 13% and John Oxendine at 28%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "poll_source" FROM "republican_primary" WHERE "nathan_deal"='13%' AND "john_oxendine"='28%';
2-13774007-2
What is Eric Johnson at in the poll where Karen Handel is at 12%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "eric_johnson" FROM "republican_primary" WHERE "karen_handel"='12%';
2-13774007-2
In what poll is John Oxendine at 32%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "poll_source" FROM "republican_primary" WHERE "john_oxendine"='32%';
2-13774007-2
What is John Oxendine at in the poll where Karen Handel is at 38%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "john_oxendine" FROM "republican_primary" WHERE "karen_handel"='38%';
2-13774007-2
What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?
CREATE TABLE "republican_primary" ( "poll_source" text, "dates_administered" text, "john_oxendine" text, "karen_handel" text, "nathan_deal" text, "eric_johnson" text, "ray_mc_berry" text, "undecided" text );
SELECT "karen_handel" FROM "republican_primary" WHERE "poll_source"='insideradvantage' AND "john_oxendine"='15%';
2-13774007-2
What was the 1991 score?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text );
SELECT "score" FROM "winners" WHERE "year"='1991';
2-1510466-1
Where was the 1966 competition with a winner of Gary Cowan held?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text );
SELECT "venue" FROM "winners" WHERE "winner"='gary cowan' AND "year"='1966';
2-1510466-1
Who was the runner-up of the competition played at Minikahda Club?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text, "runner_up" text );
SELECT "runner_up" FROM "winners" WHERE "venue"='minikahda club';
2-1510466-1
Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?
CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text );
SELECT MAX("year") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='aarp' AND "us_cham_spending"='$39,805,000' AND "us_cham_rank">1;
2-1448498-1
Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?
CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text );
SELECT MIN("us_cham_rank") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='national assn of realtors' AND "year"<2012;
2-1448498-1
Which Year is the lowest one that has a US Cham Rank smaller than 1?
CREATE TABLE "us_chamber_lobbying_2002_2012" ( "year" real, "us_cham_rank" real, "us_cham_spending" text, "next_highest_spender" text, "next_highest_amount" text );
SELECT MIN("year") FROM "us_chamber_lobbying_2002_2012" WHERE "us_cham_rank"<1;
2-1448498-1
What was the Score in Final of the Eckerd Open Tournament?
CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text );
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "tournament_name"='eckerd open';
2-1399994-10
Who was the Partner in the United Airlines Tournament (1)?
CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text );
SELECT "partner" FROM "women_s_doubles_111" WHERE "tournament_name"='united airlines tournament (1)';
2-1399994-10
What was the Score in Final on February 19, 1989?
CREATE TABLE "women_s_doubles_111" ( "date" text, "tournament_name" text, "location" text, "partner" text, "score_in_final" text );
SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "date"='february 19, 1989';
2-1399994-10
What are the Points when the Place is 9?
CREATE TABLE "festivali_i_k_ng_s_46" ( "draw" real, "singer" text, "song" text, "points" real, "place" real );
SELECT "points" FROM "festivali_i_k_ng_s_46" WHERE "place"=9;
2-14314911-1
What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?
CREATE TABLE "festivali_i_k_ng_s_46" ( "draw" real, "singer" text, "song" text, "points" real, "place" real );
SELECT COUNT("place") FROM "festivali_i_k_ng_s_46" WHERE "singer"='mariza ikonomi' AND "points">20;
2-14314911-1
What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?
CREATE TABLE "2000s" ( "season" text, "total_td_s" real, "total_tc_s" real, "total_stc_s" real, "strongest_storm" text, "deaths" text );
SELECT AVG("total_tc_s") FROM "2000s" WHERE "strongest_storm"='zoe' AND "season"='totals';
2-14617448-4
With a Suited Match of 13:1, what is the Double Non-Suited Match?
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "suited_match"='13:1';
2-1393612-3
What's the Suited Match with a 2.99% House Edge?
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
2-1393612-3
With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='3:1' AND "house_edge"='3.53%';
2-1393612-3
Name the Non-Suited Match that has greater than 6 Number of Decks.
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "non_suited_match" FROM "match_the_dealer" WHERE "number_of_decks">6;
2-1393612-3
Name the Suited & Non-Suited Match with a 2.99% for House Edge.
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "suited_non_suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
2-1393612-3
With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?
CREATE TABLE "match_the_dealer" ( "number_of_decks" real, "non_suited_match" text, "double_non_suited_match" text, "suited_match" text, "suited_non_suited_match" text, "double_suited_match" text, "house_edge" text );
SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='4:1' AND "house_edge"='3.63%';
2-1393612-3
Wins smaller than 0 had what sum of year?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
2-15128023-2
Class of 125cc, and a Year smaller than 1966 had what lowest wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "year"<1966;
2-15128023-2
Class of 500cc, and a Wins smaller than 0 had what average year?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "wins"<0;
2-15128023-2
What are the highest laps Kazuki Nakajima did with a Grid larger than 19?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "race" WHERE "driver"='kazuki nakajima' AND "grid">19;
2-14270619-2
Which Constructor has a Grid of 17?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "grid"=17;
2-14270619-2
Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "grid">2 AND "constructor"='bmw sauber' AND "time_retired"='+15.037';
2-14270619-2
Participation as of actor, film editor has what average year?
CREATE TABLE "other_film_projects" ( "year" real, "english_title" text, "original_title" text, "country" text, "length" text, "participation_as" text );
SELECT AVG("year") FROM "other_film_projects" WHERE "participation_as"='actor, film editor';
2-15044621-3
What were the odds for the finish of 1/4h?
CREATE TABLE "race_history" ( "date" text, "track" text, "race" text, "purse_hi" text, "finish" text, "time" text, "last_1_4" real, "odds" text, "driver" text );
SELECT "odds" FROM "race_history" WHERE "finish"='1/4h';
2-14287251-1
What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?
CREATE TABLE "race_history" ( "date" text, "track" text, "race" text, "purse_hi" text, "finish" text, "time" text, "last_1_4" real, "odds" text, "driver" text );
SELECT MIN("last_1_4") FROM "race_history" WHERE "time"='1:53.2' AND "odds"='*1.30';
2-14287251-1
What is the average number of Gold when the total is 11 with more than 2 silver?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "total"=11 AND "silver">2;
2-13566976-7
What is the total rank with more than 0 silver and less than 2 medals total?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("rank") FROM "medal_table" WHERE "total"<2 AND "silver">0;
2-13566976-7
What is the value of bronze with less than 2 in total?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "bronze" FROM "medal_table" WHERE "total"<2;
2-13566976-7
What number of rank has more than 2 medals in total with less than 4 bronze?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("rank") FROM "medal_table" WHERE "total">2 AND "bronze"<4;
2-13566976-7
what is a building that is proposed and will have 32 floors?
CREATE TABLE "approved_and_proposed" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "floors" real, "status" text );
SELECT "building" FROM "approved_and_proposed" WHERE "status"='proposed' AND "floors"=32;
2-14374150-2
What is the best time for marcus marshall?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real );
SELECT AVG("best") FROM "qualifying_results" WHERE "name"='marcus marshall';
2-14625486-1
What is the best time for a rusport driver with a qual 2 time of 1:10.166?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real );
SELECT MAX("best") FROM "qualifying_results" WHERE "team"='rusport' AND "qual_2"='1:10.166';
2-14625486-1
What team had a qual 2 time of 58.385?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" real );
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='58.385';
2-14625486-1
What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0?
CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" rea...
SELECT COUNT("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "agricultural_panel"=0 AND "nominated_by_the_taoiseach">0 AND "industrial_and_commercial_panel"<0;
2-15142613-1
What is the average for the agricultural panel that has a National University of Ireland less than 0?
CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" rea...
SELECT AVG("agricultural_panel") FROM "composition_of_the_20th_seanad" WHERE "national_university_of_ireland"<0;
2-15142613-1
What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?
CREATE TABLE "composition_of_the_20th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" rea...
SELECT MIN("university_of_dublin") FROM "composition_of_the_20th_seanad" WHERE "administrative_panel"=3 AND "cultural_and_educational_panel"<2;
2-15142613-1
What was the record at Memorial Stadium on September 19, 1965?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='september 19, 1965';
2-14977592-1
What is the largest attendance at Memorial Stadium on December 12, 1965?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='memorial stadium' AND "date"='december 12, 1965';
2-14977592-1
Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?
CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );
SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='herman everhardus' AND "field_goals">0;
2-14341967-2
Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?
CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );
SELECT SUM("extra_points") FROM "scoring_leaders" WHERE "points"<12 AND "player"='chuck bernard' AND "touchdowns">1;
2-14341967-2
How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?
CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );
SELECT SUM("field_goals") FROM "scoring_leaders" WHERE "touchdowns"<3 AND "player"='willis ward' AND "extra_points"<0;
2-14341967-2
Whicih Extra points are the average ones that have Points smaller than 6?
CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );
SELECT AVG("extra_points") FROM "scoring_leaders" WHERE "points"<6;
2-14341967-2
Which position is round 7?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "position" FROM "draft_picks" WHERE "round"=7;
2-14294324-15
Which college has a position of goaltender?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='goaltender';
2-14294324-15
What is Darryl Fedorak's highest round?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT MAX("round") FROM "draft_picks" WHERE "player"='darryl fedorak';
2-14294324-15
What nationality has a higher round than 8?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "nationality" FROM "draft_picks" WHERE "round">8;
2-14294324-15
What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?
CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text );
SELECT "connection_with_australia" FROM "music" WHERE "connection_with_america"='born in the u.s.; mother is u.s. citizen';
2-14672445-8
What is the person born in Australia, rick springfield notable for?
CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text );
SELECT "notable_for" FROM "music" WHERE "connection_with_australia"='born in australia' AND "name"='rick springfield';
2-14672445-8
What is the Born–Died for the person whose family moved to Australia at age 6?
CREATE TABLE "music" ( "name" text, "born_died" text, "notable_for" text, "connection_with_australia" text, "connection_with_america" text );
SELECT "born_died" FROM "music" WHERE "connection_with_australia"='family moved to australia at age 6';
2-14672445-8
What is the latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz?
CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text );
SELECT MAX("date") FROM "2000s" WHERE "cores_per_die_dies_per_module"='2 / 1' AND "clock"='1.4-1.6ghz';
2-13624133-4
Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?
CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text );
SELECT "process" FROM "2000s" WHERE "date">2000 AND "clock"='1.4-1.6ghz';
2-13624133-4
Which date has a Clock of 0.8-1.6ghz?
CREATE TABLE "2000s" ( "date" real, "name" text, "developer" text, "clock" text, "process" text, "cores_per_die_dies_per_module" text );
SELECT "date" FROM "2000s" WHERE "clock"='0.8-1.6ghz';
2-13624133-4
What was the record on May 21?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='may 21';
2-14546523-4
On what date was the attendance 24,976?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "attendance"='24,976';
2-14546523-4
On what date was the record 21-26?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='21-26';
2-14546523-4
How many were in attendance with a loss of Prokopec (2-7)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "loss"='prokopec (2-7)';
2-14546523-4
Who was the opponent on May 20?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "date"='may 20';
2-14546523-4
What is the tournament on Apr 6?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text );
SELECT "tournament" FROM "tournament_results" WHERE "date"='apr 6';
2-14685268-1
What is the 1st prize of the tournament in Scotland?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text );
SELECT "1st_prize" FROM "tournament_results" WHERE "location"='scotland';
2-14685268-1
What is the location of the Sea Pines Heritage Classic tournament?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text );
SELECT "location" FROM "tournament_results" WHERE "tournament"='sea pines heritage classic';
2-14685268-1
What is the score of the Tournament Players Championship?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text );
SELECT "score" FROM "tournament_results" WHERE "tournament"='tournament players championship';
2-14685268-1
What is the 1st prize at the U.S. Open?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text );
SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='u.s. open';
2-14685268-1
What is the average first prize of the tournament with a score of 279 (–9)?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real );
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "score"='279 (–9)';
2-14611619-1
What is the lowest first prize of the Mercedes Championships tournament in California?
CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real );
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='california' AND "tournament"='mercedes championships';
2-14611619-1
What is the average capacity for the venue where the team kommunalnik played?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text );
SELECT AVG("capacity") FROM "teams_and_venues" WHERE "team"='kommunalnik';
2-14747235-1
What is the position of the team that played at the venue, Central, Gomel?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text );
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "venue"='central, gomel';
2-14747235-1
What is the position of the team that played at the venue with more than 6,500 capacity?
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1999" text );
SELECT "position_in_1999" FROM "teams_and_venues" WHERE "capacity">'6,500';
2-14747235-1
What is the smallest number of assists with 70 Pims and less than 19 goals?
CREATE TABLE "points_for_the_2007_08_season" ( "name" text, "pld" real, "goals" real, "assists" real, "points" real, "pims" real );
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "pims"=70 AND "goals"<19;
2-15213262-14
What is the smallest number of assists for Ben Duggan with less than 7 points?
CREATE TABLE "points_for_the_2007_08_season" ( "name" text, "pld" real, "goals" real, "assists" real, "points" real, "pims" real );
SELECT MIN("assists") FROM "points_for_the_2007_08_season" WHERE "name"='ben duggan' AND "points"<7;
2-15213262-14
In what Year was Rhode Island the National Champion?
CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text );
SELECT "year" FROM "division_1" WHERE "national_champion"='rhode island';
2-1511632-1
What was the Runner-up in the Monroe County Sports Commission?
CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text );
SELECT "runner_up" FROM "division_1" WHERE "host"='monroe county sports commission';
2-1511632-1
At what Location was the Runner-up TBD?
CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text );
SELECT "location" FROM "division_1" WHERE "runner_up"='tbd';
2-1511632-1
At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?
CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text );
SELECT "location" FROM "division_1" WHERE "host"='robert morris university (illinois)' AND "national_champion"='lindenwood';
2-1511632-1
What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
CREATE TABLE "division_1" ( "year" text, "national_champion" text, "runner_up" text, "location" text, "host" text );
SELECT "runner_up" FROM "division_1" WHERE "national_champion"='ohio' AND "location"='tucson, az';
2-1511632-1
Which graphics spec has a VRAM spec of 512MB?
CREATE TABLE "comparison_table" ( "model" text, "processor" text, "memory" text, "storage" text, "graphics" text, "vram" text, "display_resolution" text, "msrp" text );
SELECT "graphics" FROM "comparison_table" WHERE "vram"='512mb';
2-15295713-2
What is the MSRP for the laptop with storage of 128-512 GB SSD?
CREATE TABLE "comparison_table" ( "model" text, "processor" text, "memory" text, "storage" text, "graphics" text, "vram" text, "display_resolution" text, "msrp" text );
SELECT "msrp" FROM "comparison_table" WHERE "storage"='128-512 gb ssd';
2-15295713-2
Name the opponent for game 5
CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text );
SELECT "opponent" FROM "playoffs" WHERE "game"=5;
2-14208855-12
What status is shown for Cadeby?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='cadeby';
2-1469667-1
What is the Former local authority for Ecclesfield?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "former_local_authority" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='ecclesfield';
2-1469667-1
What is the Status of Mexborough?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='mexborough';
2-1469667-1
What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "status" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "district"='doncaster' AND "former_local_authority"='doncaster rural district' AND "population"=203;
2-1469667-1
What is the score on December 1?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "regular_season" WHERE "date"='december 1';
2-14208862-4
Which skip has Oliver Dupont as a second?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "teams" WHERE "second"='oliver dupont';
2-15066680-1
Which second's third is Jean-Michel Arsenault?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "second" FROM "teams" WHERE "third"='jean-michel arsenault';
2-15066680-1
Which skip's third is Steffen Walstad?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "teams" WHERE "third"='steffen walstad';
2-15066680-1
Which skip's second is Martin Hejhal?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "teams" WHERE "second"='martin hejhal';
2-15066680-1
Which skip's lead is Gordon McDougall?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "skip" FROM "teams" WHERE "lead"='gordon mcdougall';
2-15066680-1
Which second's skip is Chris Plys?
CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text );
SELECT "second" FROM "teams" WHERE "skip"='chris plys';
2-15066680-1