answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(wins) FROM table_name_5 WHERE rank < 3 AND events > 10
CREATE TABLE table_name_5 (wins INTEGER, rank VARCHAR, events VARCHAR)
Who has the least wins when ranked above 3 with over 10 events?
SELECT MIN(wins) FROM table_name_62 WHERE events = 8 AND player = "billy casper" AND earnings___$__ < 71 OFFSET 979
CREATE TABLE table_name_62 (wins INTEGER, earnings___$__ VARCHAR, events VARCHAR, player VARCHAR)
How many wins for billy casper over 8 events and uner $71,979 in earnings?
SELECT MIN(rank) FROM table_name_11 WHERE earnings___$__ < 71 OFFSET 979
CREATE TABLE table_name_11 (rank INTEGER, earnings___$__ INTEGER)
What is the lowest rank for a player earning $71,979?
SELECT gdp___bn__ FROM table_name_67 WHERE capital = "ioannina"
CREATE TABLE table_name_67 (gdp___bn__ VARCHAR, capital VARCHAR)
What was the Gdp (bn) for the region that has ioannina as its Capital?
SELECT region FROM table_name_65 WHERE area__km²_ = "9,451"
CREATE TABLE table_name_65 (region VARCHAR, area__km²_ VARCHAR)
Which Region has an Area of 9,451km²?
SELECT capital FROM table_name_73 WHERE population = "308,610"
CREATE TABLE table_name_73 (capital VARCHAR, population VARCHAR)
Which capital has a population of 308,610?
SELECT region FROM table_name_70 WHERE area__km²_ = "14,037"
CREATE TABLE table_name_70 (region VARCHAR, area__km²_ VARCHAR)
Which Region has an area of 14,037km²?
SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"
CREATE TABLE table_name_74 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)
What is the GDP for the region with an area of 7,263 sq. mi.?
SELECT population FROM table_name_43 WHERE area__sq_mi_ = "6,004"
CREATE TABLE table_name_43 (population VARCHAR, area__sq_mi_ VARCHAR)
What is the population for the region with an area of 6,004 sq. Mi.?
SELECT MIN(episode__number) FROM table_name_42 WHERE airdate = "october 31, 2001"
CREATE TABLE table_name_42 (episode__number INTEGER, airdate VARCHAR)
What is the lowest episode # with an air date of October 31, 2001?
SELECT AVG(episode__number) FROM table_name_65 WHERE location = "tanzania" AND _number_in_season > 5
CREATE TABLE table_name_65 (episode__number INTEGER, location VARCHAR, _number_in_season VARCHAR)
What is the average episode # located in Tanzania and whose # in season is larger than 5?
SELECT AVG(episode__number) FROM table_name_75 WHERE episode_name = "the origin of donnie (part 1)"
CREATE TABLE table_name_75 (episode__number INTEGER, episode_name VARCHAR)
What is the average episode # with a name of the origin of Donnie (part 1)?
SELECT airdate FROM table_name_50 WHERE _number_in_season = 5
CREATE TABLE table_name_50 (airdate VARCHAR, _number_in_season VARCHAR)
Which air date has 5 for # in season?
SELECT venue FROM table_name_60 WHERE home_team = "melbourne"
CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)
What venue is home for the Melbourne team?
SELECT license FROM table_name_83 WHERE system = "amiga" AND name = "pocketuae"
CREATE TABLE table_name_83 (license VARCHAR, system VARCHAR, name VARCHAR)
Which License has a System of amiga, and a Name of pocketuae?
SELECT name FROM table_name_46 WHERE license = "gpl" AND actual_version = "0.8.29wip4"
CREATE TABLE table_name_46 (name VARCHAR, license VARCHAR, actual_version VARCHAR)
What name has a License of gpl, and an Actual version of 0.8.29wip4?
SELECT platform FROM table_name_38 WHERE actual_version = "0.147"
CREATE TABLE table_name_38 (platform VARCHAR, actual_version VARCHAR)
Which platform has an Actual version of 0.147?
SELECT name FROM table_name_47 WHERE license = "gpl" AND platform = "windows"
CREATE TABLE table_name_47 (name VARCHAR, license VARCHAR, platform VARCHAR)
Which name has a License of gpl, and a Platform of windows?
SELECT system FROM table_name_80 WHERE name = "mess"
CREATE TABLE table_name_80 (system VARCHAR, name VARCHAR)
Which system is named mess?
SELECT platform FROM table_name_96 WHERE actual_version = "0.8.29"
CREATE TABLE table_name_96 (platform VARCHAR, actual_version VARCHAR)
Which Platform has an Actual version of 0.8.29?
SELECT MIN(year) FROM table_name_46 WHERE category = "best supporting actress" AND award = "asian film awards"
CREATE TABLE table_name_46 (year INTEGER, category VARCHAR, award VARCHAR)
What's the earliest year that had a category of best supporting actress at the asian film awards?
SELECT award FROM table_name_22 WHERE category = "best supporting actress"
CREATE TABLE table_name_22 (award VARCHAR, category VARCHAR)
Which award show had the category of best supporting actress?
SELECT result FROM table_name_61 WHERE nominated_work = "white valentine"
CREATE TABLE table_name_61 (result VARCHAR, nominated_work VARCHAR)
Did the nominated work of white valentine win an award?
SELECT category FROM table_name_9 WHERE year = 2013 AND nominated_work = "the berlin file"
CREATE TABLE table_name_9 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)
Which category was the berlin file up to win in 2013?
SELECT final_position___round FROM table_name_88 WHERE competition = "uefa cup"
CREATE TABLE table_name_88 (final_position___round VARCHAR, competition VARCHAR)
What is the final position/round of the UEFA cup?
SELECT last_match FROM table_name_60 WHERE final_position___round = "group stage"
CREATE TABLE table_name_60 (last_match VARCHAR, final_position___round VARCHAR)
When the final position/round is group stage, when is the last match?
SELECT last_year FROM table_name_65 WHERE first_year = "1937" AND publisher = "dc comics"
CREATE TABLE table_name_65 (last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
When did the DC Comics title that debuted in 1937 end?
SELECT publisher FROM table_name_13 WHERE title = "weird war tales"
CREATE TABLE table_name_13 (publisher VARCHAR, title VARCHAR)
Who published Weird War Tales?
SELECT last_year FROM table_name_75 WHERE first_year = "1982"
CREATE TABLE table_name_75 (last_year VARCHAR, first_year VARCHAR)
When did the comic which came out in 1982 end?
SELECT title FROM table_name_61 WHERE first_year = "1950" AND publisher = "ec comics" AND last_year = "1953"
CREATE TABLE table_name_61 (title VARCHAR, last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
Which EC Comics title ran from 1950 to 1953?
SELECT first_year FROM table_name_41 WHERE title = "popgun"
CREATE TABLE table_name_41 (first_year VARCHAR, title VARCHAR)
What is the first year for Popgun?
SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"
CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR)
What's the region for an item on November 10, 2007 that's a cd?
SELECT catalog FROM table_name_97 WHERE label = "columbia" AND region = "united states" AND format = "cd/dvd"
CREATE TABLE table_name_97 (catalog VARCHAR, format VARCHAR, label VARCHAR, region VARCHAR)
What's the catalog number for a record from columbia formatted in a cd/dvd that's from the United States region?
SELECT catalog FROM table_name_1 WHERE label = "columbia" AND date = "december 11, 2007" AND region = "canada"
CREATE TABLE table_name_1 (catalog VARCHAR, region VARCHAR, label VARCHAR, date VARCHAR)
What's the catalog number for a December 11, 2007 record from columbia formatted in a that's from Canada?
SELECT SUM(crowd) FROM table_name_84 WHERE venue = "princes park"
CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR)
What is the average crowd size at Princes Park?
SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = "n/a" AND chassis = "005" AND driver = "takuma sato"
CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, free_practice_driver_s_ VARCHAR, chassis VARCHAR)
who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato?
SELECT rounds FROM table_name_57 WHERE entrant = "scuderia ferrari marlboro"
CREATE TABLE table_name_57 (rounds VARCHAR, entrant VARCHAR)
what is the rounds when the entrant is scuderia ferrari marlboro?
SELECT chassis FROM table_name_3 WHERE entrant = "mild seven renault f1 team" AND driver = "jarno trulli"
CREATE TABLE table_name_3 (chassis VARCHAR, entrant VARCHAR, driver VARCHAR)
what is the chassis when the entrant is mild seven renault f1 team and the driver is jarno trulli?
SELECT engine_† FROM table_name_34 WHERE tyre = "m" AND driver = "fernando alonso"
CREATE TABLE table_name_34 (engine_† VARCHAR, tyre VARCHAR, driver VARCHAR)
what is the engine when the tyre is m and the driver is fernando alonso?
SELECT constructor FROM table_name_41 WHERE driver = "juan pablo montoya"
CREATE TABLE table_name_41 (constructor VARCHAR, driver VARCHAR)
who is the constructor when the driver is juan pablo montoya?
SELECT COUNT(attendance) FROM table_name_39 WHERE record = "86-56"
CREATE TABLE table_name_39 (attendance VARCHAR, record VARCHAR)
How many people attended the game with a record of 86-56
SELECT date FROM table_name_31 WHERE record = "90-60"
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR)
Name the date that had a record of 90-60
SELECT MAX(sinclair_total) FROM table_name_5 WHERE rank = 3 AND world_record__kg_ < 217
CREATE TABLE table_name_5 (sinclair_total INTEGER, rank VARCHAR, world_record__kg_ VARCHAR)
What was the highest Sinclair Total that had a rank of 3, but a World Record smaller than 217?
SELECT venue FROM table_name_95 WHERE away_team = "collingwood"
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
What is the name of the venue that they away team Collingwood played at?
SELECT date FROM table_name_54 WHERE away_team = "carlton"
CREATE TABLE table_name_54 (date VARCHAR, away_team VARCHAR)
What date did Carlton play as the away team?
SELECT home_team AS score FROM table_name_76 WHERE venue = "windy hill"
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
What was the home team's score at Windy Hill?
SELECT MIN(grid) FROM table_name_48 WHERE laps < 17 AND constructor = "sauber - petronas"
CREATE TABLE table_name_48 (grid INTEGER, laps VARCHAR, constructor VARCHAR)
What is the lowest grid value with fewer than 17 laps and constructor Sauber - Petronas?
SELECT time_retired FROM table_name_79 WHERE laps > 51 AND driver = "cristiano da matta"
CREATE TABLE table_name_79 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
Which Time/Retired entry has greater than 51 laps and driver Cristiano da Matta?
SELECT MAX(ties) FROM table_name_57 WHERE team = "montreal victorias" AND goals_against < 24
CREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR)
How many ties did the Montreal Victorias have with a GA of less than 24?
SELECT COUNT(year) FROM table_name_28 WHERE record = "3:40.8"
CREATE TABLE table_name_28 (year VARCHAR, record VARCHAR)
How many years was the record 3:40.8?
SELECT event FROM table_name_79 WHERE year < 1964 AND athlete = "lászló tábori gunnar nielsen"
CREATE TABLE table_name_79 (event VARCHAR, year VARCHAR, athlete VARCHAR)
What event is before 1964 and has an athlete of lászló tábori gunnar nielsen?
SELECT leading_scorer FROM table_name_27 WHERE home = "kings"
CREATE TABLE table_name_27 (leading_scorer VARCHAR, home VARCHAR)
Who is the leading scorer of the game where the Kings is the home team?
SELECT visitor FROM table_name_19 WHERE date = "march 2, 2008"
CREATE TABLE table_name_19 (visitor VARCHAR, date VARCHAR)
Who is the visitor team of the game on March 2, 2008?
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "lakers"
CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR)
What is the attendance total of the game with the Lakers as the home team?
SELECT week FROM table_name_89 WHERE attendance = "39,056"
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
Which week had 39,056 people in attendance?
SELECT kickoff_[a_] FROM table_name_25 WHERE week = "3"
CREATE TABLE table_name_25 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
What is the kickoff time for week 3?
SELECT kickoff_[a_] FROM table_name_12 WHERE game_site = "hubert h. humphrey metrodome"
CREATE TABLE table_name_12 (kickoff_ VARCHAR, a_ VARCHAR, game_site VARCHAR)
What is the kickoff time for the Hubert H. Humphrey Metrodome?
SELECT opponent FROM table_name_10 WHERE date = "september 13, 1992"
CREATE TABLE table_name_10 (opponent VARCHAR, date VARCHAR)
Who was the opponent on September 13, 1992?
SELECT result FROM table_name_53 WHERE date = "november 1, 1992"
CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)
What is the result on November 1, 1992?
SELECT away_team AS score FROM table_name_84 WHERE home_team = "melbourne"
CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR)
What was the away score when the home team was Melbourne?
SELECT away_team FROM table_name_72 WHERE home_team = "collingwood"
CREATE TABLE table_name_72 (away_team VARCHAR, home_team VARCHAR)
Who played Collingwood?
SELECT SUM(crowd) FROM table_name_78 WHERE home_team = "essendon"
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
How big was the crowd for Essendon?
SELECT home_team FROM table_name_5 WHERE away_team = "north melbourne"
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
Which team played against North Melbourne as the home team?
SELECT home_team FROM table_name_40 WHERE venue = "punt road oval"
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
Which home team plays at Punt Road Oval?
SELECT home_team FROM table_name_75 WHERE venue = "punt road oval"
CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR)
Which team plays at Punt Road Oval?
SELECT away_team AS score FROM table_name_58 WHERE venue = "corio oval"
CREATE TABLE table_name_58 (away_team VARCHAR, venue VARCHAR)
What did the away team score at corio oval?
SELECT opponent FROM table_name_54 WHERE attendance = "65,537"
CREATE TABLE table_name_54 (opponent VARCHAR, attendance VARCHAR)
Who did the cowboys play when 65,537 attended?
SELECT tournament FROM table_name_13 WHERE opponents = "antonia xenia tout nataša zorić"
CREATE TABLE table_name_13 (tournament VARCHAR, opponents VARCHAR)
What is the name of the tournament when antonia xenia tout nataša zorić was the opponenet?
SELECT date FROM table_name_33 WHERE opponents = "georgie stoop emily webley-smith"
CREATE TABLE table_name_33 (date VARCHAR, opponents VARCHAR)
What date was georgie stoop emily webley-smith the opponent?
SELECT surface FROM table_name_44 WHERE opponents = "iryna bremond valeria savinykh"
CREATE TABLE table_name_44 (surface VARCHAR, opponents VARCHAR)
What is the surface of the match when the opponent was iryna bremond valeria savinykh?
SELECT opponents FROM table_name_19 WHERE tournament = "sutton"
CREATE TABLE table_name_19 (opponents VARCHAR, tournament VARCHAR)
What is the name of the opponent for the Sutton tournament?
SELECT opponents FROM table_name_15 WHERE partner = "anastasia pivovarova"
CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR)
What is the name of the opponent when anastasia pivovarova was the partner?
SELECT home_team AS score FROM table_name_53 WHERE home_team = "south melbourne"
CREATE TABLE table_name_53 (home_team VARCHAR)
What is south melbourne's home side score?
SELECT rounds FROM table_name_98 WHERE entrant = "david brown corporation" AND driver = "roy salvadori"
CREATE TABLE table_name_98 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
What rounds did Roy Salvadori drive for David Brown Corporation?
SELECT result FROM table_name_17 WHERE year > 2007
CREATE TABLE table_name_17 (result VARCHAR, year INTEGER)
What are the results for years after 2007?
SELECT character FROM table_name_1 WHERE result = "won" AND year > 2003
CREATE TABLE table_name_1 (character VARCHAR, result VARCHAR, year VARCHAR)
Which characters after 2003 won?
SELECT category FROM table_name_54 WHERE for_the_show = "kasautii zindagii kay" AND year = 2006
CREATE TABLE table_name_54 (category VARCHAR, for_the_show VARCHAR, year VARCHAR)
For 2006 what category has the Show of kasautii zindagii kay?
SELECT character FROM table_name_43 WHERE year = 2005
CREATE TABLE table_name_43 (character VARCHAR, year VARCHAR)
What is the character for 2005?
SELECT category FROM table_name_21 WHERE year < 2012
CREATE TABLE table_name_21 (category VARCHAR, year INTEGER)
What is a category before 2012?
SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472
CREATE TABLE table_name_74 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, live_births VARCHAR)
What is natural change with a crude death rate of 8.7 and less than 472 live births?
SELECT owner_s_ FROM table_name_34 WHERE description = "operational"
CREATE TABLE table_name_34 (owner_s_ VARCHAR, description VARCHAR)
What owner or owners have an operational description?
SELECT date FROM table_name_51 WHERE livery = "operational"
CREATE TABLE table_name_51 (date VARCHAR, livery VARCHAR)
What is the date for the Operational Livery?
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs"
CREATE TABLE table_name_62 (date VARCHAR, description VARCHAR)
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
Who is the home team that played at MCG?
SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval"
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
What is the size of the smallest crowd that watched a game at Arden Street Oval?
SELECT away_team AS score FROM table_name_21 WHERE home_team = "hawthorn"
CREATE TABLE table_name_21 (away_team VARCHAR, home_team VARCHAR)
What is the score of the away team who played home team Hawthorn?
SELECT away_team FROM table_name_67 WHERE home_team = "footscray"
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
Who is the away team that played home team Footscray?
SELECT COUNT(crowd) FROM table_name_44 WHERE away_team = "fitzroy"
CREATE TABLE table_name_44 (crowd VARCHAR, away_team VARCHAR)
How many people attended the game where Fitzroy was the away team?
SELECT ngc_number FROM table_name_16 WHERE constellation = "leo" AND object_type = "irregular galaxy"
CREATE TABLE table_name_16 (ngc_number VARCHAR, constellation VARCHAR, object_type VARCHAR)
I want the NGC number for leo of irregular galaxy
SELECT MAX(ngc_number) FROM table_name_57 WHERE right_ascension___j2000__ = "09h40m28.5s"
CREATE TABLE table_name_57 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
Tell me the highest NGC number for right ascension of 09h40m28.5s
SELECT constellation FROM table_name_37 WHERE object_type = "open cluster"
CREATE TABLE table_name_37 (constellation VARCHAR, object_type VARCHAR)
What is the constellation for open cluster?
SELECT event FROM table_name_75 WHERE athlete = "tatyana lebedeva"
CREATE TABLE table_name_75 (event VARCHAR, athlete VARCHAR)
Which event was Tatyana Lebedeva in?
SELECT event FROM table_name_25 WHERE athlete = "fatima whitbread trine hattestad"
CREATE TABLE table_name_25 (event VARCHAR, athlete VARCHAR)
What event was Fatima Whitbread Trine Hattestad in?
SELECT record FROM table_name_80 WHERE athlete = "milcah chemos"
CREATE TABLE table_name_80 (record VARCHAR, athlete VARCHAR)
What is Milcah Chemos' record?
SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m"
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR)
What is the record for the 400 m event on 4 september 2009?
SELECT event FROM table_name_14 WHERE date = "26 august 2005"
CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR)
What event was on 26 August 2005?
SELECT date FROM table_name_40 WHERE nationality = "bulgaria" AND event = "discus throw"
CREATE TABLE table_name_40 (date VARCHAR, nationality VARCHAR, event VARCHAR)
What was the date of the discus throw for Bulgaria?
SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena"
CREATE TABLE table_name_50 (date VARCHAR, ground VARCHAR, opponent VARCHAR)
What is the date ground A and Cartagena as an opponent?
SELECT ground FROM table_name_16 WHERE match < 2
CREATE TABLE table_name_16 (ground VARCHAR, match INTEGER)
What ground has a match smaller than 2?
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7
CREATE TABLE table_name_53 (score1 VARCHAR, competition_or_tour VARCHAR, match VARCHAR)
What is the score of the competition of friendly, at match 7?