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