answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(diameter__km_) FROM table_name_50 WHERE year_named = 1997 AND longitude = "212.0e" AND latitude = "47.0n"
CREATE TABLE table_name_50 (diameter__km_ INTEGER, latitude VARCHAR, year_named VARCHAR, longitude VARCHAR)
What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
SELECT latitude FROM table_name_66 WHERE year_named > 1997 AND longitude = "152.0e"
CREATE TABLE table_name_66 (latitude VARCHAR, year_named VARCHAR, longitude VARCHAR)
What's the latitude when the longitude is 152.0e later than 1997?
SELECT SUM(diameter__km_) FROM table_name_42 WHERE longitude = "105.0e" AND year_named < 2003
CREATE TABLE table_name_42 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)
What's the diameter when longitude is 105.0e before 2003?
SELECT AVG(year_named) FROM table_name_16 WHERE name = "aida-wedo dorsa" AND diameter__km_ < 450
CREATE TABLE table_name_16 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR)
What's the average year for the name aida-wedo dorsa with a diameter less than 450?
SELECT COUNT(diameter__km_) FROM table_name_60 WHERE longitude = "357.8e" AND year_named > 1985
CREATE TABLE table_name_60 (diameter__km_ VARCHAR, longitude VARCHAR, year_named VARCHAR)
What's the total diameter when longitude is 357.8e later than 1985?
SELECT SUM(year) FROM table_name_90 WHERE nominee = "lesli margherita"
CREATE TABLE table_name_90 (year INTEGER, nominee VARCHAR)
In what year was Lesli Margherita nominated?
SELECT nominee FROM table_name_18 WHERE category = "best theatre choreographer"
CREATE TABLE table_name_18 (nominee VARCHAR, category VARCHAR)
Who was nominated for Best Theatre Choreographer?
SELECT hometown FROM table_name_20 WHERE year = "fr" AND club = "brown's gymnastics"
CREATE TABLE table_name_20 (hometown VARCHAR, year VARCHAR, club VARCHAR)
What hometown was FR Year, and ha Brown's Gymnastics club?
SELECT year FROM table_name_60 WHERE name = "asi peko"
CREATE TABLE table_name_60 (year VARCHAR, name VARCHAR)
What year was Asi Peko?
SELECT height FROM table_name_96 WHERE club = "oakville gymnastics club"
CREATE TABLE table_name_96 (height VARCHAR, club VARCHAR)
What is the height for the Oakville Gymnastics Club?
SELECT ended FROM table_name_98 WHERE loan_club = "spartak moscow"
CREATE TABLE table_name_98 (ended VARCHAR, loan_club VARCHAR)
when was the loan ended when the loan club is spartak moscow?
SELECT start_source FROM table_name_42 WHERE loan_club = "fulham"
CREATE TABLE table_name_42 (start_source VARCHAR, loan_club VARCHAR)
What is the loan start source when the loan club is fulham?
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo"
CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
SELECT ended FROM table_name_37 WHERE country = "ghana"
CREATE TABLE table_name_37 (ended VARCHAR, country VARCHAR)
when was the loan ended when the country is ghana?
SELECT loan_club FROM table_name_28 WHERE start_source = "bbc sport" AND started = "9 february"
CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)
what is the loan club with the start source is bbc sport and started on 9 february?
SELECT start_source FROM table_name_47 WHERE started = "2 february"
CREATE TABLE table_name_47 (start_source VARCHAR, started VARCHAR)
what is the start source when started on 2 february?
SELECT MIN(finished) FROM table_name_70 WHERE post < 2
CREATE TABLE table_name_70 (finished INTEGER, post INTEGER)
What is the lowest Finished, when Post is less than 2?
SELECT owner FROM table_name_77 WHERE finished < 15 AND trainer = "steve asmussen" AND horse = "z fortune"
CREATE TABLE table_name_77 (owner VARCHAR, horse VARCHAR, finished VARCHAR, trainer VARCHAR)
What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?
SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano"
CREATE TABLE table_name_44 (time__behind VARCHAR, jockey VARCHAR)
What is the Time/ Behind, when Jockey is "Jose Lezcano"?
SELECT jockey FROM table_name_53 WHERE post = 12
CREATE TABLE table_name_53 (jockey VARCHAR, post VARCHAR)
What is Jockey, when Post is 12?
SELECT COUNT(post) FROM table_name_22 WHERE trainer = "steve asmussen" AND time__behind = "19 ½"
CREATE TABLE table_name_22 (post VARCHAR, trainer VARCHAR, time__behind VARCHAR)
What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
SELECT jockey FROM table_name_74 WHERE horse = "eight belles"
CREATE TABLE table_name_74 (jockey VARCHAR, horse VARCHAR)
What is Jockey, when Horse is "Eight Belles"?
SELECT team_captain FROM table_name_42 WHERE stadium = "regenboogstadion"
CREATE TABLE table_name_42 (team_captain VARCHAR, stadium VARCHAR)
Who is the team captain of Regenboogstadion?
SELECT current_manager FROM table_name_15 WHERE location = "tubize"
CREATE TABLE table_name_15 (current_manager VARCHAR, location VARCHAR)
Who is the current manager of the team located in tubize?
SELECT location FROM table_name_17 WHERE current_manager = "ariel jacobs"
CREATE TABLE table_name_17 (location VARCHAR, current_manager VARCHAR)
Where is the location of the team with a current manager of Ariel Jacobs?
SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR)
What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
SELECT time FROM table_name_79 WHERE race = "kentucky derby"
CREATE TABLE table_name_79 (time VARCHAR, race VARCHAR)
What was the time of the Kentucky Derby?
SELECT finish FROM table_name_32 WHERE race = "kentucky derby"
CREATE TABLE table_name_32 (finish VARCHAR, race VARCHAR)
What was the finish of the Kentucky Derby?
SELECT race FROM table_name_60 WHERE finish = "1st" AND track = "saratoga race course"
CREATE TABLE table_name_60 (race VARCHAR, finish VARCHAR, track VARCHAR)
Which race had a finish of 1st at Saratoga Race Course?
SELECT player FROM table_name_67 WHERE year = "1981"
CREATE TABLE table_name_67 (player VARCHAR, year VARCHAR)
Who was the player in 1981?
SELECT team FROM table_name_67 WHERE year = "1976"
CREATE TABLE table_name_67 (team VARCHAR, year VARCHAR)
What is the team for 1976?
SELECT opponent FROM table_name_75 WHERE date = "august 5"
CREATE TABLE table_name_75 (opponent VARCHAR, date VARCHAR)
What is the opponent for the date of august 5?
SELECT result FROM table_name_83 WHERE date = "august 23"
CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)
What is the result for the date of august 23?
SELECT result FROM table_name_27 WHERE opponent = "houston oilers"
CREATE TABLE table_name_27 (result VARCHAR, opponent VARCHAR)
When the opponent is houston oilers what is the result?
SELECT AVG(goals_against) FROM table_name_50 WHERE drawn > 9 AND lost > 15 AND position = 24 AND played < 46
CREATE TABLE table_name_50 (goals_against INTEGER, played VARCHAR, position VARCHAR, drawn VARCHAR, lost VARCHAR)
Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?
SELECT SUM(points_2) FROM table_name_35 WHERE drawn = 15 AND position > 20 AND goals_for < 45
CREATE TABLE table_name_35 (points_2 INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR)
Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?
SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = "matlock town" AND goals_against > 79
CREATE TABLE table_name_74 (goals_for INTEGER, goals_against VARCHAR, team VARCHAR, position VARCHAR, lost VARCHAR)
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
SELECT SUM(points_2) FROM table_name_64 WHERE goal_average_1 > 1.17 AND goals_against > 48 AND position > 6
CREATE TABLE table_name_64 (points_2 INTEGER, position VARCHAR, goal_average_1 VARCHAR, goals_against VARCHAR)
Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
SELECT 1986 FROM table_name_17 WHERE 1991 = "a" AND 1987 = "a"
CREATE TABLE table_name_17 (Id VARCHAR)
What is the 1986 value with A in 1991 and A in 1987?
SELECT 1995 FROM table_name_29 WHERE 1986 = "a" AND 1992 = "2r"
CREATE TABLE table_name_29 (Id VARCHAR)
What is the 1995 value with A in 1986 and 2r in 1992?
SELECT 1989 FROM table_name_95 WHERE 1990 = "f"
CREATE TABLE table_name_95 (Id VARCHAR)
What is the 1989 value with F in 1990?
SELECT 1987 FROM table_name_45 WHERE 1994 = "atp masters series"
CREATE TABLE table_name_45 (Id VARCHAR)
What is the 1987 value of the 1994 atp masters series?
SELECT MIN(round) FROM table_name_26 WHERE position = "ls"
CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
What is the lowest round that a pick had a position of ls?
SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230
CREATE TABLE table_name_10 (round INTEGER, position VARCHAR, overall VARCHAR)
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
SELECT venue FROM table_name_34 WHERE date = "march 28, 2008"
CREATE TABLE table_name_34 (venue VARCHAR, date VARCHAR)
WHAT IS THE VENUE ON MARCH 28, 2008?
SELECT COUNT(attendance) FROM table_name_65 WHERE date = "october 8"
CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)
How many were in Attendance on October 8?
SELECT location FROM table_name_73 WHERE date = "october 8"
CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
What is the Location of the Game on October 8?
SELECT nat FROM table_name_56 WHERE goals > 64
CREATE TABLE table_name_56 (nat VARCHAR, goals INTEGER)
What is the nationality for the player with over 64 goals?
SELECT score FROM table_name_84 WHERE visitor = "philadelphia"
CREATE TABLE table_name_84 (score VARCHAR, visitor VARCHAR)
What was the score of the game where Philadelphia was the visitor?
SELECT AVG(spectators) FROM table_name_60 WHERE round = "group h"
CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR)
What are the average spectators from the Group H Round?
SELECT manufacturer FROM table_name_5 WHERE rider = "stefan bradl"
CREATE TABLE table_name_5 (manufacturer VARCHAR, rider VARCHAR)
Can you tell me the Manufacturer that has the Rider of stefan bradl?
SELECT MAX(grid) FROM table_name_70 WHERE time = "+15.532" AND laps > 23
CREATE TABLE table_name_70 (grid INTEGER, time VARCHAR, laps VARCHAR)
Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?
SELECT SUM(grid) FROM table_name_7 WHERE time = "+6.355" AND laps > 23
CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)
Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?
SELECT time FROM table_name_63 WHERE location = "savannah, georgia , united states"
CREATE TABLE table_name_63 (time VARCHAR, location VARCHAR)
What is Time, when Location is "Savannah, Georgia , United States"?
SELECT COUNT(round) FROM table_name_53 WHERE time = "n/a" AND location = "alabama , united states" AND record = "1-2-0"
CREATE TABLE table_name_53 (round VARCHAR, record VARCHAR, time VARCHAR, location VARCHAR)
What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?
SELECT retitled_as_same FROM table_name_99 WHERE last_aired > 1982 AND show = "we got it made"
CREATE TABLE table_name_99 (retitled_as_same VARCHAR, last_aired VARCHAR, show VARCHAR)
Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
SELECT new_returning_same_network FROM table_name_29 WHERE last_aired = 1982
CREATE TABLE table_name_29 (new_returning_same_network VARCHAR, last_aired VARCHAR)
Which New/Returning/Same Network has a Last Aired of 1982?
SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters"
CREATE TABLE table_name_12 (new_returning_same_network VARCHAR, previous_network VARCHAR, show VARCHAR)
Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?
SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = "same" AND last_aired > 1984
CREATE TABLE table_name_8 (new_returning_same_network VARCHAR, retitled_as_same VARCHAR, last_aired VARCHAR)
Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?
SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration"
CREATE TABLE table_name_57 (last_aired VARCHAR, retitled_as_same VARCHAR)
Which Last Aired has a Retitled as/Same of classic concentration?
SELECT COUNT(round) FROM table_name_25 WHERE name = "anglia tv trophy"
CREATE TABLE table_name_25 (round VARCHAR, name VARCHAR)
How many rounds had a race name of anglia tv trophy?
SELECT circuit FROM table_name_63 WHERE winning_driver = "eliseo salazar" AND name = "international trophy"
CREATE TABLE table_name_63 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
SELECT circuit FROM table_name_62 WHERE winning_driver = "emilio de villota" AND name = "pace petroleum trophy"
CREATE TABLE table_name_62 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
What circuit did emilio de villota win on at the pace petroleum trophy?
SELECT to_par FROM table_name_22 WHERE country = "united states" AND place = "t6" AND score = 70 - 73 - 68 - 73 = 284
CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?
SELECT player FROM table_name_7 WHERE to_par = "+5" AND country = "australia"
CREATE TABLE table_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR)
Who is the player from Australia with a to par of +5?
SELECT MAX(money___) AS $__ FROM table_name_76 WHERE score = 69 - 71 - 71 - 73 = 284
CREATE TABLE table_name_76 (money___ INTEGER, score VARCHAR)
What is the highest amount of money a player with a score of 69-71-71-73=284 has?
SELECT time FROM table_name_52 WHERE round = 3 AND record = "9-3"
CREATE TABLE table_name_52 (time VARCHAR, round VARCHAR, record VARCHAR)
What is the time of the match with 3 rounds and a 9-3 record?
SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-2"
CREATE TABLE table_name_44 (method VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
What is the method of the match with a win res., 1 round, and a 3-2 record?
SELECT name FROM table_name_61 WHERE finish = "9th" AND occupation = "sports agent"
CREATE TABLE table_name_61 (name VARCHAR, finish VARCHAR, occupation VARCHAR)
Who was the sports agent who finished 9th?
SELECT MIN(score) FROM table_name_81 WHERE player = "wes ellis"
CREATE TABLE table_name_81 (score INTEGER, player VARCHAR)
What is the lowest score that wes ellis got?
SELECT score FROM table_name_64 WHERE to_par = "+1" AND country = "united states"
CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, country VARCHAR)
What was the score for the player from the United states that was +1 to par?
SELECT player FROM table_name_4 WHERE place = "t10"
CREATE TABLE table_name_4 (player VARCHAR, place VARCHAR)
Who was the player who placed t10?
SELECT to_par FROM table_name_93 WHERE country = "united states" AND score < 72 AND place = "t3" AND player = "ed furgol"
CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)
How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?
SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia"
CREATE TABLE table_name_36 (game INTEGER, team VARCHAR)
What game was played at Philadelphia?
SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR)
What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?
SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11
CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR)
What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?
SELECT AVG(round) FROM table_name_94 WHERE college = "syracuse" AND pick < 3
CREATE TABLE table_name_94 (round INTEGER, college VARCHAR, pick VARCHAR)
what is the round when the college is syracuse and the pick is less than 3?
SELECT position FROM table_name_51 WHERE pick > 2 AND overall > 28 AND college = "nebraska"
CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR)
what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska?
SELECT MAX(pick) FROM table_name_33 WHERE college = "arkansas" AND overall > 316
CREATE TABLE table_name_33 (pick INTEGER, college VARCHAR, overall VARCHAR)
what is the pick when the college is arkansas and the overall is more than 316?
SELECT MIN(overall) FROM table_name_92 WHERE pick < 2
CREATE TABLE table_name_92 (overall INTEGER, pick INTEGER)
what is the lowest overall when the pick is less than 2?
SELECT SUM(round) FROM table_name_68 WHERE college = "north carolina" AND overall > 124
CREATE TABLE table_name_68 (round INTEGER, college VARCHAR, overall VARCHAR)
what is the round when the college is north carolina and the overall is more than 124?
SELECT week FROM table_name_98 WHERE date = "october 28, 2001"
CREATE TABLE table_name_98 (week VARCHAR, date VARCHAR)
October 28, 2001 was what week of the season?
SELECT result FROM table_name_1 WHERE week = 11
CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR)
What was the result of week 11?
SELECT date FROM table_name_55 WHERE week > 16
CREATE TABLE table_name_55 (date VARCHAR, week INTEGER)
What was the date of a week larger than 16?
SELECT COUNT(week) FROM table_name_52 WHERE date = "november 25, 2001"
CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)
November 25, 2001 was what week of the season?
SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr"
CREATE TABLE table_name_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR)
Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
SELECT AVG(built) FROM table_name_74 WHERE builder = "brel crewe"
CREATE TABLE table_name_74 (built INTEGER, builder VARCHAR)
Which Built has a Builder of brel crewe?
SELECT railway FROM table_name_52 WHERE location = "shildon" AND objectnumber = "1978-7006"
CREATE TABLE table_name_52 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?
SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022"
CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698"
CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR)
Which Location has an ObjectNumber of 2005-7698?
SELECT club FROM table_name_28 WHERE years = "1995–1996"
CREATE TABLE table_name_28 (club VARCHAR, years VARCHAR)
What is the Club during the Years 1995–1996?
SELECT years FROM table_name_71 WHERE position = "mf"
CREATE TABLE table_name_71 (years VARCHAR, position VARCHAR)
In what Years was the Player in MF Position?
SELECT 2 AS nd_leg FROM table_name_72 WHERE team__number1 = "2007 uefa intertoto cup"
CREATE TABLE table_name_72 (team__number1 VARCHAR)
What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?
SELECT 2 AS nd_leg FROM table_name_20 WHERE team__number2 = "dinamo minsk"
CREATE TABLE table_name_20 (team__number2 VARCHAR)
What is the 2nd leg of dinamo minsk team #2?
SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup"
CREATE TABLE table_name_78 (team__number2 VARCHAR)
What is the 2nd leg of the second team in the 2007 uefa intertoto cup?
SELECT status FROM table_name_93 WHERE against = 10
CREATE TABLE table_name_93 (status VARCHAR, against VARCHAR)
What is the status of the 10 against?
SELECT opposing_team FROM table_name_76 WHERE status = "test match"
CREATE TABLE table_name_76 (opposing_team VARCHAR, status VARCHAR)
Who was the opposing team in the test match?
SELECT venue FROM table_name_63 WHERE date = "05/09/1973"
CREATE TABLE table_name_63 (venue VARCHAR, date VARCHAR)
Where was the 05/09/1973 venue?
SELECT AVG(overall) FROM table_name_82 WHERE position = "te" AND round > 5
CREATE TABLE table_name_82 (overall INTEGER, position VARCHAR, round VARCHAR)
Which Overall has a Position of te, and a Round larger than 5?
SELECT position FROM table_name_70 WHERE round > 14 AND overall < 419
CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, overall VARCHAR)
Which Position has a Round larger than 14, and an Overall smaller than 419?