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