question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Name the home for 16 april 2008
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "home" FROM "april" WHERE "date"='16 april 2008';
2-11961176-9
Name the score for bucks with timberwolves
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "score" FROM "april" WHERE "visitor"='bucks' AND "home"='timberwolves';
2-11961176-9
Which sail is in the America 3 Foundation syndicate on the America 3 yacht?
CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text );
SELECT "sail" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='america 3';
2-11002159-1
Which syndicate is associated with the stars & stripes yacht?
CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text );
SELECT "syndicate" FROM "competing_yachts" WHERE "yacht"='stars & stripes';
2-11002159-1
Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?
CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text );
SELECT "yacht_club" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='america 3';
2-11002159-1
Which nation has the America 3 Foundation syndicate and the jayhawk yacht?
CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text );
SELECT "nation" FROM "competing_yachts" WHERE "syndicate"='america 3 foundation' AND "yacht"='jayhawk';
2-11002159-1
Which Nation has the USA-18 sail?
CREATE TABLE "competing_yachts" ( "sail" text, "yacht" text, "syndicate" text, "yacht_club" text, "nation" text );
SELECT "nation" FROM "competing_yachts" WHERE "sail"='usa-18';
2-11002159-1
When did a home team score 4.12 (36)?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_1" WHERE "home_team_score"='4.12 (36)';
2-10788451-1
How big was the crowd when collingwood visited?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_1" WHERE "away_team"='collingwood';
2-10788451-1
What away team is based in moorabbin oval?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_1" WHERE "venue"='moorabbin oval';
2-10788451-1
What date did af giles play?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "date" FROM "most_catches_in_a_match" WHERE "player"='af giles';
2-11611293-10
How many catches does hh dippenaar have?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "catches" FROM "most_catches_in_a_match" WHERE "player"='hh dippenaar';
2-11611293-10
What player has a date of 12-02-2003?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "player" FROM "most_catches_in_a_match" WHERE "date"='12-02-2003';
2-11611293-10
Who had a versus of sri lanka?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "player" FROM "most_catches_in_a_match" WHERE "versus"='sri lanka';
2-11611293-10
Who had a date of 19-02-2003?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "player" FROM "most_catches_in_a_match" WHERE "date"='19-02-2003';
2-11611293-10
What date had a versus of source: cricinfo.com?
CREATE TABLE "most_catches_in_a_match" ( "catches" text, "player" text, "versus" text, "venue" text, "date" text );
SELECT "date" FROM "most_catches_in_a_match" WHERE "versus"='source: cricinfo.com';
2-11611293-10
When south Melbourne was the home team, what was the away team?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_5" WHERE "home_team"='south melbourne';
2-10809142-5
What was the smallest crowd size for away team st kilda?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_5" WHERE "away_team"='st kilda';
2-10809142-5
What was the score of the game against Milwaukee?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "score" FROM "march" WHERE "visitor"='milwaukee';
2-11961701-7
Was the third place winner Yannick Noah?
CREATE TABLE "2003" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "winner" FROM "2003" WHERE "third_place"='yannick noah';
2-11346282-5
What was the away team score when the home team essendon was playing?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='essendon';
2-10869537-5
The home team scored 15.15 (105) at what venue?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_5" WHERE "home_team_score"='15.15 (105)';
2-10869537-5
Which away team scored 16.12 (108)?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='16.12 (108)';
2-10869537-5
When the home team scored 16.26 (122) what was the opposing score?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_5" WHERE "home_team_score"='16.26 (122)';
2-10869537-5
Which home team scored 13.20 (98)?
CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_5" WHERE "home_team_score"='13.20 (98)';
2-10869537-5
Who set the record for youngest nominee?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text );
SELECT "record_set" FROM "list_of_superlative_academy_award_winner" WHERE "superlative"='youngest nominee';
2-10966872-5
After the year 2011, who was the youngest nominee?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text );
SELECT "record_set" FROM "list_of_superlative_academy_award_winner" WHERE "year">2011 AND "superlative"='youngest nominee';
2-10966872-5
When did Quvenzhané Wallis first win?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text );
SELECT MIN("year") FROM "list_of_superlative_academy_award_winner" WHERE "actress"='quvenzhané wallis';
2-10966872-5
When was the last year when Katharine Hepburn won?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text );
SELECT MAX("year") FROM "list_of_superlative_academy_award_winner" WHERE "actress"='katharine hepburn';
2-10966872-5
who was the winner in 2003?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text );
SELECT "winner" FROM "winners" WHERE "year"='2003';
2-11204012-1
where did marie-laure taya win?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text );
SELECT "venue" FROM "winners" WHERE "winner"='marie-laure taya';
2-11204012-1
what venue saw a score of 285?
CREATE TABLE "winners" ( "year" text, "venue" text, "winner" text, "country" text, "score" text );
SELECT "venue" FROM "winners" WHERE "score"='285';
2-11204012-1
What is the largest laps for Time/Retired of + 2 laps, and a Grid of 13?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "race" WHERE "time_retired"='+ 2 laps' AND "grid"=13;
2-1122986-2
What company constructed the car with more than 0 laps and shows 5 for grid?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "laps">0 AND "grid"=5;
2-1122986-2
What is the sum of laps for Derek Warwick?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("laps") FROM "race" WHERE "driver"='derek warwick';
2-1122986-2
What years runner-up is Birmingham city, with over 1 runners-up?
CREATE TABLE "results_by_club" ( "club" text, "wins" real, "runners_up" real, "years_won" text, "years_runner_up" text );
SELECT "years_runner_up" FROM "results_by_club" WHERE "runners_up">1 AND "club"='birmingham city';
2-1114528-2
Which Home team score has an Away team of st kilda?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_8" WHERE "away_team"='st kilda';
2-10788451-8
Which Home team has a Venue of victoria park?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_8" WHERE "venue"='victoria park';
2-10788451-8
Which Away team has an Away team score of 12.19 (91)?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_8" WHERE "away_team_score"='12.19 (91)';
2-10788451-8
Which Home team has an Away team score of 12.19 (91)?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_8" WHERE "away_team_score"='12.19 (91)';
2-10788451-8
Who was the center from Washington State?
CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "player" FROM "d" WHERE "position"='center' AND "school_club_team"='washington state';
2-11545282-4
What school did Paul Dawkins play for?
CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "school_club_team" FROM "d" WHERE "player"='paul dawkins';
2-11545282-4
Name the place with building of victoria hall
CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text );
SELECT "place" FROM "notable_organs" WHERE "building"='victoria hall';
2-11898040-1
Name the least date for the place which has a building of victoria hall
CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text );
SELECT MIN("date") FROM "notable_organs" WHERE "building"='victoria hall';
2-11898040-1
Name the size which is past 2000
CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text );
SELECT "size" FROM "notable_organs" WHERE "date">2000;
2-11898040-1
Name the country that has mänttä
CREATE TABLE "notable_organs" ( "date" real, "country" text, "place" text, "building" text, "size" text );
SELECT "country" FROM "notable_organs" WHERE "place"='mänttä';
2-11898040-1
What round was Nick Gillis?
CREATE TABLE "1997_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text );
SELECT "round" FROM "1997_draft_picks" WHERE "player"='nick gillis';
2-11803648-6
What is the distance to funao?
CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text );
SELECT "distance_km" FROM "station_list" WHERE "station"='funao';
2-11482596-1
What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of 下鴨生?
CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text );
SELECT "station" FROM "station_list" WHERE "rapid"='↑' AND "distance_km">3.4 AND "japanese"='下鴨生';
2-11482596-1
What location is less than 7.1 km away, and has a Rapid of ●?
CREATE TABLE "station_list" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text );
SELECT "location" FROM "station_list" WHERE "distance_km"<7.1 AND "rapid"='●';
2-11482596-1
What is the name of the father who was born in 1204 and married ottokar ii?
CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text );
SELECT "father" FROM "queens_of_bohemia" WHERE "spouse"='ottokar ii' AND "birth"='1204';
2-10870631-3
What is the birth date of the woman who ceased to be Queen on 18 Jun 1297?
CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text );
SELECT "birth" FROM "queens_of_bohemia" WHERE "ceased_to_be_queen"='18 jun 1297';
2-10870631-3
Leopold VI, Duke of Austria is the father-in-law of which person?
CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text );
SELECT "spouse" FROM "queens_of_bohemia" WHERE "father"='leopold vi, duke of austria';
2-10870631-3
What is the birth date of the person who died on 18 October 1335?
CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text );
SELECT "birth" FROM "queens_of_bohemia" WHERE "death"='18 october 1335';
2-10870631-3
When did the person who died on 6 Dec 1240 get married?
CREATE TABLE "queens_of_bohemia" ( "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text );
SELECT "marriage" FROM "queens_of_bohemia" WHERE "death"='6 dec 1240';
2-10870631-3
What time/retired for a grid less than 19, under 21 laps, and made by aprilia?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "250cc_classification" WHERE "grid"<19 AND "manufacturer"='aprilia' AND "laps"<21;
2-11683537-2
What is the grid for dirk heidolf?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("grid") FROM "250cc_classification" WHERE "rider"='dirk heidolf';
2-11683537-2
What away team plays at Victoria Park?
CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_11" WHERE "venue"='victoria park';
2-10784349-11
How many caps does stephen hoiles have?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT SUM("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='stephen hoiles';
2-11783766-7
Which Date has a Home team of st kilda?
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_20" WHERE "home_team"='st kilda';
2-10826385-20
Which Away team has an Away team score of 13.22 (100)?
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_20" WHERE "away_team_score"='13.22 (100)';
2-10826385-20
Which Venue has an Away team of footscray?
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_20" WHERE "away_team"='footscray';
2-10826385-20
Which Crowd has a Home team of geelong?
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_20" WHERE "home_team"='geelong';
2-10826385-20
What is the most silver medals a team with 3 total medals and less than 1 bronze has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("silver") FROM "medal_table" WHERE "total"=3 AND "bronze"<1;
2-11755180-3
What is the least amount of silver medals a team with less than 0 gold medals has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;
2-11755180-3
What is the most bronze a team with more than 2 silvers has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("bronze") FROM "medal_table" WHERE "silver">2;
2-11755180-3
What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medal_table" WHERE "gold"=1 AND "silver">3;
2-11755180-3
What is the draw number that has 59 points?
CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );
SELECT AVG("draw") FROM "melodifestivalen_1999" WHERE "points"=59;
2-11522869-1
What place for roger pontare?
CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );
SELECT "place" FROM "melodifestivalen_1999" WHERE "artist"='roger pontare';
2-11522869-1
What song has draw number less than 2?
CREATE TABLE "melodifestivalen_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );
SELECT "song" FROM "melodifestivalen_1999" WHERE "draw"<2;
2-11522869-1
What was the attendance when Essendon played as the home team?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_14" WHERE "home_team"='essendon';
2-10869646-14
Who played the home team at Windy Hill?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_14" WHERE "venue"='windy hill';
2-10869646-14
What was the date of the game that had a decision of wall?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "date" FROM "game_log" WHERE "decision"='wall';
2-11786147-3
What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "pole_position"='jack brabham' AND "fastest_lap"='graham hill';
2-1140106-1
What race contains the Monaco circuit?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "race" FROM "season_review" WHERE "circuit"='monaco';
2-1140106-1
What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "date" FROM "season_review" WHERE "pole_position"='jack brabham' AND "circuit"='spa-francorchamps';
2-1140106-1
What is the name of the circuit when Phil Hill has the fastest lap?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='phil hill';
2-1140106-1
What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='peter andersson' AND "pick_num"<143;
2-11636955-41
What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp"<0;
2-11636955-41
What is the total pick# played by Anton Rodin with a Reg GP over 0?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT COUNT("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='anton rodin' AND "reg_gp">0;
2-11636955-41
What is the lowest grid that has over 67 laps with stefan bellof driving?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("grid") FROM "classification" WHERE "laps">67 AND "driver"='stefan bellof';
2-1122899-1
How many laps have a grid under 14 and a time/retired of out of fuel?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("laps") FROM "classification" WHERE "grid"<14 AND "time_retired"='out of fuel';
2-1122899-1
Who drove the renault that went over 23 laps and had a grid under 11?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "classification" WHERE "grid"<11 AND "constructor"='renault' AND "laps">23;
2-1122899-1
What is the average NGC number that has a Apparent magnitude greater than 14.2?
CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT AVG("ngc_number") FROM "5901_6000" WHERE "apparent_magnitude">14.2;
2-11051845-10
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT MAX("ngc_number") FROM "5901_6000" WHERE "declination_j2000"='°04′58″' AND "apparent_magnitude">7.3;
2-11051845-10
What Constellation has a Object type of globular cluster and a NGC number of 5986?
CREATE TABLE "5901_6000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "constellation" FROM "5901_6000" WHERE "object_type"='globular cluster' AND "ngc_number"=5986;
2-11051845-10
For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?
CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "points"<5 AND "gold"<0;
2-1096793-7
Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?
CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real );
SELECT AVG("points") FROM "medal_table" WHERE "small_silver">9 AND "club"='aik' AND "bronze">8;
2-1096793-7
How many points did landskrona bois get when they were ranked below 18?
CREATE TABLE "medal_table" ( "rank" real, "club" text, "gold" real, "big_silver" real, "small_silver" real, "bronze" real, "points" real );
SELECT COUNT("points") FROM "medal_table" WHERE "club"='landskrona bois' AND "rank"<18;
2-1096793-7
Who was the opponent for game 5?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "game"=5;
2-11902176-3
Name the team for pick more than 30 and position of c with round more than 4
CREATE TABLE "other_picks" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text, "college" text );
SELECT "team" FROM "other_picks" WHERE "pick">30 AND "position"='c' AND "round">4;
2-12085872-4
What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT "number_of_decimal_digits" FROM "internal_representation" WHERE "total_bits">32 AND "exponent"<15;
2-11376-1
What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT COUNT("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "total_bits">128;
2-11376-1
What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT SUM("significand") FROM "internal_representation" WHERE "number_of_decimal_digits"='~34.0' AND "exponent_bias">16383;
2-11376-1
What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT SUM("sign") FROM "internal_representation" WHERE "exponent_bias"<1023 AND "number_of_decimal_digits"='~3.3' AND "bits_precision"<11;
2-11376-1
What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT SUM("sign") FROM "internal_representation" WHERE "bits_precision">53 AND "type"='double extended (80-bit)' AND "total_bits">80;
2-11376-1
What's the lowest bits precision when the total bits are less than 16?
CREATE TABLE "internal_representation" ( "type" text, "sign" real, "exponent" real, "significand" real, "total_bits" real, "exponent_bias" real, "bits_precision" real, "number_of_decimal_digits" text );
SELECT MIN("bits_precision") FROM "internal_representation" WHERE "total_bits"<16;
2-11376-1
How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?
CREATE TABLE "player_win_loss_record" ( "player" text, "total_win_loss" text, "singles_win_loss" text, "doubles_win_loss" text, "no_of_ties" real, "first_year_played" real, "years_played" real );
SELECT SUM("years_played") FROM "player_win_loss_record" WHERE "singles_win_loss"='4-9' AND "first_year_played"<1999;
2-11233539-2
What is the highest game number with a record of 12-8-1?
CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "decision" text, "record" text );
SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='12-8-1';
2-11902503-4
What is the record when the decision was valiquette on November 23?
CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "decision" text, "record" text );
SELECT "record" FROM "schedule_and_results" WHERE "decision"='valiquette' AND "november"=23;
2-11902503-4