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 weight for the player in Zhejiang in 2008?
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );
SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='zhejiang';
2-18499677-2
What's the count for obese children and adolescents ranked 48?
CREATE TABLE "prevalence_by_state" ( "state_and_district_of_columbia" text, "obese_adults" text, "overweight_incl_obese_adults" text, "obese_children_and_adolescents" text, "obesity_rank" real );
SELECT "obese_children_and_adolescents" FROM "prevalence_by_state" WHERE "obesity_rank"=48;
2-18958648-1
What's the rank when the obese children and adolescent count is 14.2%?
CREATE TABLE "prevalence_by_state" ( "state_and_district_of_columbia" text, "obese_adults" text, "overweight_incl_obese_adults" text, "obese_children_and_adolescents" text, "obesity_rank" real );
SELECT SUM("obesity_rank") FROM "prevalence_by_state" WHERE "obese_children_and_adolescents"='14.2%';
2-18958648-1
What's the rank in West Virginia when the overweight adult was 66.8%?
CREATE TABLE "prevalence_by_state" ( "state_and_district_of_columbia" text, "obese_adults" text, "overweight_incl_obese_adults" text, "obese_children_and_adolescents" text, "obesity_rank" real );
SELECT "obesity_rank" FROM "prevalence_by_state" WHERE "overweight_incl_obese_adults"='66.8%' AND "state_and_district_of_columbia"='west virginia';
2-18958648-1
What is reserved for Jawad?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "name"='jawad';
2-18518150-1
What is reserved for the constituency of 228?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real );
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='228';
2-18518150-1
Which Mascot has a Location of evansville, and an Enrollment larger than 1,392, and a School of evansville harrison?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "location"='evansville' AND "enrollment">'1,392' AND "school"='evansville harrison';
2-18974097-8
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "enrollment"<799;
2-18974097-8
Which Location has a Mascot of tigers?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text );
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='tigers';
2-18974097-8
What's the least Expert's View when willing to take risks is more than 27, communication ability is 30, ability to compromise is less than 26, and imagination is more than 14?
CREATE TABLE "siena_college_research_institute_survey" ( "seq" text, "name" text, "background" real, "party_leadership" real, "communication_ability" real, "relations_with_congress" real, "court_appointments" real, "handling_of_economy" real, "luck" real, "ability_to_compromise" real, "willing_to_take_risks" real, "executive_appointments" real, "overall_ability" real, "imagination" real, "domestic_accomplishments" real, "integrity" real, "executive_ability" real, "foreign_policy_accomplishments" real, "leadership_ability" real, "intelligence" real, "avoid_crucial_mistakes" real, "expert_s_view" real, "overall" real );
SELECT MIN("expert_s_view") FROM "siena_college_research_institute_survey" WHERE "ability_to_compromise"<26 AND "imagination">14 AND "willing_to_take_risks">27 AND "communication_ability"<30;
2-1855342-5
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
CREATE TABLE "siena_college_research_institute_survey" ( "seq" text, "name" text, "background" real, "party_leadership" real, "communication_ability" real, "relations_with_congress" real, "court_appointments" real, "handling_of_economy" real, "luck" real, "ability_to_compromise" real, "willing_to_take_risks" real, "executive_appointments" real, "overall_ability" real, "imagination" real, "domestic_accomplishments" real, "integrity" real, "executive_ability" real, "foreign_policy_accomplishments" real, "leadership_ability" real, "intelligence" real, "avoid_crucial_mistakes" real, "expert_s_view" real, "overall" real );
SELECT MAX("overall") FROM "siena_college_research_institute_survey" WHERE "executive_appointments"=28 AND "background"<37;
2-1855342-5
What was the record at the game with a score of 21-16?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );
SELECT "record" FROM "schedule" WHERE "score"='21-16';
2-18546846-1
Who was the opponent at the game with a score of 42-28 after week 4?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "score" text, "record" text );
SELECT "opponent" FROM "schedule" WHERE "week">4 AND "score"='42-28';
2-18546846-1
Which Runs on POSIX style systems has a Developer of andéor?
CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" ( "latest_stable_release" text, "developer" text, "3_d_support" text, "runs_on_posix_style_systems" text, "runs_on_windows" text, "user_interface_language_s" text );
SELECT "runs_on_posix_style_systems" FROM "comparison_of_cad_cam_cae_file_viewers" WHERE "developer"='andéor';
2-18913138-1
Which User Interface Language(s) has Runs on POSIX style systems of no and sescoi?
CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" ( "latest_stable_release" text, "developer" text, "3_d_support" text, "runs_on_posix_style_systems" text, "runs_on_windows" text, "user_interface_language_s" text );
SELECT "user_interface_language_s" FROM "comparison_of_cad_cam_cae_file_viewers" WHERE "runs_on_posix_style_systems"='no' AND "developer"='sescoi';
2-18913138-1
what is the result when the opponent is at dallas cowboys?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "opponent"='at dallas cowboys';
2-18842944-2
what is the enrollement for the year joined 1958 in clarksville?
CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text, "year_joined" real );
SELECT SUM("enrollment") FROM "membership" WHERE "year_joined"=1958 AND "location"='clarksville';
2-18833029-1
what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?
CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "num_county" text, "year_joined" real );
SELECT "num_county" FROM "membership" WHERE "ihsaa_class"='aaa' AND "enrollment">611 AND "mascot"='dragons';
2-18833029-1
What's the Peaches: that was released in USA with 2 hot as a Title?
CREATE TABLE "l_ps_c_ds" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text );
SELECT "peaches" FROM "l_ps_c_ds" WHERE "country_of_release"='usa' AND "title"='2 hot';
2-1862179-1
What's the Peaches: for Sayin' Something?
CREATE TABLE "l_ps_c_ds" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text );
SELECT "peaches" FROM "l_ps_c_ds" WHERE "title"='sayin'' something';
2-1862179-1
Where was the title released in 1977?
CREATE TABLE "l_ps_c_ds" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text );
SELECT "country_of_release" FROM "l_ps_c_ds" WHERE "year_of_release"=1977;
2-1862179-1
What was the last year MCA had a Release?
CREATE TABLE "l_ps_c_ds" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text );
SELECT MAX("year_of_release") FROM "l_ps_c_ds" WHERE "label"='mca';
2-1862179-1
What is the lowest pick for the Buffalo Bills?
CREATE TABLE "nineteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT MIN("pick") FROM "nineteenth_round" WHERE "team"='buffalo bills';
2-18652198-19
Which player played for the Boston Patriots?
CREATE TABLE "nineteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT "player" FROM "nineteenth_round" WHERE "team"='boston patriots';
2-18652198-19
How much Attendance has a Result of 2–4, and a Visitor of brynäs if?
CREATE TABLE "game_log" ( "round" real, "date" text, "home" text, "result" text, "visitor" text, "venue" text, "attendance" real );
SELECT SUM("attendance") FROM "game_log" WHERE "result"='2–4' AND "visitor"='brynäs if';
2-18943645-3
Which Result has a Round larger than 17?
CREATE TABLE "game_log" ( "round" real, "date" text, "home" text, "result" text, "visitor" text, "venue" text, "attendance" real );
SELECT "result" FROM "game_log" WHERE "round">17;
2-18943645-3
What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?
CREATE TABLE "wards" ( "name" text, "labour" real, "conservative" real, "political_party" text, "electorate" real, "constituency" text );
SELECT MIN("electorate") FROM "wards" WHERE "political_party"='conservative' AND "constituency"='south west devon' AND "conservative">2 AND "name"='plymstock radford';
2-18506586-1
In what Year of Census or Estimate is the Toronto Population larger than 1,556,396?
CREATE TABLE "most_populous_cities" ( "rank" real, "city" text, "population" real, "year_of_census_or_estimate" real, "country" text );
SELECT SUM("year_of_census_or_estimate") FROM "most_populous_cities" WHERE "population">'1,556,396' AND "city"='toronto';
2-18775995-1
What event was in a year later than 2007 and in the 88th position?
CREATE TABLE "athletics" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text );
SELECT "event" FROM "athletics" WHERE "year">2007 AND "position"='88th';
2-18804681-1
What are the notes for 2005?
CREATE TABLE "athletics" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, "notes" text );
SELECT "notes" FROM "athletics" WHERE "year"=2005;
2-18804681-1
Who is the owner of CKLF-FM?
CREATE TABLE "radio_stations" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text );
SELECT "owner" FROM "radio_stations" WHERE "call_sign"='cklf-fm';
2-18410352-1
What frequency is First Nations Community?
CREATE TABLE "radio_stations" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text );
SELECT "frequency" FROM "radio_stations" WHERE "format"='first nations community';
2-18410352-1
What format is CBC Radio 2?
CREATE TABLE "radio_stations" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text );
SELECT "format" FROM "radio_stations" WHERE "branding"='cbc radio 2';
2-18410352-1
Who owns CKSB-8-FM?
CREATE TABLE "radio_stations" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text );
SELECT "owner" FROM "radio_stations" WHERE "call_sign"='cksb-8-fm';
2-18410352-1
What format is Première Chaîne?
CREATE TABLE "radio_stations" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text );
SELECT "format" FROM "radio_stations" WHERE "branding"='première chaîne';
2-18410352-1
What year was olympics, Canada and the Men's Eight Event ended with a silver medal?
CREATE TABLE "coaching_titles" ( "year" real, "championship" text, "event" text, "nation" text, "result" text );
SELECT MAX("year") FROM "coaching_titles" WHERE "championship"='olympics' AND "event"='men''s eight' AND "nation"='canada' AND "result"='silver';
2-18379159-1
What event was in 2006?
CREATE TABLE "coaching_titles" ( "year" real, "championship" text, "event" text, "nation" text, "result" text );
SELECT "event" FROM "coaching_titles" WHERE "year"=2006;
2-18379159-1
What championship was in the USA after 1994, and resulted in 5th place?
CREATE TABLE "coaching_titles" ( "year" real, "championship" text, "event" text, "nation" text, "result" text );
SELECT "championship" FROM "coaching_titles" WHERE "nation"='usa' AND "year">1994 AND "result"='5th';
2-18379159-1
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
CREATE TABLE "coaching_titles" ( "year" real, "championship" text, "event" text, "nation" text, "result" text );
SELECT MIN("year") FROM "coaching_titles" WHERE "nation"='canada' AND "result"='silver' AND "championship"='olympics' AND "event"='men''s coxless pair';
2-18379159-1
Where is the lacrosse school located?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "school"='lacrosse';
2-18974097-5
Which IHSAA Class has a Mascot of tigers?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='tigers';
2-18974097-5
Which Location has an Enrollment larger than 543?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">543;
2-18974097-5
Which County has an Enrollment of 297?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=297;
2-18974097-5
Which School has an Enrollment larger than 264, and a County of 46 la porte?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">264 AND "county"='46 la porte';
2-18974097-5
What is the number of silver medals when there are more than 1 gold, and more than 6 bronze?
CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "world_championships_total_medals" WHERE "gold">1 AND "bronze">6;
2-18656178-5
What is the total when the Yugoslavia number of silver won is more than 1?
CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "world_championships_total_medals" WHERE "silver">1 AND "nation"='yugoslavia';
2-18656178-5
What is the total attendance before week 1?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT SUM("attendance") FROM "schedule" WHERE "week"<1;
2-18648572-1
When was sniffles and the bookworm released?
CREATE TABLE "1939" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text );
SELECT "release_date" FROM "1939" WHERE "title"='sniffles and the bookworm';
2-18792938-10
When was land of the midnight fun in the mm series released?
CREATE TABLE "1939" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text );
SELECT "release_date" FROM "1939" WHERE "series"='mm' AND "title"='land of the midnight fun';
2-18792938-10
Which series had a release on 1939-07-15 with the 8863 production number?
CREATE TABLE "1939" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text );
SELECT "series" FROM "1939" WHERE "release_date"='1939-07-15' AND "production_num"='8863';
2-18792938-10
Who directed hamateur night?
CREATE TABLE "1939" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text );
SELECT "director" FROM "1939" WHERE "title"='hamateur night';
2-18792938-10
When was Production Number 9105 released?
CREATE TABLE "1939" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text );
SELECT "release_date" FROM "1939" WHERE "production_num"='9105';
2-18792938-10
What Class has a Frequency of 90.1 FM?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "frequency"='90.1 fm';
2-1873425-1
What is listed for the RECNet that also has a Frequency of 91.1 FM?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "rec_net" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "frequency"='91.1 fm';
2-1873425-1
What Class has the Identifier fo CBFX-FM-2?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-2';
2-1873425-1
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "rec_net" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "class"='b' AND "city_of_license"='rouyn-noranda';
2-1873425-1
What Class has the Identifier of CBFX-FM-6?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-6';
2-1873425-1
What Frequency has the Identifier of CBFX-FM-6?
CREATE TABLE "s_rebroadcaster_of_cbfx_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text );
SELECT "frequency" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-6';
2-1873425-1
What is the total number of gold with less than 1 silver, from Belgium?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "medals_table" WHERE "silver"<1 AND "nation"='belgium';
2-18596550-4
Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT AVG("lost") FROM "first_round" WHERE "points"<15 AND "name"='sc forst' AND "drawn"<0;
2-18771190-13
How much Position has a Lost of 8, and a Played larger than 14?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT SUM("position") FROM "first_round" WHERE "lost"=8 AND "played">14;
2-18771190-13
Which Drawn has a Lost larger than 8, and Points smaller than 7?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT SUM("drawn") FROM "first_round" WHERE "lost">8 AND "points"<7;
2-18771190-13
How much Drawn has a Name of erc lechbruck, and Points smaller than 17?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT COUNT("drawn") FROM "first_round" WHERE "name"='erc lechbruck' AND "points"<17;
2-18771190-13
What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?
CREATE TABLE "towns" ( "town" text, "population_2001" real, "population_rank" real, "county" text, "municipality" text );
SELECT "town" FROM "towns" WHERE "municipality"='molėtai district municipality' AND "population_2001"<470 AND "population_rank"=187;
2-18634165-1
What county is the town with a rank of 205 located in?
CREATE TABLE "towns" ( "town" text, "population_2001" real, "population_rank" real, "county" text, "municipality" text );
SELECT "county" FROM "towns" WHERE "population_rank"=205;
2-18634165-1
What is the fewest draws for percentages of 5.02%?
CREATE TABLE "results_of_heat_6" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real );
SELECT MIN("draw") FROM "results_of_heat_6" WHERE "percentage"='5.02%';
2-18593648-7
What is the average draws for the song "Europe is My Home!"?
CREATE TABLE "results_of_heat_6" ( "draw" real, "artist" text, "song" text, "percentage" text, "place" real );
SELECT AVG("draw") FROM "results_of_heat_6" WHERE "song"='\"europe is my home!\"';
2-18593648-7
What is the position of the player from the denver broncos?
CREATE TABLE "ninth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT "position" FROM "ninth_round" WHERE "team"='denver broncos';
2-18652198-9
What is the average pick of the kansas city chiefs?
CREATE TABLE "ninth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT AVG("pick") FROM "ninth_round" WHERE "team"='kansas city chiefs';
2-18652198-9
What is the pick of wiley college?
CREATE TABLE "ninth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT "pick" FROM "ninth_round" WHERE "college"='wiley';
2-18652198-9
What was the attendance for the game with alfreton town as the home team?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "attendance" FROM "northern_section" WHERE "home_team"='alfreton town';
2-18569929-2
What was the score of the game where stafford rangers was the away team?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "northern_section" WHERE "away_team"='stafford rangers';
2-18569929-2
Who was the home team that has a tie no of 1?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "northern_section" WHERE "tie_no"='1';
2-18569929-2
What is the tie no that has southport as the away team?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "tie_no" FROM "northern_section" WHERE "away_team"='southport';
2-18569929-2
What was the attendance for the game that had the king's lynn as the home team?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "attendance" FROM "northern_section" WHERE "home_team"='king''s lynn';
2-18569929-2
What was the score for the game with a tie no of 1?
CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "northern_section" WHERE "tie_no"='1';
2-18569929-2
What is the game number on December 21?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT COUNT("game") FROM "game_log" WHERE "date"='december 21';
2-18409087-5
What is the Game with a Record of 19-15?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "game" FROM "game_log" WHERE "record"='19-15';
2-18409087-5
What is the Date of the game against Detroit in game 31 or after?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "game">31 AND "opponent"='detroit';
2-18409087-5
During which years did the golfer with the total of 289 win?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"=289;
2-18786347-1
What was the To par for the player who finished t56?
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 "finish"='t56';
2-18786347-1
Which county did the player with a total of 294 represent?
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"=294;
2-18786347-1
What was the total for united states player phil mickelson?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT MIN("total") FROM "made_the_cut" WHERE "country"='united states' AND "player"='phil mickelson';
2-18786347-1
With a less than 4 rank, and a time less than 24.42 what is the smallest lane?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"<4 AND "time"<24.42;
2-18625234-5
The swimmer from the United States in a lane less than 5, had what as the average time?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT AVG("time") FROM "semifinal_2" WHERE "nationality"='united states' AND "lane"<5;
2-18625234-5
What nationality is the swimmer that is in the lane that is less than 2?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );
SELECT "nationality" FROM "semifinal_2" WHERE "lane"<2;
2-18625234-5
Which Losses have Draws smaller than 0?
CREATE TABLE "2009_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MAX("losses") FROM "2009_ladder" WHERE "draws"<0;
2-18976447-5
Which Losses have Draws larger than 0?
CREATE TABLE "2009_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MAX("losses") FROM "2009_ladder" WHERE "draws">0;
2-18976447-5
How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
CREATE TABLE "2009_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("against") FROM "2009_ladder" WHERE "losses"<7 AND "wimmera_fl"='horsham';
2-18976447-5
How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?
CREATE TABLE "2009_ladder" ( "wimmera_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("draws") FROM "2009_ladder" WHERE "wins">7 AND "wimmera_fl"='nhill' AND "losses">8;
2-18976447-5
What was the outcome of the match with a score of 3-6, 2-6?
CREATE TABLE "singles_finals_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_finals_10" WHERE "score"='3-6, 2-6';
2-1869714-6
What was the tournament that had byron black playing against magnus larsson?
CREATE TABLE "singles_finals_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_finals_10" WHERE "opponent"='magnus larsson';
2-1869714-6
What tournament had a game with a score of 6-7, 4-6?
CREATE TABLE "singles_finals_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_finals_10" WHERE "score"='6-7, 4-6';
2-1869714-6
What was the yacht type smaller than 16.5 metres that finished in 3:14:41:28?
CREATE TABLE "line_honours_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" real, "skipper" text, "elapsed_time_d_hh_mm_ss" text );
SELECT "yacht_type" FROM "line_honours_results_top_10" WHERE "loa_metres"<16.5 AND "elapsed_time_d_hh_mm_ss"='3:14:41:28';
2-1858574-2
what is the result when the round is less than 7 and the opponent is melbourne storm?
CREATE TABLE "results" ( "round" real, "opponent" text, "result" text, "opp" real, "venue" text );
SELECT "result" FROM "results" WHERE "round"<7 AND "opponent"='melbourne storm';
2-18838673-1
what is the venue when the result is loss and the opponent is st george-illawarra dragons?
CREATE TABLE "results" ( "round" real, "opponent" text, "result" text, "opp" real, "venue" text );
SELECT "venue" FROM "results" WHERE "result"='loss' AND "opponent"='st george-illawarra dragons';
2-18838673-1
Who won silver in 1982?
CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text );
SELECT "silver" FROM "world_championships_men" WHERE "year"=1982;
2-18938213-1
What is the Time of the Rowers in Rank 1?
CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "time" FROM "repechage" WHERE "rank"=1;
2-18662686-5
What is the Time of the Rowers from Belgium?
CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT "time" FROM "repechage" WHERE "country"='belgium';
2-18662686-5
What time does lane 7 have?
CREATE TABLE "semifinal_3" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" text );
SELECT "time" FROM "semifinal_3" WHERE "lane"=7;
2-18569131-5