question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the Score in Tie 2?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "second_round_proper" WHERE "tie_no"='2';
2-17751811-2
What is the Tie no when Scarborough is the Home team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "second_round_proper" WHERE "home_team"='scarborough';
2-17751811-2
What is the Tie no when Swansea City is the Away team with a Score of 2–2?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "second_round_proper" WHERE "score"='2–2' AND "away_team"='swansea city';
2-17751811-2
What is the name of constituency 5?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='5';
2-17922000-1
What label is released on September 20, 2005?
CREATE TABLE "studio_albums" ( "date_of_release" text, "title" text, "billboard_peak" real, "riaa_cert" text, "label" text );
SELECT "label" FROM "studio_albums" WHERE "date_of_release"='september 20, 2005';
2-177383-1
What is the lowest total with an all around of 10 and a rope higher than 10?
CREATE TABLE "individual_rope" ( "place" real, "name" text, "all_around" real, "rope" real, "total" real );
SELECT MIN("total") FROM "individual_rope" WHERE "all_around"=10 AND "rope">10;
2-18170681-5
What is Bianka Panova's highest total with lower than place 1?
CREATE TABLE "individual_rope" ( "place" real, "name" text, "all_around" real, "rope" real, "total" real );
SELECT MAX("total") FROM "individual_rope" WHERE "name"='bianka panova' AND "place"<1;
2-18170681-5
What is Milena Reljin's place with a smaller than 9.8 rope?
CREATE TABLE "individual_rope" ( "place" real, "name" text, "all_around" real, "rope" real, "total" real );
SELECT "place" FROM "individual_rope" WHERE "rope"<9.8 AND "name"='milena reljin';
2-18170681-5
What is the highest game with a 24-23 record?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "hornets_score" real, "opponent_score" real, "record" text );
SELECT MAX("game") FROM "game_log" WHERE "record"='24-23';
2-18290611-2
What is the highest game with a 1-0 record, and the Hornets scored more than 100?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "hornets_score" real, "opponent_score" real, "record" text );
SELECT MAX("game") FROM "game_log" WHERE "record"='1-0' AND "hornets_score">100;
2-18290611-2
When was Daniel Moro born?
CREATE TABLE "spain" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "date_of_birth" FROM "spain" WHERE "name"='daniel moro';
2-17759945-12
What was the score for the player than won $450?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "money"=450;
2-18007119-1
What is the score of the player that had a to par score of +9 and took home less than $1,000?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "money"<'1,000' AND "to_par"='+9';
2-18007119-1
What place did the player that took won $350 finish in?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "place" FROM "final_leaderboard" WHERE "money"=350;
2-18007119-1
Which player had a score of 71-73-68-75=287?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_leaderboard" WHERE "score"='71-73-68-75=287';
2-18007119-1
What is Year, when Name is "Dong Shihou, 29 (董世侯)"?
CREATE TABLE "other_incidents" ( "name" text, "date" text, "year" real, "location" text, "killed" text, "injured" text );
SELECT "year" FROM "other_incidents" WHERE "name"='dong shihou, 29 (董世侯)';
2-17794738-13
What is Name, when Location is "DZ"?
CREATE TABLE "other_incidents" ( "name" text, "date" text, "year" real, "location" text, "killed" text, "injured" text );
SELECT "name" FROM "other_incidents" WHERE "location"='dz';
2-17794738-13
What is Injured, when Date is "09.15 Sep. 15"?
CREATE TABLE "other_incidents" ( "name" text, "date" text, "year" real, "location" text, "killed" text, "injured" text );
SELECT "injured" FROM "other_incidents" WHERE "date"='09.15 sep. 15';
2-17794738-13
What is Date, when Name is "Guay, Albert , 32"?
CREATE TABLE "other_incidents" ( "name" text, "date" text, "year" real, "location" text, "killed" text, "injured" text );
SELECT "date" FROM "other_incidents" WHERE "name"='guay, albert , 32';
2-17794738-13
What is the highest grid for rider Fonsi Nieto?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT MAX("grid") FROM "superbike_race_2_classification" WHERE "rider"='fonsi nieto';
2-17840109-2
What was the total number of Laps for the rider whose time was +7.951?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT COUNT("laps") FROM "superbike_race_2_classification" WHERE "time"='+7.951';
2-17840109-2
What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT MAX("laps") FROM "superbike_race_2_classification" WHERE "rider"='shuhei aoyama' AND "grid">24;
2-17840109-2
What was the grid for rider Russell Holland, riding a Honda CBR1000rr?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "grid" FROM "superbike_race_2_classification" WHERE "bike"='honda cbr1000rr' AND "rider"='russell holland';
2-17840109-2
Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"=14 AND "grid">23 AND "bike"='honda cbr1000rr' AND "time"='+1''04.877';
2-17840109-2
What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT MIN("year") FROM "awards_and_nominations" WHERE "award"='drama desk award' AND "nominated_work"='the mineola twins';
2-1762667-3
Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "category"='best performance by a leading actress in a play' AND "year"<2007;
2-1762667-3
What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT MAX("year") FROM "awards_and_nominations" WHERE "nominated_work"='the mineola twins' AND "category"='outstanding actress in a play' AND "award"='drama desk award';
2-1762667-3
What is the result for the Outer Critics Circle award earlier than 2004?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "award"='outer critics circle award' AND "year"<2004;
2-1762667-3
In what year was The House of Blue Leaves nominated for outstanding actress in a play?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT SUM("year") FROM "awards_and_nominations" WHERE "nominated_work"='the house of blue leaves' AND "category"='outstanding actress in a play';
2-1762667-3
Which Country has a Total smaller than 284?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "country" FROM "made_the_cut" WHERE "total"<284;
2-18150398-2
Which To par has a Year(s) won of 1983?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won"='1983';
2-18150398-2
How many Total has a Player of dave stockton?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT COUNT("total") FROM "made_the_cut" WHERE "player"='dave stockton';
2-18150398-2
What was the result in 1973 when the surface was clay?
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "women_s_doubles_10_4_titles_6_runner_ups" WHERE "year"=1973 AND "surface"='clay';
2-177273-2
What was the outcome in 1975?
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "women_s_doubles_10_4_titles_6_runner_ups" WHERE "year"=1975;
2-177273-2
Who was Margaret Court's opponent on clay in 1975?
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "women_s_doubles_10_4_titles_6_runner_ups" WHERE "surface"='clay' AND "partner"='margaret court' AND "year"=1975;
2-177273-2
What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins?
CREATE TABLE "2011_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MAX("against") FROM "2011_ladder" WHERE "central_murray"='tooleybuc manangatang' AND "wins"<13;
2-17982176-6
How many byes when the draws are fewer than 0?
CREATE TABLE "2011_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("byes") FROM "2011_ladder" WHERE "draws"<0;
2-17982176-6
What is the byes for Woorineen when losses are more than 13?
CREATE TABLE "2011_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("byes") FROM "2011_ladder" WHERE "central_murray"='woorineen' AND "losses">13;
2-17982176-6
How many wins when there are 4 losses and against are fewer than 1281?
CREATE TABLE "2011_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("wins") FROM "2011_ladder" WHERE "losses"=4 AND "against"<1281;
2-17982176-6
How many against when losses are 11 and wins are fewer than 5?
CREATE TABLE "2011_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("against") FROM "2011_ladder" WHERE "losses"=11 AND "wins"<5;
2-17982176-6
which Player has a To par of –7, and a Country of spain?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='–7' AND "country"='spain';
2-18122130-6
What doctor published on June 2003?
CREATE TABLE "external_links" ( "title" text, "author" text, "doctor" text, "companion_s" text, "published" text );
SELECT "doctor" FROM "external_links" WHERE "published"='june 2003';
2-1810966-1
What title was published on November 2001 and has a 1st Doctor?
CREATE TABLE "external_links" ( "title" text, "author" text, "doctor" text, "companion_s" text, "published" text );
SELECT "title" FROM "external_links" WHERE "doctor"='1st' AND "published"='november 2001';
2-1810966-1
What is the title of the 8th doctor published in January 2003?
CREATE TABLE "external_links" ( "title" text, "author" text, "doctor" text, "companion_s" text, "published" text );
SELECT "title" FROM "external_links" WHERE "doctor"='8th' AND "published"='january 2003';
2-1810966-1
What is the companion for the author Dave Stone?
CREATE TABLE "external_links" ( "title" text, "author" text, "doctor" text, "companion_s" text, "published" text );
SELECT "companion_s" FROM "external_links" WHERE "author"='dave stone';
2-1810966-1
What Player won the PGA in 1989?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1989';
2-18059698-2
Which player is from Northern Ireland?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "country"='northern ireland';
2-18135501-5
What player has a score of 69-68-68=205?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "score"='69-68-68=205';
2-18135501-5
Which Week has an Attendance larger than 63,369?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "attendance">'63,369';
2-17927935-1
What was the result on september 26?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "date"='september 26';
2-17927935-1
Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "game_site"='oakland-alameda county coliseum' AND "attendance">'52,169';
2-17927935-1
What is Player, when Score is "68-71=139"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "score"='68-71=139';
2-18135501-4
What is Country, when Player is "Tom Watson"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='tom watson';
2-18135501-4
What is Place, when Player is "Steve Pate"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "player"='steve pate';
2-18135501-4
How many against on the date of 08/06/1985?
CREATE TABLE "1985" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT SUM("against") FROM "1985" WHERE "date"='08/06/1985';
2-18178608-6
What is the venue for the match on 30/03/1985?
CREATE TABLE "1985" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "1985" WHERE "date"='30/03/1985';
2-18178608-6
What is the status of the match with 24 against?
CREATE TABLE "1985" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "1985" WHERE "against"=24;
2-18178608-6
Who was the opposing team when the status is second test?
CREATE TABLE "1985" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "opposing_teams" FROM "1985" WHERE "status"='second test';
2-18178608-6
What is the status when Wales is the opposing team and there are more than 13 against?
CREATE TABLE "1985" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "1985" WHERE "against">13 AND "opposing_teams"='wales';
2-18178608-6
What is the lowest number of households for the entry with a median income of $41,778 and a population greater than 38,319?
CREATE TABLE "alabama_counties_ranked_by_per_capita_in" ( "county" text, "per_capita_income" text, "median_household_income_1_000_000" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT MIN("number_of_households") FROM "alabama_counties_ranked_by_per_capita_in" WHERE "median_family_income"='$41,778' AND "population">'38,319';
2-1772020-1
Which Church has 27 stops?
CREATE TABLE "ahrend_brunzema_1954_1971" ( "year" text, "opus" real, "town" text, "church" text, "kind" text, "manuals" text, "stops" text );
SELECT "church" FROM "ahrend_brunzema_1954_1971" WHERE "stops"='27';
2-18361034-1
Who is the opponent(s) in round 6?
CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT "opponents" FROM "fa_cup" WHERE "round"='round 6';
2-18258697-5
In what year was the winner a soccer player from Virginia?
CREATE TABLE "female_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );
SELECT SUM("year") FROM "female_athlete_of_the_year" WHERE "sport"='soccer' AND "college"='virginia';
2-18120476-2
In what year did Morgan Brian win?
CREATE TABLE "female_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );
SELECT AVG("year") FROM "female_athlete_of_the_year" WHERE "winner"='morgan brian';
2-18120476-2
Who is the winner who attended college at Connecticut and is from North Syracuse, NY?
CREATE TABLE "female_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );
SELECT "winner" FROM "female_athlete_of_the_year" WHERE "college"='connecticut' AND "hometown"='north syracuse, ny';
2-18120476-2
What is the hometown of the player who went to college at USC?
CREATE TABLE "female_athlete_of_the_year" ( "year" real, "winner" text, "sport" text, "hometown" text, "college" text );
SELECT "hometown" FROM "female_athlete_of_the_year" WHERE "college"='usc';
2-18120476-2
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?
CREATE TABLE "2010_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("draws") FROM "2010_ladder" WHERE "against"=1547 AND "wins">3;
2-18036506-15
What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?
CREATE TABLE "2010_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("wins") FROM "2010_ladder" WHERE "losses"=6 AND "draws">0;
2-18036506-15
What is the lowest Draws, when Byes is less than 2?
CREATE TABLE "2010_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("draws") FROM "2010_ladder" WHERE "byes"<2;
2-18036506-15
What is the total number of Draws, when Against is "1134", and when Byes is less than 2?
CREATE TABLE "2010_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("draws") FROM "2010_ladder" WHERE "against"=1134 AND "byes"<2;
2-18036506-15
What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2?
CREATE TABLE "2010_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("wins") FROM "2010_ladder" WHERE "against"<1033 AND "golden_rivers"='nullawil' AND "byes"<2;
2-18036506-15
What is 7:00 am, when 7:30 am is "Good Morning America"?
CREATE TABLE "spring_1999" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "7_00_am" FROM "spring_1999" WHERE "7_30_am"='good morning america';
2-17871255-3
What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?
CREATE TABLE "spring_1999" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_30_pm" FROM "spring_1999" WHERE "7_00_am"='tiny toon adventures';
2-17871255-3
What is 8:00 am, when 11:00 am is "Local Programs"?
CREATE TABLE "spring_1999" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "8_00_am" FROM "spring_1999" WHERE "11_00_am"='local programs';
2-17871255-3
What is 1:30 pm, when 3:30 pm is "Young Hercules"?
CREATE TABLE "spring_1999" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "1_30_pm" FROM "spring_1999" WHERE "3_30_pm"='young hercules';
2-17871255-3
What is 4:30 pm, when Noon is "Local Programs", and when 11:00 am is "Local Programs"?
CREATE TABLE "spring_1999" ( "7_00_am" text, "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "4_30_pm" FROM "spring_1999" WHERE "noon"='local programs' AND "11_00_am"='local programs';
2-17871255-3
Which Year has a Competition of european championships, and Notes of 66.81 m?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT SUM("year") FROM "achievements" WHERE "competition"='european championships' AND "notes"='66.81 m';
2-17849260-1
Which Position has a Venue of berlin, germany?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "position" FROM "achievements" WHERE "venue"='berlin, germany';
2-17849260-1
Which competition was held in Arles, France?
CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "competition" FROM "achievements" WHERE "venue"='arles, france';
2-17849260-1
What is the M1A1 when the M60A3 was T (Short Tons)?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "m1_a1_abrams" FROM "comparison_to_the_alternatives" WHERE "m60_a3_patton"='t (short tons)';
2-17733227-1
What is the M60A3 when the M1A1 is T (Short Tons)?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "m1_a1_abrams"='t (short tons)';
2-17733227-1
What is the M60A3 that has an M1A1 of Km (mi)?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "m1_a1_abrams"='km (mi)';
2-17733227-1
What is the M60A3 that has 40 rounds as Leclerc?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "leclerc"='40 rounds';
2-17733227-1
What's the lince when Leclerc was Hp (kw)?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "lince" FROM "comparison_to_the_alternatives" WHERE "leclerc"='hp (kw)';
2-17733227-1
What is the M1A1 when the Lince was T (Short Tons)?
CREATE TABLE "comparison_to_the_alternatives" ( "lince" text, "leopard_2_a4" text, "leclerc" text, "m1_a1_abrams" text, "m60_a3_patton" text );
SELECT "m1_a1_abrams" FROM "comparison_to_the_alternatives" WHERE "lince"='t (short tons)';
2-17733227-1
Which Distance has a Time of 2:20.00?
CREATE TABLE "world_records" ( "distance" text, "event" text, "time" text, "meet" text, "location" text );
SELECT "distance" FROM "world_records" WHERE "time"='2:20.00';
2-18301533-3
Which Distance has an Event of breaststroke, and a Location of beijing, chn?
CREATE TABLE "world_records" ( "distance" text, "event" text, "time" text, "meet" text, "location" text );
SELECT "distance" FROM "world_records" WHERE "event"='breaststroke' AND "location"='beijing, chn';
2-18301533-3
What Meet has a Time of 1:04.84?
CREATE TABLE "world_records" ( "distance" text, "event" text, "time" text, "meet" text, "location" text );
SELECT "meet" FROM "world_records" WHERE "time"='1:04.84';
2-18301533-3
What season had a viewer rank of #4?
CREATE TABLE "ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "viewer_rank_num" text, "households_viewers_in_millions" real );
SELECT COUNT("season") FROM "ratings" WHERE "viewer_rank_num"='#4';
2-177153-1
Which season had less than 25.4 viewers and had a viewer rank of #6?
CREATE TABLE "ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "viewer_rank_num" text, "households_viewers_in_millions" real );
SELECT MIN("season") FROM "ratings" WHERE "households_viewers_in_millions"<25.4 AND "viewer_rank_num"='#6';
2-177153-1
When did the season premiere that had a viewer rank of #6?
CREATE TABLE "ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "viewer_rank_num" text, "households_viewers_in_millions" real );
SELECT "season_premiere" FROM "ratings" WHERE "viewer_rank_num"='#6';
2-177153-1
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='2' AND "silver"<2;
2-17673577-2
What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=0 AND "bronze">1;
2-17673577-2
What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?
CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "total">13 AND "gold">10 AND "silver"<22;
2-17673577-2
What was the main date of the round with 20 fixtures?
CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );
SELECT "main_date" FROM "calendar" WHERE "number_of_fixtures"=20;
2-17814838-1
What were the new entries for the Semi-Finals round with fewer than 8 fixtures?
CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text );
SELECT "new_entries_this_round" FROM "calendar" WHERE "number_of_fixtures"<8 AND "round"='semi-finals';
2-17814838-1
What was the club when home ground was Central Reserve?
CREATE TABLE "current" ( "club" text, "nickname" text, "location" text, "home_ground" text, "gfl_premierships" text, "years_in_gfl" text );
SELECT "club" FROM "current" WHERE "home_ground"='central reserve';
2-17982112-1
What's the GFL Premiership when the home ground was Leopold Memorial Park?
CREATE TABLE "current" ( "club" text, "nickname" text, "location" text, "home_ground" text, "gfl_premierships" text, "years_in_gfl" text );
SELECT "gfl_premierships" FROM "current" WHERE "home_ground"='leopold memorial park';
2-17982112-1
What's the location where the Years in GFL was 1988-?
CREATE TABLE "current" ( "club" text, "nickname" text, "location" text, "home_ground" text, "gfl_premierships" text, "years_in_gfl" text );
SELECT "location" FROM "current" WHERE "years_in_gfl"='1988-';
2-17982112-1
What's the home ground of the Lions?
CREATE TABLE "current" ( "club" text, "nickname" text, "location" text, "home_ground" text, "gfl_premierships" text, "years_in_gfl" text );
SELECT "home_ground" FROM "current" WHERE "nickname"='lions';
2-17982112-1