question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What Inclination has Eccentricity of 0.06 +0.06 −0.11?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "inclination" FROM "the_hd_40307_system" WHERE "eccentricity"='0.06 +0.06 −0.11';
2-17975363-1
What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "companion_in_order_from_star" FROM "the_hd_40307_system" WHERE "orbital_period_s_day"='9.6184 +0.0050 −0.0049';
2-17975363-1
What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "inclination" FROM "the_hd_40307_system" WHERE "mass"='≥ 6.6 +1.1 −1.0 m⊕';
2-17975363-1
What Semimajor axis (AU) has a Companion (in order from star) of g?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "companion_in_order_from_star"='g';
2-17975363-1
What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?
CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text );
SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "mass"='≥ 3.5 ± 1.4 m⊕';
2-17975363-1
What Slalom was Switzerland in?
CREATE TABLE "most_race_wins_in_a_single_season" ( "country" text, "season" text, "victories" real, "downhill" text, "super_g" text, "giant_slalom" real, "slalom" text, "combined" text );
SELECT "slalom" FROM "most_race_wins_in_a_single_season" WHERE "country"='switzerland';
2-183628-18
WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?
CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text );
SELECT "package_version" FROM "software_updates" WHERE "carrier"='telus mobility';
2-18082541-2
WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?
CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text );
SELECT "package_version" FROM "software_updates" WHERE "device"='blackberry storm 9530' AND "applications"='5.0.0.419' AND "carrier"='mts mobility';
2-18082541-2
WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?
CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text );
SELECT "carrier" FROM "software_updates" WHERE "package_version"='5.0.0.742';
2-18082541-2
WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?
CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text );
SELECT "carrier" FROM "software_updates" WHERE "package_version"='4.7.0.208';
2-18082541-2
WHAT IS THE DEVICE WITH MTS MOBILITY?
CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text );
SELECT "device" FROM "software_updates" WHERE "carrier"='mts mobility';
2-18082541-2
How much money was there when the to par was 15?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT SUM("money") FROM "final_leaderboard" WHERE "to_par"=15;
2-18007141-1
What are the years for the 250 model?
CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text );
SELECT "years" FROM "models_except_north_america_and_japan" WHERE "model"='250';
2-1773703-1
What is the power of the Chassis code w123.130?
CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text );
SELECT "power" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.130';
2-1773703-1
What Engine does the w123.026 chassis have?
CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text );
SELECT "engine" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.026';
2-1773703-1
What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?
CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text );
SELECT "chassis_code" FROM "models_except_north_america_and_japan" WHERE "power"='ps (kw; hp) @ 4200' AND "model"='200d';
2-1773703-1
What is the height in ft and m of the regions bank building?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "name"='regions bank building';
2-17961233-2
What is the street address of the van antwerp building?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='van antwerp building';
2-17961233-2
What is the hight in ft and m of the building with less than 11 floors?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"<11;
2-17961233-2
What is the against when the opposing team is Italy?
CREATE TABLE "2004" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT COUNT("against") FROM "2004" WHERE "opposing_teams"='italy';
2-18178551-5
What is Cha Bum-Kun's average number of goals per match?
CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real );
SELECT COUNT("goals_per_match") FROM "notes" WHERE "name"='cha bum-kun';
2-17930993-1
How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?
CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real );
SELECT COUNT("caps") FROM "notes" WHERE "name"='jon dahl tomasson' AND "goals_per_match"<0.46;
2-17930993-1
What is the club from Vila Do Conde?
CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text );
SELECT "club" FROM "club_information" WHERE "city"='vila do conde';
2-17933603-1
What is the stadium for the team that was 6th in the liga in the 2004-2005 season?
CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text );
SELECT "stadium" FROM "club_information" WHERE "2004_2005_season"='6th in the liga';
2-17933603-1
What is the stadium for the city of Braga?
CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text );
SELECT "stadium" FROM "club_information" WHERE "city"='braga';
2-17933603-1
In what round was Kelsey Tessier drafted?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "round" FROM "draft_picks" WHERE "player"='kelsey tessier';
2-17798269-20
What is Local Mission, when Mission is "Mauritius"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "local_mission" FROM "non_resident_heads_of_missions" WHERE "mission"='mauritius';
2-17915983-2
What is Local Position, when Mission is "Paraguay"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "local_position" FROM "non_resident_heads_of_missions" WHERE "mission"='paraguay';
2-17915983-2
What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "local_position"='ambassador' AND "non_resident_head_of_mission"='marina isabel cáceres de estévez' AND "mission"='finland';
2-17915983-2
What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "non_resident_head_of_mission" FROM "non_resident_heads_of_missions" WHERE "local_location"='warsaw' AND "mission"='poland';
2-17915983-2
What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "resident_country"='belgium' AND "mission"='poland';
2-17915983-2
What is Resident Country, when Local Location is "Copenhagen"?
CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text );
SELECT "resident_country" FROM "non_resident_heads_of_missions" WHERE "local_location"='copenhagen';
2-17915983-2
What is Player, when Place is "1"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "place"='1';
2-18059698-5
What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t3' AND "player"='phil blackmar';
2-18059698-5
What is To Par, when Country is "Australia"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "country"='australia';
2-18059698-5
What is Score, when Player is "Vijay Singh"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "player"='vijay singh';
2-18059698-5
What type of surface did they play on 23 October 2000?
CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "wins_17_13" WHERE "date"='23 october 2000';
2-17733765-4
What type of surface did they play on 21 July 1997
CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "wins_17_13" WHERE "date"='21 july 1997';
2-17733765-4
what was the score of the Championship match played in Estoril, Portugal?
CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "score_in_the_final" FROM "wins_17_13" WHERE "championship"='estoril, portugal';
2-17733765-4
What was the name of the opponent Tommy Haas played in the Championship?
CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "championship" FROM "wins_17_13" WHERE "opponent_in_the_final"='tommy haas';
2-17733765-4
What was the score of the match played on 18 January 1999?
CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "outcome" FROM "wins_17_13" WHERE "date"='18 january 1999';
2-17733765-4
What season has roma as the opponent?
CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "aggregate" text );
SELECT "season" FROM "european_record" WHERE "opponent"='roma';
2-177538-3
What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?
CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text );
SELECT "ship_type" FROM "first_raiding_cruise" WHERE "disposition_of_ship"='prize' AND "tonnage"<151;
2-18137936-1
What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?
CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text );
SELECT MAX("tonnage") FROM "first_raiding_cruise" WHERE "ship_type"='brig' AND "disposition_of_ship"='prize';
2-18137936-1
What's the to par for england when the score is less than 71?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "country"='england' AND "score"<71;
2-18169093-3
What is the lowest total for 1985-1986 when the total points are 124?
CREATE TABLE "relegation_table" ( "team" text, "1983" text, "1984" text, "1985_1986" real, "total_points" real, "seasons" real, "points_average" real );
SELECT MIN("1985_1986") FROM "relegation_table" WHERE "total_points"=124;
2-17968244-2
Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT "year_born_age" FROM "fiba_world_olympic_qualifying_tournament" WHERE "current_club"='sporting al riyadi beirut' AND "position"='pf';
2-18228282-9
Which Current Club has a Player of bassem balaa?
CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text );
SELECT "current_club" FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='bassem balaa';
2-18228282-9
What was the round in 1968?
CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT "round" FROM "men" WHERE "year"=1968;
2-18336099-1
What is the round for a year earlier than 1987?
CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT "round" FROM "men" WHERE "year"<1987;
2-18336099-1
What is the round when Grand Slam was the Davis Cup?
CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT "round" FROM "men" WHERE "grand_slam"='davis cup';
2-18336099-1
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?
CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text );
SELECT "grand_slam" FROM "men" WHERE "year"=1987 AND "round"='first round' AND "winner"='ivan lendl';
2-18336099-1
What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?
CREATE TABLE "mexico_under_20_managers" ( "manager" text, "mexico_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real );
SELECT MAX("win_pct") FROM "mexico_under_20_managers" WHERE "manager"='juan carlos chávez' AND "lost"<4;
2-17736508-2
In which district is the incumbent a republican first elected in 1998?
CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "district" FROM "north_carolina" WHERE "party"='republican' AND "first_elected"=1998;
2-1805191-34
What is the party affiliation of Virginia Foxx?
CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "party" FROM "north_carolina" WHERE "incumbent"='virginia foxx';
2-1805191-34
What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "event" FROM "race_calendar_and_winners" WHERE "winning_driver"='laurent aiello laurent aiello' AND "round">1 AND "circuit"='wunstorf';
2-17932082-2
What is Date, when Round is "2"?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "date" FROM "race_calendar_and_winners" WHERE "round"=2;
2-17932082-2
What is Event, when Round is "10"?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "event" FROM "race_calendar_and_winners" WHERE "round"=10;
2-17932082-2
What is Date, when Round is less than 10, and when Circuit is "Norisring"?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text );
SELECT "date" FROM "race_calendar_and_winners" WHERE "round"<10 AND "circuit"='norisring';
2-17932082-2
What is the highest goal difference of the club with more than 34 played?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("goal_difference") FROM "group_ii" WHERE "played">34;
2-17693482-4
What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("points") FROM "group_ii" WHERE "goal_difference">17 AND "played">34;
2-17693482-4
What is the lowest goal difference of club real betis, who has less than 18 wins?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("goal_difference") FROM "group_ii" WHERE "club"='real betis' AND "wins"<18;
2-17693482-4
What is the sum of the points of the club with more than 34 played?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("points") FROM "group_ii" WHERE "played">34;
2-17693482-4
What is the lowest number played of the club with more than 15 wins and less than 42 goals against?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("played") FROM "group_ii" WHERE "wins">15 AND "goals_against"<42;
2-17693482-4
What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("wins") FROM "group_ii" WHERE "goal_difference"<21 AND "draws"=4 AND "losses"<21;
2-17693482-4
What is the round for the qualifying phase with a draw date on 16 July 2010?
CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text );
SELECT "round" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "draw_date"='16 july 2010';
2-18255941-6
Jack Nicklaus finished in what place?
CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "finish" FROM "made_both_cuts" WHERE "player"='jack nicklaus';
2-18166348-1
What year (s) won was +2 the To par, and t22 the finish?
CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_both_cuts" WHERE "to_par"='+2' AND "finish"='t22';
2-18166348-1
Lee Trevino of the United States with a total greater than 294 had what To par?
CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "to_par" FROM "made_both_cuts" WHERE "total">294 AND "country"='united states' AND "player"='lee trevino';
2-18166348-1
The golfer from Spain with a total less than 294 won in what year (s)?
CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "year_s_won" FROM "made_both_cuts" WHERE "total"<294 AND "country"='spain';
2-18166348-1
Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "nationality" FROM "round_five" WHERE "pick_num"<130 AND "player"='tyler bunz';
2-18026409-7
Which League from has a Player of louis domingue?
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "league_from" FROM "round_five" WHERE "player"='louis domingue';
2-18026409-7
Which League from has a NHL team of san jose sharks (from carolina) 3?
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "league_from" FROM "round_five" WHERE "nhl_team"='san jose sharks (from carolina) 3';
2-18026409-7
Name the Nationality of södertälje sk?
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "nationality" FROM "round_five" WHERE "team_from"='södertälje sk';
2-18026409-7
Which Team has a Pick # of 148?
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "team_from" FROM "round_five" WHERE "pick_num"=148;
2-18026409-7
Which team has a League from of ontario hockey league, and a Player of tony dehart?
CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "nhl_team" FROM "round_five" WHERE "league_from"='ontario hockey league' AND "player"='tony dehart';
2-18026409-7
What is T4 Place Player Nick Price's Money?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "money" FROM "final_round" WHERE "place"='t4' AND "player"='nick price';
2-18048776-7
What is the To par of the Place 1 Player?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "place"='1';
2-18048776-7
What Player's Score is 69-68-66-70=273?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_round" WHERE "score"='69-68-66-70=273';
2-18048776-7
What Player's To par is −6?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_round" WHERE "to_par"='−6';
2-18048776-7
What is the height of the the building ranked 13= with fewer than 28 floors?
CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real );
SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='13=' AND "floors"<28;
2-18033138-1
Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "country" FROM "missed_the_cut" WHERE "to_par">3 AND "year_s_won"='1979';
2-18100823-2
Which To par has a Country of australia, and a Year(s) won of 1990?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT MIN("to_par") FROM "missed_the_cut" WHERE "country"='australia' AND "year_s_won"='1990';
2-18100823-2
Which city is in Cantabria?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "city" FROM "1979" WHERE "province"='cantabria';
2-17797073-4
What is the name of the city with the Socialist Party of the Extremadurian People?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "city" FROM "1979" WHERE "name_in_english"='socialist party of the extremadurian people';
2-17797073-4
Which province has the partido Socialista del Pueblo Extremeño party?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "province" FROM "1979" WHERE "party"='partido socialista del pueblo extremeño';
2-17797073-4
When was the Partido radical party in Madrid registered?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "date_of_registration" FROM "1979" WHERE "province"='madrid' AND "party"='partido radical';
2-17797073-4
Which province is Pamplona located in?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "province" FROM "1979" WHERE "city"='pamplona';
2-17797073-4
On what date was the Canarian Workers Socialist Union registered?
CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text );
SELECT "date_of_registration" FROM "1979" WHERE "name_in_english"='canarian workers socialist union';
2-17797073-4
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("rank") FROM "medal_count" WHERE "total"=8 AND "nation"='hungary' AND "silver">2;
2-180200-1
What is the highest rank of Great Britain who has less than 16 bronze?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("rank") FROM "medal_count" WHERE "nation"='great britain' AND "bronze"<16;
2-180200-1
What was the injured entry for the row with a killed entry of 29?
CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text );
SELECT "injured" FROM "americas" WHERE "killed"='29';
2-17794738-3
What location has a killed of 100.9, and a year later than 1993?
CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text );
SELECT "location" FROM "americas" WHERE "year">1993 AND "killed"='100.9';
2-17794738-3
What was the injured entry for Venezuela?
CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text );
SELECT "injured" FROM "americas" WHERE "country"='venezuela';
2-17794738-3
Which season had a season finale of May 13, 2012?
CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real );
SELECT SUM("season") FROM "season_ratings" WHERE "season_finale"='may 13, 2012';
2-1772130-2
How many viewers (in millions) were there for the season premiere on September 26, 2010?
CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real );
SELECT "viewers_in_millions" FROM "season_ratings" WHERE "season_premiere"='september 26, 2010';
2-1772130-2
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?
CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text );
SELECT "ages" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "pair"='mitchell & jessica';
2-17862135-20
Who danced the Cha-Cha-Cha on November 18, 2008?
CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text );
SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "date"='november 18, 2008';
2-17862135-20
Who danced the Samba on October 14, 2008?
CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text );
SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "date"='october 14, 2008' AND "dance"='samba';
2-17862135-20
What was the pic for Canada for player Yvon Bouillon earlier than 1974?
CREATE TABLE "wha" ( "year" real, "round" real, "pick" real, "player" text, "nationality" text );
SELECT AVG("pick") FROM "wha" WHERE "nationality"='canada' AND "year"<1974 AND "player"='yvon bouillon';
2-18291346-3