answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT away_team FROM table_name_62 WHERE home_team = "melbourne" | CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) | Who was the away team at Melbourne's home game? |
SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval" | CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) | What was the away team score at Corio Oval? |
SELECT call_sign FROM table_name_37 WHERE tail_code = "oy" AND weapon_systems_officer = "capt charles b. debellevue" | CREATE TABLE table_name_37 (call_sign VARCHAR, tail_code VARCHAR, weapon_systems_officer VARCHAR) | Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue? |
SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = "capt charles b. debellevue" | CREATE TABLE table_name_29 (tail_code VARCHAR, weapon_systems_officer VARCHAR) | Which Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue? |
SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 01" | CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR) | Which Aircraft has the Call Sign Paula 01? |
SELECT call_sign FROM table_name_80 WHERE tail_code = "ed" | CREATE TABLE table_name_80 (call_sign VARCHAR, tail_code VARCHAR) | Which Call Sign that has Tail Code ed? |
SELECT aircraft FROM table_name_27 WHERE weapon_systems_officer = "capt charles b. debellevue" | CREATE TABLE table_name_27 (aircraft VARCHAR, weapon_systems_officer VARCHAR) | Which aircraft Weapon Systems Officer Capt Charles B. Debellevue belongs on? |
SELECT MIN(wins) FROM table_name_96 WHERE losses = 2 | CREATE TABLE table_name_96 (wins INTEGER, losses VARCHAR) | What is the lowest amount of wins of someone who has 2 losses? |
SELECT MAX(wins) FROM table_name_29 WHERE against > 1249 AND losses < 17 | CREATE TABLE table_name_29 (wins INTEGER, against VARCHAR, losses VARCHAR) | What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17? |
SELECT race_name FROM table_name_23 WHERE winning_driver = "stirling moss" AND circuit = "oulton park" | CREATE TABLE table_name_23 (race_name VARCHAR, winning_driver VARCHAR, circuit VARCHAR) | What is the name of race that has a winning driver of Stirling moss and a Circuit of oulton park? |
SELECT winning_driver FROM table_name_27 WHERE constructor = "brm" | CREATE TABLE table_name_27 (winning_driver VARCHAR, constructor VARCHAR) | Who is the winning driver that has a construction of brm? |
SELECT MAX(bronze) FROM table_name_15 WHERE rank = "12" | CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR) | What is the high bronze total for nations ranked 12? |
SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998" | CREATE TABLE table_name_23 (winning_score VARCHAR, date VARCHAR) | What was the winning score on May 3, 1998? |
SELECT role FROM table_name_26 WHERE registration = "s5-hpg s5-hpc" | CREATE TABLE table_name_26 (role VARCHAR, registration VARCHAR) | What is the role of the aircraft that has a registration of s5-hpg s5-hpc? |
SELECT origin FROM table_name_67 WHERE registration = "s5-hpb" | CREATE TABLE table_name_67 (origin VARCHAR, registration VARCHAR) | What is the country of origin of the aircraft with a registration s5-hpb? |
SELECT role FROM table_name_41 WHERE origin = "european union" | CREATE TABLE table_name_41 (role VARCHAR, origin VARCHAR) | What is the role of the aircraft that originates from the European Union? |
SELECT role FROM table_name_51 WHERE registration = "s5-hpb" | CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR) | What is the role of the aircraft that has a registration of s5-hpb? |
SELECT hometown FROM table_name_90 WHERE height = "6-10" | CREATE TABLE table_name_90 (hometown VARCHAR, height VARCHAR) | Which Hometown has a Height of 6-10? |
SELECT nba_draft FROM table_name_10 WHERE school = "bishop o'connell high school" | CREATE TABLE table_name_10 (nba_draft VARCHAR, school VARCHAR) | What is the NBA Draft for the School Bishop O'Connell High School? |
SELECT school FROM table_name_65 WHERE hometown = "winter park, fl" | CREATE TABLE table_name_65 (school VARCHAR, hometown VARCHAR) | Which School is located in Winter Park, FL (Hometown)? |
SELECT hometown FROM table_name_83 WHERE school = "bishop luers high school" | CREATE TABLE table_name_83 (hometown VARCHAR, school VARCHAR) | When the School is Bishop Luers High School, what is the Hometown? |
SELECT hometown FROM table_name_11 WHERE college = "villanova" | CREATE TABLE table_name_11 (hometown VARCHAR, college VARCHAR) | What is the Hometown for Villanova College? |
SELECT home FROM table_name_31 WHERE record = "18–18–1" | CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR) | Who was the home team at the game when the Thrashers had a record of 18–18–1? |
SELECT date FROM table_name_70 WHERE decision = "lehtonen" AND attendance > 17 OFFSET 731 | CREATE TABLE table_name_70 (date VARCHAR, decision VARCHAR, attendance VARCHAR) | What was the date of the game with a decision of Lehtonen and attended by more than 17,731 people? |
SELECT AVG(grid) FROM table_name_38 WHERE time_retired = "+1 lap" AND driver = "johnny herbert" | CREATE TABLE table_name_38 (grid INTEGER, time_retired VARCHAR, driver VARCHAR) | What is the average grid for johnny herbert with a Time/Retired of +1 lap? |
SELECT away_team FROM table_name_25 WHERE venue = "mcg" | CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) | Who was the away team at mcg? |
SELECT home_team FROM table_name_25 WHERE venue = "princes park" | CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR) | Who was the home team at princes park? |
SELECT object_type FROM table_name_32 WHERE constellation = "orion" AND ngc_number > 2174 AND declination___j2000__ = "°48′06″" | CREATE TABLE table_name_32 (object_type VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) | Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″? |
SELECT right_ascension___j2000__ FROM table_name_98 WHERE constellation = "mensa" AND ngc_number > 2171 | CREATE TABLE table_name_98 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) | Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171? |
SELECT MAX(ngc_number) FROM table_name_61 WHERE object_type = "open cluster" AND right_ascension___j2000__ = "06h01m06s" | CREATE TABLE table_name_61 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) | Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s? |
SELECT object_type FROM table_name_37 WHERE ngc_number = 2171 | CREATE TABLE table_name_37 (object_type VARCHAR, ngc_number VARCHAR) | Which Object type has an NGC number of 2171? |
SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889" | CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR) | What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889? |
SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research" | CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR) | What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research? |
SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat" | CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR) | What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site? |
SELECT tournament FROM table_name_29 WHERE winning_score = "2 and 1" | CREATE TABLE table_name_29 (tournament VARCHAR, winning_score VARCHAR) | what is the tournament when the winning score is 2 and 1? |
SELECT margin_of_victory FROM table_name_30 WHERE tournament = "travelers championship" | CREATE TABLE table_name_30 (margin_of_victory VARCHAR, tournament VARCHAR) | what is the margin of victory for the tournament travelers championship? |
SELECT margin_of_victory FROM table_name_69 WHERE tournament = "waste management phoenix open" | CREATE TABLE table_name_69 (margin_of_victory VARCHAR, tournament VARCHAR) | what is the margin of victory for the waste management phoenix open tournament? |
SELECT runner_up FROM table_name_26 WHERE winning_score = −16(68 - 70 - 65 - 65 = 268) | CREATE TABLE table_name_26 (runner_up VARCHAR, winning_score VARCHAR) | who is the runner-up when the winning score is −16 (68-70-65-65=268)? |
SELECT game_4 FROM table_name_8 WHERE position = "wing" AND game_1 = "michael o'connor" | CREATE TABLE table_name_8 (game_4 VARCHAR, position VARCHAR, game_1 VARCHAR) | For which Game 4 did Michael O'Connor play wing position? |
SELECT game_4 FROM table_name_41 WHERE game_3 = "david boyle" | CREATE TABLE table_name_41 (game_4 VARCHAR, game_3 VARCHAR) | For which Game 4, did David Boyle play in Game 3? |
SELECT game_1 FROM table_name_88 WHERE position = "fullback" | CREATE TABLE table_name_88 (game_1 VARCHAR, position VARCHAR) | Which Game 1 has a fullback? |
SELECT game_4 FROM table_name_27 WHERE game_1 = "michael o'connor" | CREATE TABLE table_name_27 (game_4 VARCHAR, game_1 VARCHAR) | For which Game 4 did Michael O'Connor play during Game 1? |
SELECT position FROM table_name_20 WHERE game_2 = "andrew farrar" | CREATE TABLE table_name_20 (position VARCHAR, game_2 VARCHAR) | During Game 2, which position did Andrew Farrar play? |
SELECT game_4 FROM table_name_52 WHERE game_2 = "brett kenny" | CREATE TABLE table_name_52 (game_4 VARCHAR, game_2 VARCHAR) | During which Game 4, did Brett Kenny play Game 2? |
SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891 | CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR) | Where was the former private member that was founded in 1891 and left in 1975? |
SELECT SUM(places) FROM table_name_38 WHERE nation = "soviet union" AND rank > 11 | CREATE TABLE table_name_38 (places INTEGER, nation VARCHAR, rank VARCHAR) | what is the places when for the soviet union with a rank more than 11? |
SELECT name FROM table_name_4 WHERE nation = "soviet union" AND points = 185 | CREATE TABLE table_name_4 (name VARCHAR, nation VARCHAR, points VARCHAR) | what is the name when the nation is soviet union and the points is 185? |
SELECT constructor FROM table_name_22 WHERE laps < 3 AND grid = 15 | CREATE TABLE table_name_22 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | What constructor has less than 3 laps and grid 15? |
SELECT home_team FROM table_name_25 WHERE away_team = "collingwood" | CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR) | Which Home team has an Away team of collingwood? |
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14 | CREATE TABLE table_name_3 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR) | Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4 |
SELECT SUM(against) FROM table_name_92 WHERE byes < 0 | CREATE TABLE table_name_92 (against INTEGER, byes INTEGER) | Name the sum against for byes less than 0 |
SELECT SUM(draws) FROM table_name_6 WHERE wins = 16 AND losses < 2 | CREATE TABLE table_name_6 (draws INTEGER, wins VARCHAR, losses VARCHAR) | Name the sum of draws for losses less than 2 and wins of 16 |
SELECT MIN(laps) FROM table_name_48 WHERE finish = "17" | CREATE TABLE table_name_48 (laps INTEGER, finish VARCHAR) | How few laps were finished in 17? |
SELECT qual FROM table_name_55 WHERE year = "1966" | CREATE TABLE table_name_55 (qual VARCHAR, year VARCHAR) | What is 1966's Qual rating? |
SELECT start FROM table_name_78 WHERE finish = "10" | CREATE TABLE table_name_78 (start VARCHAR, finish VARCHAR) | What race has a finish time of 10? |
SELECT MIN(laps) FROM table_name_85 WHERE rank = "30" | CREATE TABLE table_name_85 (laps INTEGER, rank VARCHAR) | What is the lowest lap with a rank of 30? |
SELECT finish FROM table_name_9 WHERE start = "32" | CREATE TABLE table_name_9 (finish VARCHAR, start VARCHAR) | What finish time started at 32? |
SELECT MIN(rank) FROM table_name_59 WHERE country = "united states" AND wins < 3 | CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR) | Who is the lowest ranked player from the United States that has less than 3 Wins? |
SELECT score FROM table_name_93 WHERE visitor = "edmonton" | CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR) | What is the score of the game that had a visiting team of Edmonton? |
SELECT record FROM table_name_59 WHERE home = "colorado" AND visitor = "winnipeg" | CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR, visitor VARCHAR) | What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg? |
SELECT visitor FROM table_name_85 WHERE date = "february 15" | CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR) | What team was visiting on February 15? |
SELECT theme FROM table_name_22 WHERE issue_price = "$489.95" AND year > 2005 | CREATE TABLE table_name_22 (theme VARCHAR, issue_price VARCHAR, year VARCHAR) | What theme had an issue price of $489.95 after 2005? |
SELECT SUM(year) FROM table_name_61 WHERE theme = "timber trade" | CREATE TABLE table_name_61 (year INTEGER, theme VARCHAR) | What year was the timber trade? |
SELECT COUNT(year) FROM table_name_9 WHERE issue_price = "$697.95" | CREATE TABLE table_name_9 (year VARCHAR, issue_price VARCHAR) | What year has an issue price of $697.95? |
SELECT engine FROM table_name_66 WHERE driver = "jean-pierre jarier" AND chassis = "pc4" | CREATE TABLE table_name_66 (engine VARCHAR, driver VARCHAR, chassis VARCHAR) | What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4? |
SELECT season FROM table_name_87 WHERE winners = "dundee united" | CREATE TABLE table_name_87 (season VARCHAR, winners VARCHAR) | What Season had Dundee United as a Winner? |
SELECT score FROM table_name_17 WHERE venue = "hampden park" AND runners_up = "rangers" AND winners = "hibernian" | CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR) | What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park? |
SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium" | CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR) | What Runners-up have a Venue in Broadwood Stadium? |
SELECT completed FROM table_name_91 WHERE pennant_number = "h63" | CREATE TABLE table_name_91 (completed VARCHAR, pennant_number VARCHAR) | When is the completed date of the destroyer with a pennant number h63? |
SELECT completed FROM table_name_50 WHERE pennant_number = "h59" | CREATE TABLE table_name_50 (completed VARCHAR, pennant_number VARCHAR) | When is the completed date of the destroyer with a pennant number h59? |
SELECT ship FROM table_name_89 WHERE pennant_number = "h05" | CREATE TABLE table_name_89 (ship VARCHAR, pennant_number VARCHAR) | What ship has a pennant number h05? |
SELECT ship FROM table_name_5 WHERE pennant_number = "h05" | CREATE TABLE table_name_5 (ship VARCHAR, pennant_number VARCHAR) | What ship has a pennant number h05? |
SELECT launched FROM table_name_13 WHERE completed = "25 february 1936" | CREATE TABLE table_name_13 (launched VARCHAR, completed VARCHAR) | What is the launched date of the destroyer completed 25 February 1936? |
SELECT launched FROM table_name_28 WHERE completed = "1 july 1936" | CREATE TABLE table_name_28 (launched VARCHAR, completed VARCHAR) | What is the launched date of the destroyer completed 1 July 1936? |
SELECT home_team AS score FROM table_name_65 WHERE venue = "western oval" | CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) | What was the home team score when the VFL played at Western Oval? |
SELECT home_team FROM table_name_26 WHERE away_team = "north melbourne" | CREATE TABLE table_name_26 (home_team VARCHAR, away_team VARCHAR) | Who was North Melbourne's home opponent? |
SELECT home_team AS score FROM table_name_86 WHERE venue = "princes park" | CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR) | What was the home team score when the VFL played at Princes Park? |
SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418 | CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR) | Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418? |
SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63 | CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR) | Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63? |
SELECT name FROM table_name_63 WHERE height__m_ = 2980 | CREATE TABLE table_name_63 (name VARCHAR, height__m_ VARCHAR) | Which Name has a Height (m) of 2980? |
SELECT MIN(ave__no) FROM table_name_28 WHERE name = "livigno alps" | CREATE TABLE table_name_28 (ave__no INTEGER, name VARCHAR) | Which AVE-No has a Name of livigno alps? |
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button" | CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR) | Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari? |
SELECT pole_position FROM table_name_36 WHERE winning_driver = "michael schumacher" AND grand_prix = "san marino grand prix" | CREATE TABLE table_name_36 (pole_position VARCHAR, winning_driver VARCHAR, grand_prix VARCHAR) | What was the pole position at the san marino grand prix with michael schumacher as winning driver? |
SELECT grand_prix FROM table_name_23 WHERE pole_position = "kimi räikkönen" | CREATE TABLE table_name_23 (grand_prix VARCHAR, pole_position VARCHAR) | Name the Grand Prix for pole position of kimi räikkönen |
SELECT category FROM table_name_8 WHERE established = 1990 | CREATE TABLE table_name_8 (category VARCHAR, established VARCHAR) | Which is the category of the group was establishe in 1990? |
SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic" | CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR) | What is the category of the touchdown atlantic? |
SELECT result FROM table_name_85 WHERE date = "13 october 2004" | CREATE TABLE table_name_85 (result VARCHAR, date VARCHAR) | Name the result for 13 october 2004 |
SELECT date FROM table_name_71 WHERE competition = "friendly" AND venue = "rheinpark stadion, vaduz" | CREATE TABLE table_name_71 (date VARCHAR, competition VARCHAR, venue VARCHAR) | Name the date that has a friendly competition at rheinpark stadion, vaduz |
SELECT constructor FROM table_name_67 WHERE circuit = "oulton park" AND winning_driver = "john surtees" | CREATE TABLE table_name_67 (constructor VARCHAR, circuit VARCHAR, winning_driver VARCHAR) | Who is the constructor of John Surtees's Oulton Park circuit car? |
SELECT race_name FROM table_name_90 WHERE constructor = "matra" | CREATE TABLE table_name_90 (race_name VARCHAR, constructor VARCHAR) | Which race was Matra the constructor? |
SELECT race_name FROM table_name_74 WHERE circuit = "hockenheim" | CREATE TABLE table_name_74 (race_name VARCHAR, circuit VARCHAR) | Which race was at Hockenheim circuit? |
SELECT winning_driver FROM table_name_22 WHERE constructor = "brm" AND race_name = "xii spring trophy" | CREATE TABLE table_name_22 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR) | Who was the winner of the XII Spring Trophy race with BRM as the constructor? |
SELECT away_team FROM table_name_69 WHERE venue = "victoria park" | CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR) | What is the away team at victoria park? |
SELECT away_team FROM table_name_38 WHERE venue = "junction oval" | CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) | Which away team is from junction oval? |
SELECT term_in_office FROM table_name_42 WHERE member = "hon peter morris" | CREATE TABLE table_name_42 (term_in_office VARCHAR, member VARCHAR) | What was the term of Hon Peter Morris? |
SELECT party FROM table_name_34 WHERE electorate = "lindsay" | CREATE TABLE table_name_34 (party VARCHAR, electorate VARCHAR) | What party is the member that has an electorate of Lindsay? |
SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya" | CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR) | What is the low lap total for the under 4 grid car driven by juan pablo montoya? |
SELECT driver FROM table_name_43 WHERE grid = 11 | CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR) | Who drove the grid 11 car? |
SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69 | CREATE TABLE table_name_34 (grid VARCHAR, laps INTEGER) | What is the grid total for cars with over 69 laps? |
SELECT time_retired FROM table_name_80 WHERE laps = 22 AND grid = 29 | CREATE TABLE table_name_80 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | What is the time/retired with 22 laps and a grid of 29? |
Subsets and Splits