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 score of the game that had more than 8 points?
CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "score" FROM "regular_season" WHERE "points">8;
2-14294324-2
The round that had the final, what was the result?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "result" FROM "results" WHERE "round"='final';
2-14069451-1
Opponent of andry laffita had what score?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "score" FROM "results" WHERE "opponent"='andry laffita';
2-14069451-1
Opponent of igor samoilenco had what result?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "result" FROM "results" WHERE "opponent"='igor samoilenco';
2-14069451-1
Score of 33-22 had what round?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "round" FROM "results" WHERE "score"='33-22';
2-14069451-1
Round of first had what opponent?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "opponent" FROM "results" WHERE "round"='first';
2-14069451-1
Result of win, and a Score of 33-22 involved what event?
CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text );
SELECT "event" FROM "results" WHERE "result"='win' AND "score"='33-22';
2-14069451-1
What were the lowest points of game 60?
CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT MIN("points") FROM "regular_season" WHERE "game"=60;
2-14303579-6
What championship had Francesca Schiavone in the finals?
CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "championship" FROM "singles_5_2_3" WHERE "opponent_in_the_final"='francesca schiavone';
2-1498593-2
What is the total number of national titles for the team with doane tigers as the mascot?
CREATE TABLE "college_sports" ( "school" text, "mascot" text, "conference" text, "national_titles" real, "founded" real );
SELECT COUNT("national_titles") FROM "college_sports" WHERE "mascot"='doane tigers';
2-14115168-4
Which year's crew is varsity 8+ when the record is 7-3?
CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real );
SELECT "year" FROM "season_by_season_results" WHERE "crew"='varsity 8+' AND "record"='7-3';
2-15196750-1
What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?
CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real );
SELECT SUM("win_pct") FROM "season_by_season_results" WHERE "coach"='john gartin' AND "crew"='varsity 8+' AND "year"='2005';
2-15196750-1
What is the largest win percentage when John Gartin is coach, the record is 11-0, and the year is 2009?
CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real );
SELECT MAX("win_pct") FROM "season_by_season_results" WHERE "coach"='john gartin' AND "record"='11-0' AND "year"='2009';
2-15196750-1
What is the total of win percentages when the year is 2008 and the crew is varsity 8+?
CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real );
SELECT SUM("win_pct") FROM "season_by_season_results" WHERE "year"='2008' AND "crew"='varsity 8+';
2-15196750-1
What is the pick number for the tight end who was picked after round 6?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT COUNT("pick") FROM "nfl_draft" WHERE "round">6 AND "position"='tight end';
2-14656160-1
What is the lowest round for the player whose position is guard and had a pick number smaller than 144?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT MIN("round") FROM "nfl_draft" WHERE "position"='guard' AND "pick"<144;
2-14656160-1
What was the position of terry jones whose pick number was after 256?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT "position" FROM "nfl_draft" WHERE "pick">256 AND "player"='terry jones';
2-14656160-1
Which Loss has a Record of 30-32?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "loss" FROM "game_log" WHERE "record"='30-32';
2-14546539-4
Which Attendance is the highest one that has a Record of 37-38?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT MAX("attendance") FROM "game_log" WHERE "record"='37-38';
2-14546539-4
Which Score has a Loss of buehrle (7-2)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "loss"='buehrle (7-2)';
2-14546539-4
Which Overall is the average one that has a Pick # larger than 7, and a Round larger than 4, and a Name of glen howe?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">7 AND "round">4 AND "name"='glen howe';
2-15198842-19
Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">10 AND "position"='tight end' AND "overall"<132;
2-15198842-19
Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=32 AND "pick_num"<4;
2-15198842-19
How many Picks have a Round larger than 8, and a College of fresno state?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round">8 AND "college"='fresno state';
2-15198842-19
Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='oklahoma' AND "pick_num"<4;
2-15198842-19
What is the result of the match on 30 July 2004?
CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "under_23" WHERE "date"='30 july 2004';
2-1388892-4
What is the result of the match on 3 March 2004?
CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "under_23" WHERE "date"='3 march 2004';
2-1388892-4
What is the score of the friendly match?
CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "under_23" WHERE "competition"='friendly match';
2-1388892-4
Which Week had a Result of w 10-0, and an Attendance smaller than 58,571?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("week") FROM "schedule" WHERE "result"='w 10-0' AND "attendance"<'58,571';
2-15085862-2
Which Week had a Result of w 23-17?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT SUM("week") FROM "schedule" WHERE "result"='w 23-17';
2-15085862-2
What was the Attendance on october 2, 1977?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "attendance" FROM "schedule" WHERE "date"='october 2, 1977';
2-15085862-2
Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "bronze"=2 AND "silver"<0;
2-13941365-3
Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("total") FROM "medal_table" WHERE "gold"<4 AND "silver">0 AND "rank"='3' AND "bronze"<6;
2-13941365-3
Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what average gold?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "total">3 AND "rank"='4' AND "silver">0;
2-13941365-3
Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medal_table" WHERE "total"<10 AND "gold">1;
2-13941365-3
What was the date of the week 9 game?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real );
SELECT "date" FROM "season_schedule" WHERE "week"=9;
2-13982501-2
What class has over 0 wins and 42 points?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT "class" FROM "grand_prix_motorcycle_racing_results" WHERE "wins">0 AND "points"=42;
2-15162031-3
What team was the bike with a 350cc class, over 2 points, and 1 win?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "points">2 AND "wins"=1;
2-15162031-3
What is the earliest year associated with 0 wins and 42 points?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT MIN("year") FROM "grand_prix_motorcycle_racing_results" WHERE "wins">0 AND "points"=42;
2-15162031-3
What Nationality has the Player of Marcus Walker?
CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text );
SELECT "nationality" FROM "player_of_the_year" WHERE "player"='marcus walker';
2-13566745-4
What Season is listed for the Player of Jon Stefansson?
CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text );
SELECT "season" FROM "player_of_the_year" WHERE "player"='jon stefansson';
2-13566745-4
Which Team has the Player of A.J. Moye?
CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text );
SELECT "team" FROM "player_of_the_year" WHERE "player"='a.j. moye';
2-13566745-4
What Position does the Team of KR and the Player of Marcus Walker have listed?
CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text );
SELECT "position" FROM "player_of_the_year" WHERE "team"='kr' AND "player"='marcus walker';
2-13566745-4
What building is in ljubljana, proposed in 2010, and has 15 floors?
CREATE TABLE "tallest_proposed" ( "rank" real, "name" text, "location" text, "height_feet_metres" text, "floors" text, "year_proposed" text );
SELECT "name" FROM "tallest_proposed" WHERE "location"='ljubljana' AND "year_proposed"='2010' AND "floors"='15';
2-15062421-2
What is the Revenue of the population of more than 1,499,402, with Spending (millions) of $13,986?
CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_contribution_per_capita" text );
SELECT "revenue_millions" FROM "table_of_federal_taxation_and_spending_b" WHERE "population">'1,499,402' AND "spending_millions"='$13,986';
2-14700336-1
What is the Revenue per capita for Vermont?
CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_contribution_per_capita" text );
SELECT "revenue_per_capita" FROM "table_of_federal_taxation_and_spending_b" WHERE "state"='vermont';
2-14700336-1
What state has a Net contribution per capita of $-171?
CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_contribution_per_capita" text );
SELECT "state" FROM "table_of_federal_taxation_and_spending_b" WHERE "net_contribution_per_capita"='$-171';
2-14700336-1
Who is the PBA team with Mlqu college?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "pba_team" FROM "round_2" WHERE "college"='mlqu';
2-13533299-4
Which country of origin corresponds to Far Eastern college?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "country_of_origin" FROM "round_2" WHERE "college"='far eastern';
2-13533299-4
Who is the player with the PBA team of Barangay Ginebra Kings?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "player" FROM "round_2" WHERE "pba_team"='barangay ginebra kings';
2-13533299-4
Who was the opponent on April 28?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "stadium" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "date"='april 28';
2-13983270-4
What is the highest position the album Where we belong, which had an issue date higher than 9, had?
CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real );
SELECT COUNT("highest_position") FROM "top_10_albums" WHERE "issue_date"<9 AND "album_title"='where we belong';
2-1383396-4
What is the biggest issue date Madonna, who had less than 1,060,000 sales, had?
CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real );
SELECT MAX("issue_date") FROM "top_10_albums" WHERE "artist"='madonna' AND "sales"<'1,060,000';
2-1383396-4
What is the highest position Talk on Corners, which had an issue date greater than 1, had?
CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real );
SELECT COUNT("highest_position") FROM "top_10_albums" WHERE "album_title"='talk on corners' AND "issue_date">1;
2-1383396-4
What is the highest sales All Saints had?
CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real );
SELECT MAX("sales") FROM "top_10_albums" WHERE "album_title"='all saints';
2-1383396-4
Who is the Driver that has Car Model Commodore VS?
CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text );
SELECT "driver" FROM "teams_and_drivers" WHERE "car_model"='commodore vs';
2-14728848-1
What Car Model has the Manufacturer of Saab, and Driver Dean Randle?
CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text );
SELECT "car_model" FROM "teams_and_drivers" WHERE "manufacturer"='saab' AND "driver"='dean randle';
2-14728848-1
Who is the Driver with the Team of P & L Mechanical Services?
CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text );
SELECT "driver" FROM "teams_and_drivers" WHERE "team"='p & l mechanical services';
2-14728848-1
What Car Model has the Engine of Ford 6.0 V8?
CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text );
SELECT "car_model" FROM "teams_and_drivers" WHERE "engine"='ford 6.0 v8';
2-14728848-1
What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Driver Chris Jackson?
CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text );
SELECT "team" FROM "teams_and_drivers" WHERE "engine"='chevrolet 6.0 v8' AND "manufacturer"='opel' AND "driver"='chris jackson';
2-14728848-1
What is the Segment A entry for the episode that has an entry of Diesel filters for Segment D?
CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_a" FROM "season_21_2013" WHERE "segment_d"='diesel filters';
2-15187735-21
What is the series episode number that is larger than 262 and has a Segment A entry of Aluminium s canoe?
CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "series_ep" FROM "season_21_2013" WHERE "episode">262 AND "segment_a"='aluminium s canoe';
2-15187735-21
Which First elected has a District of south carolina 2?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text );
SELECT MIN("first_elected") FROM "south_carolina" WHERE "district"='south carolina 2';
2-1431459-6
Which Incumbent has a First elected larger than 1884?
CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text );
SELECT "incumbent" FROM "south_carolina" WHERE "first_elected">1884;
2-1431459-6
What is the English title with a Director named ang lee?
CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text );
SELECT "english_title" FROM "2000s" WHERE "director"='ang lee';
2-14830632-1
What is the Original title with a Country that is canada?
CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text );
SELECT "original_title" FROM "2000s" WHERE "country"='canada';
2-14830632-1
Which Architecture and modelling has a Unit test of no, and a Projects templates of limited?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "architecture_and_modelling" FROM "editions_feature_grid" WHERE "unit_test"='no' AND "projects_templates"='limited';
2-13980768-1
which MSDN integration has a Load testing of no, and a Test impact analysis of no?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "msdn_integration" FROM "editions_feature_grid" WHERE "load_testing"='no' AND "test_impact_analysis"='no';
2-13980768-1
Which Unit test has a MSDN integration of full, and a Projects templates of yes?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "unit_test" FROM "editions_feature_grid" WHERE "msdn_integration"='full' AND "projects_templates"='yes';
2-13980768-1
Which Intelli Trace has a No Extension and Windows Phone development of no?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "intelli_trace" FROM "editions_feature_grid" WHERE "extensions"='no' AND "windows_phone_development"='no';
2-13980768-1
Which Projects template has an IntelliTrace of no, and a Windows Phone development of yes, and a Test impact analysis of no?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "projects_templates" FROM "editions_feature_grid" WHERE "intelli_trace"='no' AND "windows_phone_development"='yes' AND "test_impact_analysis"='no';
2-13980768-1
Which MSDN integration has a IntelliTrace of yes?
CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, "code_coverage" text, "test_impact_analysis" text, "load_testing" text, "lab_management" text, "architecture_and_modelling" text, "windows_phone_development" text );
SELECT "msdn_integration" FROM "editions_feature_grid" WHERE "intelli_trace"='yes';
2-13980768-1
During what Years of Operation was the location prospect 33 prospect ave?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "years_of_operation" FROM "historical_list_of_princeton_eating_club" WHERE "location"='prospect 33 prospect ave';
2-15274094-1
What is the location of the ivy club?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "location" FROM "historical_list_of_princeton_eating_club" WHERE "name"='the ivy club';
2-15274094-1
What is the Sign-in/Bicker at wash50 on washington rd?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "sign_in_bicker" FROM "historical_list_of_princeton_eating_club" WHERE "location"='wash50 on washington rd';
2-15274094-1
When was the Clubhouse built with a Sign-in/Bicker of bicker, and Named cannon club?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "year_clubhouse_constructed" FROM "historical_list_of_princeton_eating_club" WHERE "sign_in_bicker"='bicker' AND "name"='cannon club';
2-15274094-1
Which Sign-in/Bicker is at of wash50 on washington rd?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "sign_in_bicker" FROM "historical_list_of_princeton_eating_club" WHERE "location"='wash50 on washington rd';
2-15274094-1
Which Historical Photos were taken at prospect 43 prospect ave?
CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year_co_ed" text );
SELECT "historical_photos" FROM "historical_list_of_princeton_eating_club" WHERE "location"='prospect 43 prospect ave';
2-15274094-1
What is the 1st leg of team 1 Lyon?
CREATE TABLE "first_knockout_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "first_knockout_round" WHERE "team_1"='lyon';
2-14679997-3
What is the 1st leg of team 1 Liverpool?
CREATE TABLE "first_knockout_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "first_knockout_round" WHERE "team_1"='liverpool';
2-14679997-3
How many events resulted in a top-25 less than 2?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT COUNT("events") FROM "summary" WHERE "top_25"<2;
2-1456085-10
What is the smallest number of wins for a top-25 value greater than 5 and more than 38 cuts?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("wins") FROM "summary" WHERE "top_25">5 AND "cuts_made">38;
2-1456085-10
How many bronze medals did Chinese Taipei win with less than 0 gold?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='chinese taipei' AND "gold"<0;
2-14335201-1
How many silver medals had a rank of 3 with bronze larger than 0?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "medal_table" WHERE "rank"=3 AND "bronze">0;
2-14335201-1
How many silver medals does China have?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "medal_table" WHERE "nation"='china';
2-14335201-1
Which Position has Losses of 11, and a Played larger than 22?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT SUM("position") FROM "torneo_apertura" WHERE "losses"=11 AND "played">22;
2-14871601-1
How many Wins have a Scored smaller than 24, and a Conceded larger than 25, and Draws larger than 5, and a Position smaller than 9?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT COUNT("wins") FROM "torneo_apertura" WHERE "scored"<24 AND "conceded">25 AND "draws">5 AND "position"<9;
2-14871601-1
How many Points has a Position of 8?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT AVG("points") FROM "torneo_apertura" WHERE "position"=8;
2-14871601-1
How many Wins has a Scored of 27 and Draws smaller than 5?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT COUNT("wins") FROM "torneo_apertura" WHERE "scored"=27 AND "draws"<5;
2-14871601-1
Which Position has Draws smaller than 7 and a Played larger than 22?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT AVG("position") FROM "torneo_apertura" WHERE "draws"<7 AND "played">22;
2-14871601-1
Which Played has a Scored larger than 25 and a Position of 1, and Draws smaller than 5?
CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real );
SELECT MAX("played") FROM "torneo_apertura" WHERE "scored">25 AND "position"=1 AND "draws"<5;
2-14871601-1
When was the player with 51 caps from a Club/province of clermont born?
CREATE TABLE "2008_six_nations_championship_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "date_of_birth_age" FROM "2008_six_nations_championship_squads" WHERE "caps"=51 AND "club_province"='clermont';
2-15149189-2
How many Episode Counts have an Actor of liz carr?
CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real );
SELECT COUNT("episode_count") FROM "overview_of_main_characters" WHERE "actor"='liz carr';
2-143678-3
Which Years have a Character of dr trevor stewart?
CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real );
SELECT "years" FROM "overview_of_main_characters" WHERE "character"='dr trevor stewart';
2-143678-3
Which Series has an Actor of tom ward?
CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real );
SELECT "series" FROM "overview_of_main_characters" WHERE "actor"='tom ward';
2-143678-3
How many picks involved the player Joe Germanese?
CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );
SELECT SUM("pick_num") FROM "round_two" WHERE "player"='joe germanese';
2-15214004-2
Which player's pick number was 25?
CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );
SELECT "player" FROM "round_two" WHERE "pick_num"=25;
2-15214004-2
What team did the Montreal Canadiens visit when the record was 0-3?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "visitor"='montreal canadiens' AND "record"='0-3';
2-14055411-4
What was the score on April 23?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='april 23';
2-14055411-4
What team did the Chicago Black Hawks visit on April 20?
CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "visitor"='chicago black hawks' AND "date"='april 20';
2-14055411-4