question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What team does jan heylen race for?
CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR)
SELECT team FROM table_name_35 WHERE driver = "jan heylen"
what is the official rating 16-39 for the episode with a 16-39 share of 22,77%?
CREATE TABLE table_29804176_23 (official_rating_16_39 VARCHAR, share_16_39 VARCHAR)
SELECT official_rating_16_39 FROM table_29804176_23 WHERE share_16_39 = "22,77%"
What is the holding of the customers?
CREATE TABLE table_name_56 (holding VARCHAR, component VARCHAR)
SELECT holding FROM table_name_56 WHERE component = "customers"
What date had a game with wycombe wanderers as the away team?
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_28 WHERE away_team = "wycombe wanderers"
Which HMO has a conventional plan of 3% in 2005?
CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR)
SELECT hmos FROM table_name_96 WHERE conventional_plans = "3%" AND year = 2005
What's the date when Yelena Isinbayeva for Russia was in Beijing, China?
CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR)
SELECT date FROM table_name_82 WHERE nation = "russia" AND place = "beijing, china" AND athlete = "yelena isinbayeva"
What couple had a vote percentage of 5.2%?
CREATE TABLE table_26375386_17 (couple VARCHAR, vote_percentage VARCHAR)
SELECT couple FROM table_26375386_17 WHERE vote_percentage = "5.2%"
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button"
What was the rank for czechoslovakia with 1 bronze?
CREATE TABLE table_name_42 (rank VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_42 WHERE bronze = 1 AND nation = "czechoslovakia"
How many rounds have a Surface of wintry asphalt?
CREATE TABLE table_name_24 (round VARCHAR, surface VARCHAR)
SELECT COUNT(round) FROM table_name_24 WHERE surface = "wintry asphalt"
Which To par has a Country of england, and a Place of t9, and a Player of graeme storm?
CREATE TABLE table_name_47 (to_par INTEGER, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT MAX(to_par) FROM table_name_47 WHERE country = "england" AND place = "t9" AND player = "graeme storm"
What is Score, when Team is "Washington"?
CREATE TABLE table_name_81 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_81 WHERE team = "washington"
What is number 21's highest time?
CREATE TABLE table_name_24 (time INTEGER, number VARCHAR)
SELECT MAX(time) FROM table_name_24 WHERE number = 21
What is the area (km 2) where the population density (/mk2) is 84.3?
CREATE TABLE table_1480455_1 (area__km_2__ VARCHAR, population_density___km_2__ VARCHAR)
SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3"
How many transit passengers at london gatwick?
CREATE TABLE table_13836704_6 (transit_passengers VARCHAR, airport VARCHAR)
SELECT transit_passengers FROM table_13836704_6 WHERE airport = "London Gatwick"
Who are all hosts when men's singles is Ma Wenge?
CREATE TABLE table_28211988_1 (host VARCHAR, mens_singles VARCHAR)
SELECT host FROM table_28211988_1 WHERE mens_singles = "Ma Wenge"
How many share values are listed for the episode with a rating/share value of 2.6/8?
CREATE TABLE table_17525955_2 (share VARCHAR, rating VARCHAR)
SELECT COUNT(share) FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 8
When the Away team is south melbourne, what's the Home team score?
CREATE TABLE table_name_32 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_32 WHERE away_team = "south melbourne"
What was the result when the team was 4-1?
CREATE TABLE table_14302582_1 (result VARCHAR, record VARCHAR)
SELECT result FROM table_14302582_1 WHERE record = "4-1"
Who is the player associated with the Esher venue?
CREATE TABLE table_name_63 (player VARCHAR, venue VARCHAR)
SELECT player FROM table_name_63 WHERE venue = "esher"
Which Gold has a Nation of united states, and a Total larger than 5?
CREATE TABLE table_name_60 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_60 WHERE nation = "united states" AND total > 5
What is the highest value for Ties, when Losses is less than 8?
CREATE TABLE table_name_72 (ties INTEGER, losses INTEGER)
SELECT MAX(ties) FROM table_name_72 WHERE losses < 8
what is the highest time when the rank is less than 5 and the name is eamon sullivan?
CREATE TABLE table_name_30 (time INTEGER, rank VARCHAR, name VARCHAR)
SELECT MAX(time) FROM table_name_30 WHERE rank < 5 AND name = "eamon sullivan"
San Juan Jabloteh calls which stadium home?
CREATE TABLE table_24039173_1 (stadium VARCHAR, team VARCHAR)
SELECT stadium FROM table_24039173_1 WHERE team = "San Juan Jabloteh"
who is the writer of the episode with prod.code 30-17
CREATE TABLE table_13403120_1 (writer_s_ VARCHAR, prodcode VARCHAR)
SELECT writer_s_ FROM table_13403120_1 WHERE prodcode = "30-17"
List the names of editors that are not on any journal committee.
CREATE TABLE editor (Name VARCHAR, editor_id VARCHAR); CREATE TABLE journal_committee (Name VARCHAR, editor_id VARCHAR)
SELECT Name FROM editor WHERE NOT editor_id IN (SELECT editor_id FROM journal_committee)
Which college has a pick # 84 in round 3?
CREATE TABLE table_name_47 (college VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT college FROM table_name_47 WHERE round = 3 AND pick__number = 84
What is the premium associated with tariff code g9?
CREATE TABLE table_10408617_5 (approx_premium VARCHAR, tariff_code VARCHAR)
SELECT approx_premium FROM table_10408617_5 WHERE tariff_code = "g9"
What is the theme song for Magarikado no Kanojo?
CREATE TABLE table_18540104_1 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT theme_song_s_ FROM table_18540104_1 WHERE romaji_title = "Magarikado no Kanojo"
What region is the toshiba emi label with a cd format?
CREATE TABLE table_name_51 (region VARCHAR, format_s_ VARCHAR, label VARCHAR)
SELECT region FROM table_name_51 WHERE format_s_ = "cd" AND label = "toshiba emi"
What is the average number of draws for Al Ahly wins over 59?
CREATE TABLE table_name_1 (draws INTEGER, al_ahly_wins INTEGER)
SELECT AVG(draws) FROM table_name_1 WHERE al_ahly_wins > 59
What was Arkady Vyatchanin's time?
CREATE TABLE table_name_86 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_86 WHERE name = "arkady vyatchanin"
What is the position of a player from North Carolina?
CREATE TABLE table_name_57 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_57 WHERE school = "north carolina"
Who was rose in the 1975 Broadway Revival?
CREATE TABLE table_name_60 (rose VARCHAR, productions VARCHAR)
SELECT rose FROM table_name_60 WHERE productions = "1975 broadway revival"
how many times was hancock % considered when starky % was 20.96%
CREATE TABLE table_19681738_1 (hancock__percentage VARCHAR, starky__percentage VARCHAR)
SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
What is the production code for episode 6 in the season?
CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)
SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6
What is the name of the person that was appointed on 13 May 2009?
CREATE TABLE table_name_74 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT replaced_by FROM table_name_74 WHERE date_of_appointment = "13 may 2009"
In which album can Dil De De Nahin Nahin Dil Le Le be found?
CREATE TABLE table_2528382_1 (movie_album VARCHAR, song VARCHAR)
SELECT movie_album FROM table_2528382_1 WHERE song = "Dil De De Nahin Nahin Dil Le Le"
What was the gold medal total for a total of 44 medals?
CREATE TABLE table_name_13 (gold INTEGER, total INTEGER)
SELECT MIN(gold) FROM table_name_13 WHERE total > 44
How many release dates are there for year of 1988 and additional rock band 3 features is none?
CREATE TABLE table_23981741_1 (release_date VARCHAR, year VARCHAR, additional_rock_band_3_features VARCHAR)
SELECT COUNT(release_date) FROM table_23981741_1 WHERE year = 1988 AND additional_rock_band_3_features = "None"
When is the record 5-4?
CREATE TABLE table_name_51 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_51 WHERE record = "5-4"
What is the power output (kw) of model hxd3d?
CREATE TABLE table_name_6 (power_output__kw_ VARCHAR, model VARCHAR)
SELECT power_output__kw_ FROM table_name_6 WHERE model = "hxd3d"
What was the attendance of the Oakland Raiders game?
CREATE TABLE table_name_34 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_34 WHERE opponent = "oakland raiders"
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_64 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_64 WHERE attendance = "7,891"
Name the least population for 2002 for 2011 being 9564
CREATE TABLE table_2562572_5 (population__2002_ INTEGER, population__2011_ VARCHAR)
SELECT MIN(population__2002_) FROM table_2562572_5 WHERE population__2011_ = 9564
What fleet numbers have a diagram less than 99 and built in 1960?
CREATE TABLE table_name_68 (fleet_numbers VARCHAR, diagram VARCHAR, built VARCHAR)
SELECT fleet_numbers FROM table_name_68 WHERE diagram < 99 AND built = "1960"
WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM?
CREATE TABLE table_name_24 (attendance VARCHAR, away_team VARCHAR)
SELECT attendance FROM table_name_24 WHERE away_team = "reading"
What was the team 1 when Red Star (D1) was team 2?
CREATE TABLE table_name_60 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)"
What is the sum of Cuts made when there were more than 72 events?
CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER)
SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72
Name the lost for matches of 1 928
CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR)
SELECT lost FROM table_name_66 WHERE matches = "1 928"
On what Date is Game 3 with Boston Road Team?
CREATE TABLE table_name_93 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_93 WHERE road_team = "boston" AND game = "game 3"
What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?
CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR)
SELECT score_points FROM table_name_81 WHERE shooter = "sandra kolly ( sui )"
Which college did the Calgary Stampeders recruit from?
CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR)
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders"
What is the average births that had a death rate of 0.4
CREATE TABLE table_name_38 (births__000s_ INTEGER, deaths VARCHAR)
SELECT AVG(births__000s_) FROM table_name_38 WHERE deaths = 0.4
How many millions of viewers were there for number 6?
CREATE TABLE table_19266557_1 (us_viewers__millions_ VARCHAR, _number VARCHAR)
SELECT us_viewers__millions_ FROM table_19266557_1 WHERE _number = 6
Name the played with try bonus of 6 and drawn of 0
CREATE TABLE table_name_76 (played VARCHAR, try_bonus VARCHAR, drawn VARCHAR)
SELECT played FROM table_name_76 WHERE try_bonus = "6" AND drawn = "0"
What is the resulting score for the episodes where Rufus's guest is Sean Lock?
CREATE TABLE table_19930660_3 (winner VARCHAR, rufus_guest VARCHAR)
SELECT winner FROM table_19930660_3 WHERE rufus_guest = "Sean Lock"
what is the party where the candidates are edward boland (d) unopposed?
CREATE TABLE table_1341690_21 (party VARCHAR, candidates VARCHAR)
SELECT party FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed"
Which team had a start of 8 in years under 2008?
CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR, year VARCHAR)
SELECT team FROM table_name_22 WHERE start = 8 AND year < 2008
Which average lane has 54.95 as a time?
CREATE TABLE table_name_99 (lane INTEGER, time VARCHAR)
SELECT AVG(lane) FROM table_name_99 WHERE time = 54.95
What is the Score with a Hoe that is etobicoke kangaroos?
CREATE TABLE table_name_60 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_60 WHERE home = "etobicoke kangaroos"
How many records where in January 2?
CREATE TABLE table_27734577_8 (record VARCHAR, date VARCHAR)
SELECT COUNT(record) FROM table_27734577_8 WHERE date = "January 2"
What is the attendance of the game on July 26?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_1 WHERE date = "july 26"
what player has place t10
CREATE TABLE table_name_37 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_37 WHERE place = "t10"
What is the largest weight wth a Result of –, and a Distance of 7f?
CREATE TABLE table_name_37 (weight INTEGER, result VARCHAR, distance VARCHAR)
SELECT MAX(weight) FROM table_name_37 WHERE result = "–" AND distance = "7f"
What is the nationality of the round 4 draft selection who played college ball at oklahoma?
CREATE TABLE table_name_33 (nationality VARCHAR, round VARCHAR, college VARCHAR)
SELECT nationality FROM table_name_33 WHERE round = 4 AND college = "oklahoma"
What was the outcome on 11 October 2009, when his partner was Jordan Kerr?
CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_72 WHERE partner = "jordan kerr" AND date = "11 october 2009"
What is the minimum for 2nd runner-up?
CREATE TABLE table_2290097_4 (Id VARCHAR)
SELECT MIN(2 AS nd_runner_up) FROM table_2290097_4
What's the score at Olympic Stadium Tokyo, Japan?
CREATE TABLE table_name_49 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_49 WHERE venue = "olympic stadium tokyo, japan"
Which tracks have a length of 18:36?
CREATE TABLE table_name_26 (tracks INTEGER, length VARCHAR)
SELECT MIN(tracks) FROM table_name_26 WHERE length = "18:36"
Can you tell me the highest Played that has the Points larger than 11, and the Lost larger than 7?
CREATE TABLE table_name_36 (played INTEGER, points VARCHAR, lost VARCHAR)
SELECT MAX(played) FROM table_name_36 WHERE points > 11 AND lost > 7
What are the nationalities that are shared by at least two people?
CREATE TABLE people (Nationality VARCHAR)
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
What was the result on the 26th?
CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_31 WHERE date = "26th"
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011
Who has ties of 5?
CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR)
SELECT name FROM table_name_24 WHERE ties = 5
When was the school in Springfield, Massachusetts founded?
CREATE TABLE table_1974782_1 (founded INTEGER, location VARCHAR)
SELECT MAX(founded) FROM table_1974782_1 WHERE location = "Springfield, Massachusetts"
How many f/laps did Pedro Nunes have when he was at the gp3 series?
CREATE TABLE table_25386974_1 (f_laps VARCHAR, series VARCHAR)
SELECT f_laps FROM table_25386974_1 WHERE series = "GP3 series"
Name the horizontal number for number 10
CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, number VARCHAR)
SELECT COUNT(horizontal_0_a) FROM table_25519358_1 WHERE number = 10
How many caps have a Position of prop, and a Player of rui cordeiro?
CREATE TABLE table_name_6 (caps VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro"
What country is the player who earned $9,000 from?
CREATE TABLE table_name_62 (country VARCHAR, money__$_ VARCHAR)
SELECT country FROM table_name_62 WHERE money__$_ = "9,000"
What's the Icelandic word for the German word for hand?
CREATE TABLE table_name_85 (icelandic VARCHAR, german VARCHAR)
SELECT icelandic FROM table_name_85 WHERE german = "hand"
Who is the Opponent in the final of the match played on Clay Surface with a Score in the final of 4–6, 3–6?
CREATE TABLE table_name_9 (opponent_in_the_final VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT opponent_in_the_final FROM table_name_9 WHERE surface = "clay" AND score_in_the_final = "4–6, 3–6"
What title did the film from Colombia use in its nomination?
CREATE TABLE table_name_33 (film_title_used_in_nomination VARCHAR, country VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_33 WHERE country = "colombia"
Name the number for service dates for hoosier energy for petersburg
CREATE TABLE table_23958917_1 (in_service_dates VARCHAR, owner_s___2009_ VARCHAR, location VARCHAR)
SELECT COUNT(in_service_dates) FROM table_23958917_1 WHERE owner_s___2009_ = "Hoosier Energy" AND location = "Petersburg"
Who is the school, club, team or country that the Rockets played for 1967-68?
CREATE TABLE table_name_27 (school_club_team_country VARCHAR, years_for_rockets VARCHAR)
SELECT school_club_team_country FROM table_name_27 WHERE years_for_rockets = "1967-68"
Tell me the result for lincoln financial field december 11, 2005
CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_90 WHERE venue = "lincoln financial field" AND date = "december 11, 2005"
What artist had a mintage of 41,828 before year 2002?
CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR)
SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828"
What is the total number of laps during the race that had a time of +9.682?
CREATE TABLE table_name_6 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(laps) FROM table_name_6 WHERE time_retired = "+9.682"
What committees do the district 46 members serve on?
CREATE TABLE table_27050981_7 (committee VARCHAR, district VARCHAR)
SELECT committee FROM table_27050981_7 WHERE district = "46"
What is the week for November 28, 1982?
CREATE TABLE table_name_14 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_14 WHERE date = "november 28, 1982"
What is the name of the customer who has made the largest amount of claim in a single claim?
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (amount_claimed INTEGER); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_claimed INTEGER)
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT MAX(amount_claimed) FROM claim_headers)
On what date did the episode with a series number 31, with a story written by William Reiss, air for the first time?
CREATE TABLE table_14035132_3 (original_air_date VARCHAR, storyboarded_by VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_14035132_3 WHERE storyboarded_by = "William Reiss" AND no_in_series = "31"
What is the 1st leg when team 1 is Chelsea?
CREATE TABLE table_name_58 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = "chelsea"
What's the total score of Danny Edwards?
CREATE TABLE table_name_39 (score INTEGER, player VARCHAR)
SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards"
Which team has the outgoing manager John Meyler?
CREATE TABLE table_11190568_7 (team VARCHAR, outgoing_manager VARCHAR)
SELECT team FROM table_11190568_7 WHERE outgoing_manager = "John Meyler"
what is the attendance on the date of october 16 and the game is more than 5?
CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR)
SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 5
What is the smallest population listed?
CREATE TABLE table_2562572_11 (population__2011_ INTEGER)
SELECT MIN(population__2011_) FROM table_2562572_11
Leeds City Council is the local authority for what type of location?
CREATE TABLE table_2273738_1 (type VARCHAR, local_authority VARCHAR)
SELECT type FROM table_2273738_1 WHERE local_authority = "Leeds city Council"
what are all the registrations where location is yaxley
CREATE TABLE table_11934032_1 (registrations VARCHAR, location VARCHAR)
SELECT registrations FROM table_11934032_1 WHERE location = "Yaxley"
WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?
CREATE TABLE table_name_6 (city VARCHAR, third VARCHAR)
SELECT city FROM table_name_6 WHERE third = "lori olson-johns"