instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: How many wins for team with 1800 Against and more than 0 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (wins INTEGER, against VARCHAR, draws VARCHAR)
SELECT MAX(wins) FROM table_name_64 WHERE against = 1800 AND draws > 0
Write a SQL query that answers the following question: What is the least wins for a team with against less than 814?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (wins INTEGER, against INTEGER)
SELECT MIN(wins) FROM table_name_42 WHERE against < 814
Write a SQL query that answers the following question: How many losses for the team with 3 wins and more than 1919 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE wins = 3 AND against > 1919
Write a SQL query that answers the following question: What is the 2002 result where 2011 and 2000 are 1R?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 2002 FROM table_name_22 WHERE 2011 = "1r" AND 2000 = "1r"
Write a SQL query that answers the following question: What is the 2008 result where 2003 is 325?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (Id VARCHAR)
SELECT 2008 FROM table_name_34 WHERE 2003 = "325"
Write a SQL query that answers the following question: What is the 2002 result when 2006 is A and 2010 is Q1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (Id VARCHAR)
SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1"
Write a SQL query that answers the following question: Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (year_completed INTEGER, dam_type VARCHAR, impounded_body_of_water VARCHAR)
SELECT MIN(year_completed) FROM table_name_31 WHERE dam_type = "concrete gravity" AND impounded_body_of_water = "deep creek reservoir"
Write a SQL query that answers the following question: Which dam type was completed in 1961?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (dam_type VARCHAR, year_completed VARCHAR)
SELECT dam_type FROM table_name_90 WHERE year_completed = 1961
Write a SQL query that answers the following question: Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year_completed INTEGER, dam_type VARCHAR, dam_constructed VARCHAR)
SELECT MAX(year_completed) FROM table_name_25 WHERE dam_type = "earthfill embankment" AND dam_constructed = "khancoban dam"
Write a SQL query that answers the following question: Which Reservoir capacity has an Impounded body of water of tumut two pondage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)
SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"
Write a SQL query that answers the following question: What Companion (in order from star) has a Semimajor axis (AU) of 0.1886 +0.083 −0.0104?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (companion__in_order_from_star_ VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT companion__in_order_from_star_ FROM table_name_58 WHERE semimajor_axis___au__ = "0.1886 +0.083 −0.0104"
Write a SQL query that answers the following question: What Inclination has Eccentricity of 0.06 +0.06 −0.11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (inclination VARCHAR, eccentricity VARCHAR)
SELECT inclination FROM table_name_81 WHERE eccentricity = "0.06 +0.06 −0.11"
Write a SQL query that answers the following question: What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (companion__in_order_from_star_ VARCHAR, orbital_period___s_day__ VARCHAR)
SELECT companion__in_order_from_star_ FROM table_name_10 WHERE orbital_period___s_day__ = "9.6184 +0.0050 −0.0049"
Write a SQL query that answers the following question: What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (inclination VARCHAR, mass VARCHAR)
SELECT inclination FROM table_name_9 WHERE mass = "≥ 6.6 +1.1 −1.0 m⊕"
Write a SQL query that answers the following question: What Semimajor axis (AU) has a Companion (in order from star) of g?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"
Write a SQL query that answers the following question: What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (semimajor_axis___au__ VARCHAR, mass VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_73 WHERE mass = "≥ 3.5 ± 1.4 m⊕"
Write a SQL query that answers the following question: What Slalom was Switzerland in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (slalom VARCHAR, country VARCHAR)
SELECT slalom FROM table_name_2 WHERE country = "switzerland"
Write a SQL query that answers the following question: WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (package_version VARCHAR, carrier VARCHAR)
SELECT package_version FROM table_name_74 WHERE carrier = "telus mobility"
Write a SQL query that answers the following question: WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (package_version VARCHAR, carrier VARCHAR, device VARCHAR, applications VARCHAR)
SELECT package_version FROM table_name_9 WHERE device = "blackberry storm 9530" AND applications = "5.0.0.419" AND carrier = "mts mobility"
Write a SQL query that answers the following question: WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (carrier VARCHAR, package_version VARCHAR)
SELECT carrier FROM table_name_37 WHERE package_version = "5.0.0.742"
Write a SQL query that answers the following question: WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (carrier VARCHAR, package_version VARCHAR)
SELECT carrier FROM table_name_25 WHERE package_version = "4.7.0.208"
Write a SQL query that answers the following question: WHAT IS THE DEVICE WITH MTS MOBILITY?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (device VARCHAR, carrier VARCHAR)
SELECT device FROM table_name_18 WHERE carrier = "mts mobility"
Write a SQL query that answers the following question: How much money was there when the to par was 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (money___ INTEGER, to_par VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_93 WHERE to_par = 15
Write a SQL query that answers the following question: What are the years for the 250 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (years VARCHAR, model VARCHAR)
SELECT years FROM table_name_97 WHERE model = "250"
Write a SQL query that answers the following question: What is the power of the Chassis code w123.130?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (power VARCHAR, chassis_code VARCHAR)
SELECT power FROM table_name_67 WHERE chassis_code = "w123.130"
Write a SQL query that answers the following question: What Engine does the w123.026 chassis have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (engine VARCHAR, chassis_code VARCHAR)
SELECT engine FROM table_name_53 WHERE chassis_code = "w123.026"
Write a SQL query that answers the following question: What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (chassis_code VARCHAR, power VARCHAR, model VARCHAR)
SELECT chassis_code FROM table_name_63 WHERE power = "ps (kw; hp) @ 4200" AND model = "200d"
Write a SQL query that answers the following question: What is the height in ft and m of the regions bank building?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (height_ft__m_ VARCHAR, name VARCHAR)
SELECT height_ft__m_ FROM table_name_90 WHERE name = "regions bank building"
Write a SQL query that answers the following question: What is the street address of the van antwerp building?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (street_address VARCHAR, name VARCHAR)
SELECT street_address FROM table_name_9 WHERE name = "van antwerp building"
Write a SQL query that answers the following question: What is the hight in ft and m of the building with less than 11 floors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (height_ft__m_ VARCHAR, floors INTEGER)
SELECT height_ft__m_ FROM table_name_12 WHERE floors < 11
Write a SQL query that answers the following question: What is the against when the opposing team is Italy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (against VARCHAR, opposing_teams VARCHAR)
SELECT COUNT(against) FROM table_name_54 WHERE opposing_teams = "italy"
Write a SQL query that answers the following question: What is Cha Bum-Kun's average number of goals per match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (goals_per_match VARCHAR, name VARCHAR)
SELECT COUNT(goals_per_match) FROM table_name_12 WHERE name = "cha bum-kun"
Write a SQL query that answers the following question: How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (caps VARCHAR, name VARCHAR, goals_per_match VARCHAR)
SELECT COUNT(caps) FROM table_name_97 WHERE name = "jon dahl tomasson" AND goals_per_match < 0.46
Write a SQL query that answers the following question: What is the club from Vila Do Conde?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (club VARCHAR, city VARCHAR)
SELECT club FROM table_name_61 WHERE city = "vila do conde"
Write a SQL query that answers the following question: What is the stadium for the city of Braga?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_88 WHERE city = "braga"
Write a SQL query that answers the following question: In what round was Kelsey Tessier drafted?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_16 WHERE player = "kelsey tessier"
Write a SQL query that answers the following question: What is Local Mission, when Mission is "Mauritius"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (Local VARCHAR, mission VARCHAR)
SELECT Local AS mission FROM table_name_8 WHERE mission = "mauritius"
Write a SQL query that answers the following question: What is Local Position, when Mission is "Paraguay"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (local_position VARCHAR, mission VARCHAR)
SELECT local_position FROM table_name_92 WHERE mission = "paraguay"
Write a SQL query that answers the following question: What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR)
SELECT local_location FROM table_name_68 WHERE resident_country = "belgium" AND mission = "poland"
Write a SQL query that answers the following question: What is Resident Country, when Local Location is "Copenhagen"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (resident_country VARCHAR, local_location VARCHAR)
SELECT resident_country FROM table_name_79 WHERE local_location = "copenhagen"
Write a SQL query that answers the following question: What is Player, when Place is "1"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_66 WHERE place = "1"
Write a SQL query that answers the following question: What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_10 WHERE country = "united states" AND place = "t3" AND player = "phil blackmar"
Write a SQL query that answers the following question: What is To Par, when Country is "Australia"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_25 WHERE country = "australia"
Write a SQL query that answers the following question: What is Score, when Player is "Vijay Singh"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_41 WHERE player = "vijay singh"
Write a SQL query that answers the following question: What type of surface did they play on 23 October 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_67 WHERE date = "23 october 2000"
Write a SQL query that answers the following question: What type of surface did they play on 21 July 1997
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_14 WHERE date = "21 july 1997"
Write a SQL query that answers the following question: what was the score of the Championship match played in Estoril, Portugal?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_name_92 WHERE championship = "estoril, portugal"
Write a SQL query that answers the following question: What was the name of the opponent Tommy Haas played in the Championship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT championship FROM table_name_31 WHERE opponent_in_the_final = "tommy haas"
Write a SQL query that answers the following question: What was the score of the match played on 18 January 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_48 WHERE date = "18 january 1999"
Write a SQL query that answers the following question: What season has roma as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (season VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_15 WHERE opponent = "roma"
Write a SQL query that answers the following question: What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (ship_type VARCHAR, disposition_of_ship VARCHAR, tonnage VARCHAR)
SELECT ship_type FROM table_name_47 WHERE disposition_of_ship = "prize" AND tonnage < 151
Write a SQL query that answers the following question: What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (tonnage INTEGER, ship_type VARCHAR, disposition_of_ship VARCHAR)
SELECT MAX(tonnage) FROM table_name_35 WHERE ship_type = "brig" AND disposition_of_ship = "prize"
Write a SQL query that answers the following question: What's the to par for england when the score is less than 71?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_34 WHERE country = "england" AND score < 71
Write a SQL query that answers the following question: What is the lowest total for 1985-1986 when the total points are 124?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (total_points VARCHAR)
SELECT MIN(1985 AS _1986) FROM table_name_33 WHERE total_points = 124
Write a SQL query that answers the following question: Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (year_born__age_ VARCHAR, current_club VARCHAR, position VARCHAR)
SELECT year_born__age_ FROM table_name_41 WHERE current_club = "sporting al riyadi beirut" AND position = "pf"
Write a SQL query that answers the following question: Which Current Club has a Player of bassem balaa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (current_club VARCHAR, player VARCHAR)
SELECT current_club FROM table_name_97 WHERE player = "bassem balaa"
Write a SQL query that answers the following question: What was the round in 1968?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (round VARCHAR, year VARCHAR)
SELECT round FROM table_name_43 WHERE year = 1968
Write a SQL query that answers the following question: What is the round for a year earlier than 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)
SELECT round FROM table_name_19 WHERE year < 1987
Write a SQL query that answers the following question: What is the round when Grand Slam was the Davis Cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR)
SELECT round FROM table_name_92 WHERE grand_slam = "davis cup"
Write a SQL query that answers the following question: What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (grand_slam VARCHAR, winner VARCHAR, year VARCHAR, round VARCHAR)
SELECT grand_slam FROM table_name_35 WHERE year = 1987 AND round = "first round" AND winner = "ivan lendl"
Write a SQL query that answers the following question: What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (win__percentage INTEGER, manager VARCHAR, lost VARCHAR)
SELECT MAX(win__percentage) FROM table_name_40 WHERE manager = "juan carlos chávez" AND lost < 4
Write a SQL query that answers the following question: In which district is the incumbent a republican first elected in 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_name_33 WHERE party = "republican" AND first_elected = 1998
Write a SQL query that answers the following question: What is the party affiliation of Virginia Foxx?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx"
Write a SQL query that answers the following question: What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)
SELECT event FROM table_name_29 WHERE winning_driver = "laurent aiello laurent aiello" AND round > 1 AND circuit = "wunstorf"
Write a SQL query that answers the following question: What is Date, when Round is "2"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date VARCHAR, round VARCHAR)
SELECT date FROM table_name_38 WHERE round = 2
Write a SQL query that answers the following question: What is Event, when Round is "10"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR)
SELECT event FROM table_name_62 WHERE round = 10
Write a SQL query that answers the following question: What is Date, when Round is less than 10, and when Circuit is "Norisring"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date VARCHAR, round VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_18 WHERE round < 10 AND circuit = "norisring"
Write a SQL query that answers the following question: What is the highest goal difference of the club with more than 34 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER)
SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 34
Write a SQL query that answers the following question: What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (points VARCHAR, goal_difference VARCHAR, played VARCHAR)
SELECT COUNT(points) FROM table_name_76 WHERE goal_difference > 17 AND played > 34
Write a SQL query that answers the following question: What is the lowest goal difference of club real betis, who has less than 18 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (goal_difference INTEGER, club VARCHAR, wins VARCHAR)
SELECT MIN(goal_difference) FROM table_name_10 WHERE club = "real betis" AND wins < 18
Write a SQL query that answers the following question: What is the sum of the points of the club with more than 34 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (points INTEGER, played INTEGER)
SELECT SUM(points) FROM table_name_68 WHERE played > 34
Write a SQL query that answers the following question: What is the lowest number played of the club with more than 15 wins and less than 42 goals against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (played INTEGER, wins VARCHAR, goals_against VARCHAR)
SELECT MIN(played) FROM table_name_59 WHERE wins > 15 AND goals_against < 42
Write a SQL query that answers the following question: What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (wins VARCHAR, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR)
SELECT COUNT(wins) FROM table_name_81 WHERE goal_difference < 21 AND draws = 4 AND losses < 21
Write a SQL query that answers the following question: What is the round for the qualifying phase with a draw date on 16 July 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (round VARCHAR, phase VARCHAR, draw_date VARCHAR)
SELECT round FROM table_name_42 WHERE phase = "qualifying" AND draw_date = "16 july 2010"
Write a SQL query that answers the following question: Jack Nicklaus finished in what place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (finish VARCHAR, player VARCHAR)
SELECT finish FROM table_name_18 WHERE player = "jack nicklaus"
Write a SQL query that answers the following question: What year (s) won was +2 the To par, and t22 the finish?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (year_s__won VARCHAR, to_par VARCHAR, finish VARCHAR)
SELECT year_s__won FROM table_name_5 WHERE to_par = "+2" AND finish = "t22"
Write a SQL query that answers the following question: Lee Trevino of the United States with a total greater than 294 had what To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino"
Write a SQL query that answers the following question: The golfer from Spain with a total less than 294 won in what year (s)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (year_s__won VARCHAR, total VARCHAR, country VARCHAR)
SELECT year_s__won FROM table_name_20 WHERE total < 294 AND country = "spain"
Write a SQL query that answers the following question: Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (nationality VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_13 WHERE pick__number < 130 AND player = "tyler bunz"
Write a SQL query that answers the following question: Which League from has a Player of louis domingue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (league_from VARCHAR, player VARCHAR)
SELECT league_from FROM table_name_48 WHERE player = "louis domingue"
Write a SQL query that answers the following question: Which League from has a NHL team of san jose sharks (from carolina) 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (league_from VARCHAR, nhl_team VARCHAR)
SELECT league_from FROM table_name_13 WHERE nhl_team = "san jose sharks (from carolina) 3"
Write a SQL query that answers the following question: Name the Nationality of södertälje sk?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR)
SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk"
Write a SQL query that answers the following question: Which Team has a Pick # of 148?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)
SELECT team_from FROM table_name_59 WHERE pick__number = 148
Write a SQL query that answers the following question: Which team has a League from of ontario hockey league, and a Player of tony dehart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (nhl_team VARCHAR, league_from VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_name_22 WHERE league_from = "ontario hockey league" AND player = "tony dehart"
Write a SQL query that answers the following question: What is T4 Place Player Nick Price's Money?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_40 WHERE place = "t4" AND player = "nick price"
Write a SQL query that answers the following question: What is the To par of the Place 1 Player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_44 WHERE place = "1"
Write a SQL query that answers the following question: What Player's Score is 69-68-66-70=273?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273
Write a SQL query that answers the following question: What Player's To par is −6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_54 WHERE to_par = "−6"
Write a SQL query that answers the following question: Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = "1979"
Write a SQL query that answers the following question: Which To par has a Country of australia, and a Year(s) won of 1990?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)
SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990"
Write a SQL query that answers the following question: Which city is in Cantabria?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (city VARCHAR, province VARCHAR)
SELECT city FROM table_name_34 WHERE province = "cantabria"
Write a SQL query that answers the following question: What is the name of the city with the Socialist Party of the Extremadurian People?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (city VARCHAR, name_in_english VARCHAR)
SELECT city FROM table_name_89 WHERE name_in_english = "socialist party of the extremadurian people"
Write a SQL query that answers the following question: Which province has the partido Socialista del Pueblo Extremeño party?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR)
SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño"
Write a SQL query that answers the following question: When was the Partido radical party in Madrid registered?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR)
SELECT date_of_registration FROM table_name_38 WHERE province = "madrid" AND party = "partido radical"
Write a SQL query that answers the following question: Which province is Pamplona located in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (province VARCHAR, city VARCHAR)
SELECT province FROM table_name_11 WHERE city = "pamplona"
Write a SQL query that answers the following question: On what date was the Canarian Workers Socialist Union registered?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (date_of_registration VARCHAR, name_in_english VARCHAR)
SELECT date_of_registration FROM table_name_60 WHERE name_in_english = "canarian workers socialist union"
Write a SQL query that answers the following question: What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2
Write a SQL query that answers the following question: What is the highest rank of Great Britain who has less than 16 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_11 WHERE nation = "great britain" AND bronze < 16
Write a SQL query that answers the following question: What was the injured entry for the row with a killed entry of 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (injured VARCHAR, killed VARCHAR)
SELECT injured FROM table_name_98 WHERE killed = "29"
Write a SQL query that answers the following question: What location has a killed of 100.9, and a year later than 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, killed VARCHAR)
SELECT location FROM table_name_81 WHERE year > 1993 AND killed = "100.9"