question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "result"='won' AND "competition"='friendly' AND "date"='28 may 2012';
2-17693241-2
What is the result of the game at kyiv, ukraine?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "venue"='kyiv, ukraine';
2-17693241-2
What is the Style of the dance by Choreographer Luda and Oliver?
CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text );
SELECT "style" FROM "week_1_17_february_2008" WHERE "choreographer"='luda and oliver';
2-17920261-2
What is the Result of the dance Choreographed by Kelly Aykers?
CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text );
SELECT "results" FROM "week_1_17_february_2008" WHERE "choreographer"='kelly aykers';
2-17920261-2
What is the Style of the dance Choreographed by Nacho Pop with result of safe?
CREATE TABLE "week_1_17_february_2008" ( "couple" text, "style" text, "music" text, "choreographer" text, "results" text );
SELECT "style" FROM "week_1_17_february_2008" WHERE "results"='safe' AND "choreographer"='nacho pop';
2-17920261-2
What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?
CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_table_by_country" WHERE "total">2 AND "gold"=21 AND "bronze">12;
2-18314203-3
How many golds does Germany have with more than 1 silver?
CREATE TABLE "medal_table_by_country" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table_by_country" WHERE "silver">1 AND "nation"='germany';
2-18314203-3
What is the total number of rounds of the player with a pick of 20?
CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT COUNT("round") FROM "draft_picks" WHERE "pick"=20;
2-18259953-3
Who is the player from the 1971 draft with a pick greater than 7?
CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT "player" FROM "draft_picks" WHERE "draft"=1971 AND "pick">7;
2-18259953-3
What is the total number of Premier, when Second is "55"?
CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real );
SELECT COUNT("premier") FROM "number_of_participants" WHERE "second"=55;
2-17699377-2
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real );
SELECT COUNT("second") FROM "number_of_participants" WHERE "first">18 AND "season"='1992-93' AND "premier">16;
2-17699377-2
What is the lowest Total, when Second is "55"?
CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real );
SELECT MIN("total") FROM "number_of_participants" WHERE "second"=55;
2-17699377-2
What is the highest Total, when Season is "1996-97", and when Second is less than 33?
CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real );
SELECT MAX("total") FROM "number_of_participants" WHERE "season"='1996-97' AND "second"<33;
2-17699377-2
What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?
CREATE TABLE "number_of_participants" ( "season" text, "premier" real, "first" real, "second" real, "total" real );
SELECT SUM("second") FROM "number_of_participants" WHERE "total"<70 AND "premier"<20 AND "first">18;
2-17699377-2
In what season were there 27 goals and 58 points?
CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text );
SELECT "season" FROM "club_statistics" WHERE "goals"='27' AND "points"='58';
2-1790061-7
What are the points in the season with 47 games and 28 goals?
CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text );
SELECT "points" FROM "club_statistics" WHERE "goals"='28' AND "games"='47';
2-1790061-7
How many goals were there in game 47?
CREATE TABLE "club_statistics" ( "name" text, "season" text, "games" text, "goals" text, "assists" text, "points" text );
SELECT "goals" FROM "club_statistics" WHERE "games"='47';
2-1790061-7
How much Snatch has a Total (kg) smaller than 257?
CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT SUM("snatch") FROM "middleweight_77_kg" WHERE "total_kg"<257;
2-17703223-4
Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?
CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT MIN("snatch") FROM "middleweight_77_kg" WHERE "clean_jerk"=180 AND "bodyweight"<69.83;
2-17703223-4
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT COUNT("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "military_and_or_civilian_wounded"='78' AND "total_deaths">27;
2-17796039-4
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT AVG("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "civilian_deaths_including_foreigners"<38 AND "military_and_or_civilian_wounded"='33';
2-17796039-4
What is the total number of casualties when there are 12 total deaths and more than 1 military death?
CREATE TABLE "terror_and_other_attacks_1968_1987" ( "military_deaths" real, "civilian_deaths_including_foreigners" real, "total_deaths" real, "military_and_or_civilian_wounded" text, "total_casualties" text );
SELECT "total_casualties" FROM "terror_and_other_attacks_1968_1987" WHERE "total_deaths"=12 AND "military_deaths">1;
2-17796039-4
which Total has a Score points of 11?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "total" FROM "qualification" WHERE "score_points"='11';
2-18191407-4
Which Total has an olympic bronze medalist?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "total" FROM "qualification" WHERE "rank_points"='olympic bronze medalist';
2-18191407-4
Which Shooter has Score points of olympic silver medalist?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "shooter" FROM "qualification" WHERE "score_points"='olympic silver medalist';
2-18191407-4
Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "rank_points" FROM "qualification" WHERE "event"='wc beijing' AND "score_points"='13' AND "total"='18';
2-18191407-4
What is the Film title used in nomination of Cilvēka Bērns?
CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );
SELECT "film_title_used_in_nomination" FROM "list" WHERE "original_title"='cilvēka bērns';
2-17822046-1
What is the Original Title of the 1992 (65th) Film
CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );
SELECT "original_title" FROM "list" WHERE "year_ceremony"='1992 (65th)';
2-17822046-1
What is the Director of Gulf Stream Under the Iceberg?
CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );
SELECT "director" FROM "list" WHERE "film_title_used_in_nomination"='gulf stream under the iceberg';
2-17822046-1
What is the Original Title of the movie directed by Aigars Grauba?
CREATE TABLE "list" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );
SELECT "original_title" FROM "list" WHERE "director"='aigars grauba';
2-17822046-1
What is the British letter with o /oʊ/?
CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text );
SELECT "british" FROM "vowel_alone" WHERE "letter"='o /oʊ/';
2-17798093-18
Which letter has the British aɪ?
CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text );
SELECT "letter" FROM "vowel_alone" WHERE "british"='aɪ';
2-17798093-18
What does American have if Australia has əʉ?
CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text );
SELECT "american" FROM "vowel_alone" WHERE "australian"='əʉ';
2-17798093-18
What is the British letter if American is ə?
CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text );
SELECT "british" FROM "vowel_alone" WHERE "american"='ə';
2-17798093-18
What is the Australian letter with a British of ɪ and a letter of æ /i/??
CREATE TABLE "vowel_alone" ( "letter" text, "american" text, "british" text, "australian" text, "examples" text );
SELECT "australian" FROM "vowel_alone" WHERE "british"='ɪ' AND "letter"='æ /i/';
2-17798093-18
Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT "score" FROM "fifth_round_proper" WHERE "attendance">'16,851' AND "away_team"='sheffield united';
2-17814838-7
What is sheffield united's away team?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='sheffield united';
2-17814838-7
How many people attended the Away team of middlesbrough?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT COUNT("attendance") FROM "fifth_round_proper" WHERE "away_team"='middlesbrough';
2-17814838-7
Which Score has an Away team of middlesbrough?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='middlesbrough';
2-17814838-7
WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street';
2-18033138-2
WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT SUM("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street';
2-18033138-2
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors"<24 AND "street_address"='05.0 210 north charles street';
2-18033138-2
WHAT IS THE NAME WITH 01.0 10 light street?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street';
2-18033138-2
What is the Name of the Player with a Height of m (ft 1in)?
CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "name" FROM "kazakhstan" WHERE "height"='m (ft 1in)';
2-17774593-7
What is Tatyana Gubina's Weight?
CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "weight" FROM "kazakhstan" WHERE "name"='tatyana gubina';
2-17774593-7
What is Alyona Klimenko's Pos.?
CREATE TABLE "kazakhstan" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "pos" FROM "kazakhstan" WHERE "name"='alyona klimenko';
2-17774593-7
How many third places has a total greater than 2 and a rank less than 2?
CREATE TABLE "men" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real );
SELECT "third_place" FROM "men" WHERE "total">2 AND "rank"<2;
2-18057725-1
What is the number for R Bacon in Passaic County?
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "r_bacon" FROM "u_s_house_district_5" WHERE "county"='passaic';
2-17820556-3
What is the number for D. Shulman if C. Abate has 728 (43%)
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "d_shulman" FROM "u_s_house_district_5" WHERE "c_abate"='728 (43%)';
2-17820556-3
Which county has 728 (43%) listed under C. Abate?
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "county" FROM "u_s_house_district_5" WHERE "c_abate"='728 (43%)';
2-17820556-3
What are the numbers for D. Shulman in Warren County?
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "d_shulman" FROM "u_s_house_district_5" WHERE "county"='warren';
2-17820556-3
Which County has Precincts of 90/90?
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "county" FROM "u_s_house_district_5" WHERE "precincts"='90/90';
2-17820556-3
Which county has 438 (4%) listed under R. Bacon?
CREATE TABLE "u_s_house_district_5" ( "county" text, "precincts" text, "c_abate" text, "r_bacon" text, "d_shulman" text );
SELECT "county" FROM "u_s_house_district_5" WHERE "r_bacon"='438 (4%)';
2-17820556-3
What is the format of the album Pacific Ocean Blue in 1991?
CREATE TABLE "albums" ( "artist" text, "album" text, "country" text, "year" real, "catalog_num" text, "format" text );
SELECT "format" FROM "albums" WHERE "album"='pacific ocean blue' AND "year"=1991;
2-18078622-1
Who is the artist with catalog number ZK 34354?
CREATE TABLE "albums" ( "artist" text, "album" text, "country" text, "year" real, "catalog_num" text, "format" text );
SELECT "artist" FROM "albums" WHERE "catalog_num"='zk 34354';
2-18078622-1
How tall is player James Stanton?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "australia" WHERE "name"='james stanton';
2-17759945-2
Which player is on the roster for the Sydney University Lions?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "name" FROM "australia" WHERE "club"='sydney university lions';
2-17759945-2
What is the height of player James Stanton?
CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "australia" WHERE "name"='james stanton';
2-17759945-2
What is the highest draft after round 2, is from the United States and has picked less than 113?
CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT MAX("draft") FROM "draft_picks" WHERE "round">2 AND "nationality"='united states' AND "pick"<113;
2-18253881-3
What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?
CREATE TABLE "draft_picks" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT AVG("draft") FROM "draft_picks" WHERE "pick">42 AND "player"='grant eakin' AND "round">8;
2-18253881-3
What venue was the 2000 AFC Asian Cup qualification held at?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "competition"='2000 afc asian cup qualification';
2-18167542-1
What were the lowest goals when the matches were smaller than 29?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT MIN("goals") FROM "top_goalkeepers" WHERE "matches"<29;
2-18160020-16
What is the lowest match for goals larger than 36?
CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text );
SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goals">36;
2-18160020-16
For the 2013 completion schedule, what is the total S.no.?
CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text );
SELECT SUM("s_no") FROM "hydro_power_stations_under_construction" WHERE "completion_schedule"='2013';
2-18145877-2
What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?
CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text );
SELECT "completion_schedule" FROM "hydro_power_stations_under_construction" WHERE "state"='himachal pradesh' AND "total_capacity_mw"=800;
2-18145877-2
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?
CREATE TABLE "hydro_power_stations_under_construction" ( "s_no" real, "power_plant" text, "state" text, "total_capacity_mw" real, "completion_schedule" text );
SELECT MIN("s_no") FROM "hydro_power_stations_under_construction" WHERE "state"='jammu & kashmir' AND "completion_schedule"='2016';
2-18145877-2
What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='1r' AND "tournament"='shanghai masters';
2-17922810-3
What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2011" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2012"='a' AND "2009"='a' AND "tournament"='paris masters';
2-17922810-3
What is the 2012 of the hamburg masters?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2012" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters';
2-17922810-3
What is the 2008 value of the hamburg masters?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters';
2-17922810-3
What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='lq' AND "2011"='2r' AND "2008"='lq';
2-17922810-3
What is the 2010 value of the monte carlo masters, which had A in 2012?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2010" FROM "singles_performance_timeline" WHERE "2012"='a' AND "tournament"='monte carlo masters';
2-17922810-3
What is the quantity when the DRG was E 62 01–E 62 05?
CREATE TABLE "electric_locomotives" ( "class" text, "drg_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );
SELECT COUNT("quantity") FROM "electric_locomotives" WHERE "drg_number_s"='e 62 01–e 62 05';
2-17941795-9
Which Opponent in the final has a Partnering of graydon oliver?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "partnering"='graydon oliver';
2-18149740-3
which Score has a Partnering of dmitry tursunov?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "score" FROM "runners_up_6" WHERE "partnering"='dmitry tursunov';
2-18149740-3
Which Score has an Opponent in the final of chris haggard robbie koenig?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "score" FROM "runners_up_6" WHERE "opponent_in_the_final"='chris haggard robbie koenig';
2-18149740-3
Which Partnering has a Score of 7–6 7 , 6–1?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "partnering" FROM "runners_up_6" WHERE "score"='7–6 7 , 6–1';
2-18149740-3
Name the Surface that of Tournament of valencia , spain?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "surface" FROM "runners_up_6" WHERE "tournament"='valencia , spain';
2-18149740-3
Name the Opponent in the final on july 4, 2005?
CREATE TABLE "runners_up_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text );
SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "date"='july 4, 2005';
2-18149740-3
What was the Result F–A on 21 February 2009, when the league position was 1st?
CREATE TABLE "premier_league" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "league_position" text );
SELECT "result_f_a" FROM "premier_league" WHERE "league_position"='1st' AND "date"='21 february 2009';
2-17626681-4
What club does John Westin play for?
CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "2010_draft_picks" WHERE "player"='john westin';
2-18259953-7
In what round was a left wing drafted?
CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "round" FROM "2010_draft_picks" WHERE "position"='left wing';
2-18259953-7
What player was drafted in Round 5?
CREATE TABLE "2010_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "player" FROM "2010_draft_picks" WHERE "round"=5;
2-18259953-7
Where did the player who won in 1991 finish?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='1991';
2-18122130-2
Which player is from scotland?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "country"='scotland';
2-18122130-2
What are the Lyrics (l) / Music (m) when the draw was 5?
CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text );
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw"=5;
2-17824548-4
What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?
CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text );
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw">3 AND "results"='siste sjansen' AND "song"='\"shuffled\"';
2-17824548-4
What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?
CREATE TABLE "semi_final_3_7_february_2009" ( "draw" real, "artist" text, "song" text, "lyrics_l_music_m" text, "results" text );
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "results"='out' AND "song"='\"left/right\"';
2-17824548-4
What score has friendly as the competition?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "competition"='friendly';
2-1768182-3
Playing against Chelmsford City on 15 November 1986, who was the home team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "first_round_proper" WHERE "date"='15 november 1986' AND "away_team"='chelmsford city';
2-17751837-1
When Lincoln City was the away team what is the tie number?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lincoln city';
2-17751837-1
When was the game played that had Rochdale as the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "first_round_proper" WHERE "away_team"='rochdale';
2-17751837-1
Scunthorpe United as the home team has what tie number?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "home_team"='scunthorpe united';
2-17751837-1
The game played on 6 December 1986 had what score?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "first_round_proper" WHERE "date"='6 december 1986';
2-17751837-1
WHAT IS THE TYPE WITH 124?
CREATE TABLE "express_train_locomotives" ( "class" text, "number_range" text, "quantity" text, "year_s_built" text, "type" text );
SELECT "type" FROM "express_train_locomotives" WHERE "quantity"='124';
2-17951246-1
What is Score, when Total is "28:42"?
CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text );
SELECT "score" FROM "round_of_32" WHERE "total"='28:42';
2-18246956-34
What is Date, when Set 1 is "20:22"?
CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text );
SELECT "date" FROM "round_of_32" WHERE "set_1"='20:22';
2-18246956-34
What is Set 1, when Set 2 is "21:18"?
CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text );
SELECT "set_1" FROM "round_of_32" WHERE "set_2"='21:18';
2-18246956-34
What is Set 2, when Total is "52:44"?
CREATE TABLE "round_of_32" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text );
SELECT "set_2" FROM "round_of_32" WHERE "total"='52:44';
2-18246956-34
What is the away team with a 4 tie no.?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='4';
2-17751859-5