answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT driver FROM table_name_18 WHERE grid = "18"
Who is the driver when the grid is 18?
CREATE TABLE table_name_18 (driver VARCHAR, grid VARCHAR)
SELECT 2005 FROM table_name_52 WHERE 2007 = "grand slam tournaments"
What is the 2005 that has a grand slam tournaments in 2007?
CREATE TABLE table_name_52 (Id VARCHAR)
SELECT club FROM table_name_40 WHERE venue = "champion window field"
What club team plays at the champion window field?
CREATE TABLE table_name_40 (club VARCHAR, venue VARCHAR)
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10"
who is the the pole position with date being august 10
CREATE TABLE table_14638077_2 (pole_position VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_38 WHERE team = "oklahoma city"
What is High Assists, when Team is "Oklahoma City"?
CREATE TABLE table_name_38 (high_assists VARCHAR, team VARCHAR)
SELECT state FROM table_name_33 WHERE peak_population__year_ = "134995 (1950)"
what is the state when the peak population (year) is 134995 (1950)?
CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR)
SELECT no_8 FROM table_name_76 WHERE no_10 = "hunter"
What is No. 8, when No. 10 is Hunter?
CREATE TABLE table_name_76 (no_8 VARCHAR, no_10 VARCHAR)
SELECT AVG(silver) FROM table_name_89 WHERE total < 3 AND rank = 6 AND bronze > 1
How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?
CREATE TABLE table_name_89 (silver INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT msdn_integration FROM table_name_12 WHERE intellitrace = "yes"
Which MSDN integration has a IntelliTrace of yes?
CREATE TABLE table_name_12 (msdn_integration VARCHAR, intellitrace VARCHAR)
SELECT match_played FROM table_21824695_8 WHERE highest = 32250
How many match played have the highest as 32250?
CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR)
SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = "great britain"
what is the rank when heat is 9 and the nation is great britain?
CREATE TABLE table_name_21 (rank INTEGER, heat VARCHAR, nation VARCHAR)
SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Tim Matheson"
How many episodes were directed by Tim Matheson?
CREATE TABLE table_25740548_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"
Who were the guests for the episode with an original airdate of december 07?
CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR)
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street"
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
SELECT position FROM table_2781227_9 WHERE college_junior_club_team = "Krylja Sovetov (Russia)"
What position does krylja sovetov (russia) play?
CREATE TABLE table_2781227_9 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT rider_2 FROM table_name_2 WHERE city = "rancagua" AND horse_1 = "papayero"
Who was the second rider when papayero raced as Horse 1 in the city of rancagua?
CREATE TABLE table_name_2 (rider_2 VARCHAR, city VARCHAR, horse_1 VARCHAR)
SELECT date FROM table_name_18 WHERE high_assists = "rondo (5)" AND high_rebounds = "rondo (10)"
What date were the high assists rondo (5) and the high rebounds rondo (10)?
CREATE TABLE table_name_18 (date VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup"
What is the 2nd leg of the second team in the 2007 uefa intertoto cup?
CREATE TABLE table_name_78 (team__number2 VARCHAR)
SELECT total FROM table_name_63 WHERE to_par = "+4"
What is the total with a +4 to par?
CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "geelong"
Who was Geelong's home opponent?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_36 WHERE opponent = "amanda lucas"
What was the result against opponent Amanda Lucas?
CREATE TABLE table_name_36 (result VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_57 WHERE poles = "0" AND series = "gp2 series" AND position = "19th"
In which season did he have 0 Poles and 19th position in the GP2 Series?
CREATE TABLE table_name_57 (season VARCHAR, position VARCHAR, poles VARCHAR, series VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scorer = "ricky davis (23)"
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?
CREATE TABLE table_name_76 (attendance VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT DISTINCT (UnitPrice) FROM TRACK
What are the distinct unit prices of all tracks?
CREATE TABLE TRACK (UnitPrice VARCHAR)
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT MAX(goals) FROM table_name_43 WHERE name = "grella"
What is the Highest Goals for Grella?
CREATE TABLE table_name_43 (goals INTEGER, name VARCHAR)
SELECT manager FROM table_name_92 WHERE captain = "dean whitehead"
Who is Dean Whitehead's manager?
CREATE TABLE table_name_92 (manager VARCHAR, captain VARCHAR)
SELECT format FROM table_name_65 WHERE region = "united kingdom" AND catalogue = "201457 9"
What format has United Kingdom as its region and is catalogued as 201457 9?
CREATE TABLE table_name_65 (format VARCHAR, region VARCHAR, catalogue VARCHAR)
SELECT week_3 FROM table_name_30 WHERE week_1 = "kristy dwyer"
Which week 3 had a week 1 of Kristy Dwyer?
CREATE TABLE table_name_30 (week_3 VARCHAR, week_1 VARCHAR)
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice"
What occupation does Mary Louise Lorefice have?
CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR)
SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = "peckett and sons" AND gwr_nos = "696, 779, 93 5"
What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?
CREATE TABLE table_name_72 (quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR)
SELECT pick__number FROM table_25085059_3 WHERE position = "DL"
What draft pick number was the player with the position DL?
CREATE TABLE table_25085059_3 (pick__number VARCHAR, position VARCHAR)
SELECT MIN(enrollment) FROM table_name_17 WHERE left = 2012 AND current_conference = "mid-south"
What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South?
CREATE TABLE table_name_17 (enrollment INTEGER, left VARCHAR, current_conference VARCHAR)
SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007"
what is the episode title on original air date of September 30, 2007?
CREATE TABLE table_23799417_2 (title VARCHAR, original_airing VARCHAR)
SELECT MIN(top_10) FROM table_name_79 WHERE events = 1 AND cuts_made > 0
For events with values of exactly 1, and 0 cuts made, what is the fewest number of top-10s?
CREATE TABLE table_name_79 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR)
SELECT location_attendance FROM table_17058116_5 WHERE date = "November 21"
Where was the game that took place in November 21 located and how many attended?
CREATE TABLE table_17058116_5 (location_attendance VARCHAR, date VARCHAR)
SELECT name FROM table_name_92 WHERE time = "8:10.1"
What is the Name, when the Time is 8:10.1?
CREATE TABLE table_name_92 (name VARCHAR, time VARCHAR)
SELECT school FROM table_1984697_85 WHERE city___town = "North Manchester"
What is the name of the school/s in North Manchester?
CREATE TABLE table_1984697_85 (school VARCHAR, city___town VARCHAR)
SELECT points_for FROM table_14058433_5 WHERE lost = "4"
what's the points for with lost being 4
CREATE TABLE table_14058433_5 (points_for VARCHAR, lost VARCHAR)
SELECT new_conference FROM table_name_28 WHERE team_nickname = "gauchos"
What is the new conference for the Gauchos team?
CREATE TABLE table_name_28 (new_conference VARCHAR, team_nickname VARCHAR)
SELECT written_by FROM table_21304155_1 WHERE production_code = "BN103"
Who wrote the episode with the production code of BN103?
CREATE TABLE table_21304155_1 (written_by VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_76 WHERE record = "9-3-0"
What is the Score when the record was 9-3-0?
CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR)
SELECT SUM(distance__km_) FROM table_name_19 WHERE station = "kawage"
What is the distance of Kawage station?
CREATE TABLE table_name_19 (distance__km_ INTEGER, station VARCHAR)
SELECT score FROM table_name_17 WHERE venue = "hampden park" AND runners_up = "rangers" AND winners = "hibernian"
What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?
CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR)
SELECT MAX(crowd) FROM table_name_50 WHERE venue = "windy hill"
What was the highest crowd size at Windy Hill?
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
SELECT nationality FROM table_name_17 WHERE round < 2 AND pick = 24
What is Nationality, when Round is less than 2, and when Pick is "24"?
CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR, pick VARCHAR)
SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0
What is the rank of the team with 1 bronze and 0 gold medals?
CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT winners FROM table_name_11 WHERE year = 1998
Who were the winners in 1998?
CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)
SELECT horizontal_bar FROM table_18662026_1 WHERE rings = "58.975"
If the rings is 58.975, what is the number for the horizontal bar?
CREATE TABLE table_18662026_1 (horizontal_bar VARCHAR, rings VARCHAR)
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "collingwood"
How big was the crowd when collingwood visited?
CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR)
SELECT player FROM table_name_2 WHERE position = "f"
What players have a position of F?
CREATE TABLE table_name_2 (player VARCHAR, position VARCHAR)
SELECT MIN(season) FROM table_name_34 WHERE super_g = "33"
What is the oldest season that had a listed Super G score of 33?
CREATE TABLE table_name_34 (season INTEGER, super_g VARCHAR)
SELECT result FROM table_name_75 WHERE date = "april 28"
What was the result of the game on April 28?
CREATE TABLE table_name_75 (result VARCHAR, date VARCHAR)
SELECT location FROM table_2112260_1 WHERE specialization = "Textile engineering"
Where is every location with specialization of textile engineering?
CREATE TABLE table_2112260_1 (location VARCHAR, specialization VARCHAR)
SELECT MIN(tonkolili) FROM table_18103265_1
What is the lowest number associated with Tonkolili?
CREATE TABLE table_18103265_1 (tonkolili INTEGER)
SELECT tournament FROM table_name_34 WHERE date = "march 27, 2006"
what tournament happened on march 27, 2006?
CREATE TABLE table_name_34 (tournament VARCHAR, date VARCHAR)
SELECT MIN(no_in_series) FROM table_11111116_6 WHERE us_viewers__million_ = "3.6"
Which episode in the series drew 3.6 million U.S. viewers?
CREATE TABLE table_11111116_6 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT player FROM table_20170644_1 WHERE cfl_team = "Hamilton Tiger-Cats (via BC via Saskatchewan )"
Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?
CREATE TABLE table_20170644_1 (player VARCHAR, cfl_team VARCHAR)
SELECT team FROM table_name_45 WHERE year = 2000
Which Team has a Year of 2000?
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR)
SELECT score FROM table_17311797_10 WHERE game = 81
What was the score in game 81?
CREATE TABLE table_17311797_10 (score VARCHAR, game VARCHAR)
SELECT place FROM table_name_77 WHERE score > 66 AND player = "ben hogan"
Ben Hogan with a score larger than 66 had a place listed of what?
CREATE TABLE table_name_77 (place VARCHAR, score VARCHAR, player VARCHAR)
SELECT race FROM table_name_90 WHERE position = "3rd" AND speed = "123.628"
Which race has a position of 3rd and a speed of 123.628?
CREATE TABLE table_name_90 (race VARCHAR, position VARCHAR, speed VARCHAR)
SELECT team FROM table_name_82 WHERE start < 28 AND finish = 25
What team had a finish of 25 in a smaller than 28?
CREATE TABLE table_name_82 (team VARCHAR, start VARCHAR, finish VARCHAR)
SELECT route_number FROM table_25692955_1 WHERE north_east_terminal = "Santa Rosa Avenue"
Name the route number for santa rosa avenue
CREATE TABLE table_25692955_1 (route_number VARCHAR, north_east_terminal VARCHAR)
SELECT loss FROM table_name_75 WHERE record = "20–16–9"
Which Loss has a Record of 20–16–9?
CREATE TABLE table_name_75 (loss VARCHAR, record VARCHAR)
SELECT record FROM table_name_71 WHERE time = "3:00"
What is the record at 3:00?
CREATE TABLE table_name_71 (record VARCHAR, time VARCHAR)
SELECT COUNT(money___) AS £__ FROM table_name_72 WHERE player = "jodie mudd"
Which Money (£) has a Player of jodie mudd?
CREATE TABLE table_name_72 (money___ VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_79 WHERE outcome = "runner-up" AND date = "november 15, 2010"
Who was the opponent with an outcome runner-up on November 15, 2010?
CREATE TABLE table_name_79 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
What is the constituency number with electorates (2009) number larger than 152,958?
CREATE TABLE table_name_40 (constituency_number VARCHAR, number_of_electorates__2009_ INTEGER)
SELECT original_title FROM table_name_10 WHERE film_title_used_in_nomination = "dersu uzala"
What is the original title of the film for which Dersu Uzala was nominated?
CREATE TABLE table_name_10 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(rank) FROM table_name_21 WHERE lane = 5
What is the rank # of the swimmer in Lane 5?
CREATE TABLE table_name_21 (rank VARCHAR, lane VARCHAR)
SELECT 1998 FROM table_name_43 WHERE 1996 = "1r" AND 2002 = "not held"
What shows for 1998 when 1996 is 1R, and 2002 is not held?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)"
What was the record when the score was w 108–93 (ot)?
CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR)
SELECT stadium FROM table_name_88 WHERE city = "braga"
What is the stadium for the city of Braga?
CREATE TABLE table_name_88 (stadium VARCHAR, city VARCHAR)
SELECT school FROM table_11677691_2 WHERE player = "Ha'Sean Clinton-Dix"
WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO?
CREATE TABLE table_11677691_2 (school VARCHAR, player VARCHAR)
SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = "14.41"
What episode number had 14.41 million viewers?
CREATE TABLE table_27553627_2 (episodes INTEGER, viewers__in_millions_ VARCHAR)
SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler"
Find the department name that is in Building "Mergenthaler".
CREATE TABLE DEPARTMENT (DName VARCHAR, Building VARCHAR)
SELECT location FROM table_25773116_2 WHERE pole_position = "Daniel Erickson" AND fastest_lap = "Cole Morgan"
Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?
CREATE TABLE table_25773116_2 (location VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/a"
How many total rounds have the results of win, and n/a as the method?
CREATE TABLE table_name_12 (round VARCHAR, res VARCHAR, method VARCHAR)
SELECT band FROM table_name_80 WHERE female = "samantha mumba"
What band performed when Samantha Mumba presented?
CREATE TABLE table_name_80 (band VARCHAR, female VARCHAR)
SELECT first_minting FROM table_1307572_1 WHERE mass = "3.7 g"
When was the coin with the mass of 3.7 g first minted?
CREATE TABLE table_1307572_1 (first_minting VARCHAR, mass VARCHAR)
SELECT MIN(silver) FROM table_22355_50
What is the least number of silver medals won
CREATE TABLE table_22355_50 (silver INTEGER)
SELECT COUNT(license) FROM table_15038373_1 WHERE software = "Mind WorkStation"
How many licenses have mind workstation software?
CREATE TABLE table_15038373_1 (license VARCHAR, software VARCHAR)
SELECT COUNT(episode) FROM table_14934885_1 WHERE performer_4 = "Jimmy Mulville"
How many episodes was Jimmy Mulville performer 4?
CREATE TABLE table_14934885_1 (episode VARCHAR, performer_4 VARCHAR)
SELECT country_with_flag FROM table_298550_1 WHERE population__1_july_2005_est_ = 11346670
What is every country with a flag with population of 11346670?
CREATE TABLE table_298550_1 (country_with_flag VARCHAR, population__1_july_2005_est_ VARCHAR)
SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo"
What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?
CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR)
SELECT shooter FROM table_name_56 WHERE time > 8.97 AND year < 2013
Which shooter's time is more than 8.97 and has a year prior to 2013?
CREATE TABLE table_name_56 (shooter VARCHAR, time VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_name_10 WHERE regular_season = 1063 AND playoffs > 119
how may times is regular season 1063 and playoffs more than 119?
CREATE TABLE table_name_10 (total VARCHAR, regular_season VARCHAR, playoffs VARCHAR)
SELECT status FROM table_1341568_44 WHERE incumbent = "Charles Stenholm"
What is the status of incumbent Charles Stenholm?
CREATE TABLE table_1341568_44 (status VARCHAR, incumbent VARCHAR)
SELECT COUNT(points) FROM table_name_24 WHERE wins > 0
How many Points has Wins larger than 0?
CREATE TABLE table_name_24 (points VARCHAR, wins INTEGER)
SELECT county FROM table_name_72 WHERE name = "howard street tunnel"
What is the County of Howard Street Tunnel?
CREATE TABLE table_name_72 (county VARCHAR, name VARCHAR)
SELECT MAX(round) FROM table_name_87 WHERE player = "dan connor"
What is the largest round number for Dan Connor, the player?
CREATE TABLE table_name_87 (round INTEGER, player VARCHAR)
SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe"
Which Investing Dragon(s) requested 100,000 in money and has autosafe?
CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
SELECT 1986 FROM table_name_51 WHERE 1991 = "qf" AND 1998 = "3r"
What's the 1986 if 1991 has a QF and 1998 has a 3R?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT MIN(lost) FROM table_21991074_3
Name the least lost
CREATE TABLE table_21991074_3 (lost INTEGER)
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1
List the state in the US with the most invoices.
CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR)
SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = "dave reichert"
When was the earliest incumbent dave reichert was first elected?
CREATE TABLE table_name_86 (first_elected INTEGER, incumbent VARCHAR)
SELECT winning_driver FROM table_name_59 WHERE circuit = "monza"
Name the winning driver with circuit of monza
CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR)
SELECT position FROM table_name_1 WHERE pick < 14 AND player = "tyrone bogues"
Which Position has a Pick smaller than 14, and a Player of tyrone bogues?
CREATE TABLE table_name_1 (position VARCHAR, pick VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_82 WHERE game = 30
Who were the opponents during game 30?
CREATE TABLE table_name_82 (opponent VARCHAR, game VARCHAR)