question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the 1998 value if the 2007 value is 8?
CREATE TABLE table_name_13 (Id VARCHAR)
SELECT 1998 FROM table_name_13 WHERE 2007 = "8"
What did Carlton score when they were the Home team?
CREATE TABLE table_name_73 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_73 WHERE home_team = "carlton"
What are the names of parties with at least 2 events?
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)
SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2
What is the fewest ties the team had with fewer than 7 games?
CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER)
SELECT MIN(drawn) FROM table_name_25 WHERE games < 7
who is the away team when the home team is luton town?
CREATE TABLE table_name_11 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_11 WHERE home_team = "luton town"
what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)?
CREATE TABLE table_name_32 (date VARCHAR, score VARCHAR, high_assists VARCHAR, high_points VARCHAR)
SELECT date FROM table_name_32 WHERE high_assists = "ramon sessions (8)" AND high_points = "richard jefferson (29)" AND score = "w 107–78 (ot)"
What is Source Version, when License is LGPL or MPL?
CREATE TABLE table_name_42 (source_version VARCHAR, license VARCHAR)
SELECT source_version FROM table_name_42 WHERE license = "lgpl or mpl"
What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?
CREATE TABLE table_name_14 (frequency VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)
SELECT frequency FROM table_name_14 WHERE release_price___usd__ = "$383" AND sspec_number = "sr15f(c0)"
who is the home team when attendance is 25 november 1997 and the away team is exeter city?
CREATE TABLE table_name_82 (home_team VARCHAR, attendance VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_82 WHERE attendance = "25 november 1997" AND away_team = "exeter city"
What is the number of goals against when the goal difference was less than 43, the Wins less than 13, and losses more than 14?
CREATE TABLE table_name_44 (goals_against VARCHAR, losses VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14
Where was the game when Geelong was the away team?
CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_28 WHERE away_team = "geelong"
How many laps for grid 25?
CREATE TABLE table_name_91 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_91 WHERE grid = 25
Name the lg for ermengol
CREATE TABLE table_19018191_5 (l_g VARCHAR, player VARCHAR)
SELECT l_g FROM table_19018191_5 WHERE player = "Ermengol"
An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top?
CREATE TABLE table_name_26 (weeks_on_top VARCHAR, artist VARCHAR, issue_date_s_ VARCHAR)
SELECT weeks_on_top FROM table_name_26 WHERE artist = "the beatles" AND issue_date_s_ = "19 september"
How many people attended the game with a kickoff time of cbs 1:00pm, in a week earlier than 8, on September 15, 2002?
CREATE TABLE table_name_56 (attendance VARCHAR, date VARCHAR, kickoff_time VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_56 WHERE kickoff_time = "cbs 1:00pm" AND week < 8 AND date = "september 15, 2002"
What are the names of people in ascending order of weight?
CREATE TABLE People (Name VARCHAR, Weight VARCHAR)
SELECT Name FROM People ORDER BY Weight
What is the finish position for cars by Pontiac driven by Bobby Hamilton?
CREATE TABLE table_27514362_7 (pos VARCHAR, car_make VARCHAR, driver VARCHAR)
SELECT pos FROM table_27514362_7 WHERE car_make = "Pontiac" AND driver = "Bobby Hamilton"
Who is the director when there is 11.21 million viewers?
CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "11.21"
What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?
CREATE TABLE table_20866024_2 (engine VARCHAR, gvw__kg_ton_ VARCHAR, model_designation VARCHAR)
SELECT engine FROM table_20866024_2 WHERE gvw__kg_ton_ = "2500/2.46" AND model_designation = "97G00"
Who played as the home team when the attendance was more than 30,080?
CREATE TABLE table_name_21 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080
Name the most overall for james davis and round more than 5
CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5
When 0,4, or 8 mb is the nupowr 117 what is the sonnet?
CREATE TABLE table_3002894_4 (sonnet VARCHAR, nupowr_117 VARCHAR)
SELECT sonnet FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB"
What's the rank when the time was 59.65?
CREATE TABLE table_name_43 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_43 WHERE time = "59.65"
What is Division One's total number of FL Cup Goals, with an Other Apps greater than 3, and a FA Cup Goals greater than 0?
CREATE TABLE table_name_28 (fl_cup_goals VARCHAR, fa_cup_goals VARCHAR, division VARCHAR, other_apps VARCHAR)
SELECT COUNT(fl_cup_goals) FROM table_name_28 WHERE division = "one" AND other_apps > 3 AND fa_cup_goals > 0
What is the 1990 value with a 24 in 1995?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 1990 FROM table_name_87 WHERE 1995 = "24"
How many bronze medals did west germany win when they had less than 2 silver medals?
CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_29 WHERE nation = "west germany" AND silver < 2
What is the lowest number of laps with more than 16 points?
CREATE TABLE table_name_29 (laps INTEGER, points INTEGER)
SELECT MIN(laps) FROM table_name_29 WHERE points > 16
Name the to par for score of 69-73-68-70=280
CREATE TABLE table_name_84 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_84 WHERE score = 69 - 73 - 68 - 70 = 280
Name the mountains classification for alexander kristoff
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff"
What is the sum of the averages when there are 68 caps and less than 9 goals?
CREATE TABLE table_name_16 (average INTEGER, caps VARCHAR, goals VARCHAR)
SELECT SUM(average) FROM table_name_16 WHERE caps = 68 AND goals < 9
What was the date of game 75?
CREATE TABLE table_name_93 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_93 WHERE game = 75
What is the date of the game played with Birmingham City as the away team?
CREATE TABLE table_24887326_7 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City"
How many goals did the player from Ipswich town score?
CREATE TABLE table_28286776_12 (goal_s_ INTEGER, club_s_ VARCHAR)
SELECT MIN(goal_s_) FROM table_28286776_12 WHERE club_s_ = "Ipswich Town"
Who is the captain of the team whose kit manufacturer is Nike?
CREATE TABLE table_25527255_2 (captain VARCHAR, kit_manufacturer VARCHAR)
SELECT captain FROM table_25527255_2 WHERE kit_manufacturer = "Nike"
On what Date was Wales the Opponent?
CREATE TABLE table_name_76 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_76 WHERE opponent = "wales"
What is the least clock speed (MHz) with January 1986 as introduced?
CREATE TABLE table_name_75 (clock_speed__mhz_ INTEGER, introduced VARCHAR)
SELECT MIN(clock_speed__mhz_) FROM table_name_75 WHERE introduced = "january 1986"
What is the average year founded for schools in claremont?
CREATE TABLE table_name_6 (founded INTEGER, location VARCHAR)
SELECT AVG(founded) FROM table_name_6 WHERE location = "claremont"
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million?
CREATE TABLE table_18118221_1 (annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR)
SELECT annual_interchanges__millions__2011_12 FROM table_18118221_1 WHERE annual_entry_exit__millions__2011_12 = "36.609"
When is Record of 16–16 taken?
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_6 WHERE record = "16–16"
What was the margin of victory for Isao Aoki when he was a runner-up?
CREATE TABLE table_name_12 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_12 WHERE runner_s__up = "isao aoki"
What were the total number of 2012 deaths when 2012 births were 127?
CREATE TABLE table_25703_2 (death_2012 VARCHAR, birth_2012 VARCHAR)
SELECT death_2012 FROM table_25703_2 WHERE birth_2012 = 127
Which United States player has a place of T3?
CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3"
Who was the champion of the Philips Open with a runner-up of Javier Sánchez?
CREATE TABLE table_name_3 (champion VARCHAR, name VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_3 WHERE name = "philips open" AND runner_up = "javier sánchez"
What company constructed the vehicle in the location not held in 1933?
CREATE TABLE table_name_99 (constructor VARCHAR, location VARCHAR, year VARCHAR)
SELECT constructor FROM table_name_99 WHERE location = "not held" AND year = "1933"
Which position has 9 podiums?
CREATE TABLE table_22056184_1 (position VARCHAR, podiums VARCHAR)
SELECT position FROM table_22056184_1 WHERE podiums = 9
What year featured lola motorsport as an entrant with over 0 points?
CREATE TABLE table_name_44 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE entrant = "lola motorsport" AND points > 0
What was the score of the away team at princes park?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "princes park"
What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is "Benzodiazepines"?
CREATE TABLE table_name_69 (pleasure VARCHAR, psychological_dependence VARCHAR, drug VARCHAR)
SELECT COUNT(pleasure) FROM table_name_69 WHERE psychological_dependence > 1.9 AND drug = "benzodiazepines"
Name the driver for 3 rounds
CREATE TABLE table_name_24 (driver VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_24 WHERE rounds = "3"
what is ahli when ramtha is 0-4?
CREATE TABLE table_26173063_2 (ahli VARCHAR, ramtha VARCHAR)
SELECT ahli FROM table_26173063_2 WHERE ramtha = "0-4"
Name the powertrain for kmd and c40lf
CREATE TABLE table_24193494_3 (powertrain__engine_transmission_ VARCHAR, division VARCHAR, model VARCHAR)
SELECT powertrain__engine_transmission_ FROM table_24193494_3 WHERE division = "KMD" AND model = "C40LF"
What's the total compulsory when the total is more than 69.2 and the voluntary is 38.7?
CREATE TABLE table_name_42 (compulsory VARCHAR, voluntary VARCHAR, total VARCHAR)
SELECT COUNT(compulsory) FROM table_name_42 WHERE voluntary = 38.7 AND total > 69.2
In what region does 17.4% of the population make below 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "17.4%"
Which building has 26 storeys?
CREATE TABLE table_name_42 (building VARCHAR, storeys VARCHAR)
SELECT building FROM table_name_42 WHERE storeys = 26
What is the total number of poles with less than 0 wins?
CREATE TABLE table_name_43 (poles VARCHAR, wins INTEGER)
SELECT COUNT(poles) FROM table_name_43 WHERE wins < 0
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>
CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR)
SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2"
How many patients stay in room 112?
CREATE TABLE stay (patient VARCHAR, room VARCHAR)
SELECT COUNT(patient) FROM stay WHERE room = 112
What is the name of the episode that had 9.89 million U.S. viewers?
CREATE TABLE table_24648983_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_24648983_1 WHERE us_viewers__million_ = "9.89"
What is the highest date in october for a game number larger than 8 with a record of 4-4-0?
CREATE TABLE table_name_54 (october INTEGER, record VARCHAR, game VARCHAR)
SELECT MAX(october) FROM table_name_54 WHERE record = "4-4-0" AND game > 8
What is the average Position, when Speed is "143.5km/h"?
CREATE TABLE table_name_97 (position INTEGER, speed VARCHAR)
SELECT AVG(position) FROM table_name_97 WHERE speed = "143.5km/h"
how many exposures where there when the total exposure time is 105,000s?
CREATE TABLE table_2583036_1 (exposures VARCHAR, total_exposure_time VARCHAR)
SELECT exposures FROM table_2583036_1 WHERE total_exposure_time = "105,000s"
What was Australia's to par when the place was t9?
CREATE TABLE table_name_7 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_7 WHERE place = "t9" AND country = "australia"
On what date is Footscray the away team?
CREATE TABLE table_name_59 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_59 WHERE away_team = "footscray"
Name the least dismissals for 4 rank
CREATE TABLE table_23316034_23 (dismissals INTEGER, rank VARCHAR)
SELECT MAX(dismissals) FROM table_23316034_23 WHERE rank = 4
Emerson has what transfer window?
CREATE TABLE table_name_90 (transfer_window VARCHAR, name VARCHAR)
SELECT transfer_window FROM table_name_90 WHERE name = "emerson"
Who was the winning driver of the race with Clay Regazzoni as the fastest lap and Jackie stewart as the pole position?
CREATE TABLE table_name_29 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT winning_driver FROM table_name_29 WHERE fastest_lap = "clay regazzoni" AND pole_position = "jackie stewart"
How many top tens had an average start of 29.4?
CREATE TABLE table_1012730_1 (top_10 VARCHAR, avg_start VARCHAR)
SELECT COUNT(top_10) FROM table_1012730_1 WHERE avg_start = "29.4"
What was the largest crowd where Carlton was the away team?
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "carlton"
How many members are there?
CREATE TABLE member (Id VARCHAR)
SELECT COUNT(*) FROM member
What was the sum of attendance for games with a time of 3:23?
CREATE TABLE table_name_53 (attendance INTEGER, time VARCHAR)
SELECT SUM(attendance) FROM table_name_53 WHERE time = "3:23"
When the Away team is footscray, what is the Home team playing?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "footscray"
WHAT POSITION DOES HE PLAY FOR AT WEST BROOK SENIOR HIGH SCHOOL?
CREATE TABLE table_11677100_11 (position VARCHAR, school VARCHAR)
SELECT position FROM table_11677100_11 WHERE school = "West Brook Senior High school"
On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?
CREATE TABLE table_name_17 (date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united"
What is Written By, when Originalairdate is 25 April 1993?
CREATE TABLE table_name_31 (written_by VARCHAR, originalairdate VARCHAR)
SELECT written_by FROM table_name_31 WHERE originalairdate = "25 april 1993"
Which Team has the Player of A.J. Moye?
CREATE TABLE table_name_81 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_81 WHERE player = "a.j. moye"
What year was trio brdeact wind allass the entrant?
CREATE TABLE table_name_16 (year VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_16 WHERE entrant = "trio brdeact wind allass"
What was the record on May 20?
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 20"
What year was incumbent jim mcdermott first elected?
CREATE TABLE table_1341522_50 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341522_50 WHERE incumbent = "Jim McDermott"
What is the cardinal direction northwest in English?
CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR)
SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest"
How old was the conservative party member that left the house in 2001?
CREATE TABLE table_name_43 (age_on_leaving VARCHAR, political_party VARCHAR, left_house VARCHAR)
SELECT age_on_leaving FROM table_name_43 WHERE political_party = "conservative" AND left_house = "2001"
When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?
CREATE TABLE table_24399615_8 (airdate VARCHAR, cable_rank VARCHAR, viewers VARCHAR)
SELECT airdate FROM table_24399615_8 WHERE cable_rank = "N/A" AND viewers = 656000
WHen joaqui mendoza is the name how long is the duration?
CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR)
SELECT duration FROM table_19061741_3 WHERE name = "Joaqui Mendoza"
Find the name and hours of the students whose tryout decision is yes.
CREATE TABLE player (pName VARCHAR, HS VARCHAR, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR)
SELECT T1.pName, T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
How many times was u.s. Viewers listed for episode 36 in the series?
CREATE TABLE table_22265225_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_22265225_1 WHERE no_in_series = "36"
Which artist has a serial number of ATM24016?
CREATE TABLE table_name_41 (artist VARCHAR, number VARCHAR)
SELECT artist FROM table_name_41 WHERE number = "atm24016"
Name the rank for laps less than 130 and year of 1951
CREATE TABLE table_name_31 (rank VARCHAR, laps VARCHAR, year VARCHAR)
SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951"
What is the Acquisition that has less than 22, in the 2002 season?
CREATE TABLE table_name_41 (acquisition_via VARCHAR, number VARCHAR, season VARCHAR)
SELECT acquisition_via FROM table_name_41 WHERE number < 22 AND season = "2002"
WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?
CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "essendon"
What team was the opponent with a record of 5–0?
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "5–0"
Who were all the pictorials when the centerfold model was Rebekka Armstrong?
CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong"
Which club has a capacity of 25138?
CREATE TABLE table_name_4 (club VARCHAR, capacity VARCHAR)
SELECT club FROM table_name_4 WHERE capacity = "25138"
what was the score when the extras were 6
CREATE TABLE table_14070062_4 (points VARCHAR, try_bonus VARCHAR)
SELECT points FROM table_14070062_4 WHERE try_bonus = "6"
Which team beat the Newcastle Breakers?
CREATE TABLE table_name_76 (winningteam VARCHAR, losingteam VARCHAR)
SELECT winningteam FROM table_name_76 WHERE losingteam = "newcastle breakers"
What was the draw for the english meaning Eyes that Never Lie?
CREATE TABLE table_19523708_1 (draw VARCHAR, language VARCHAR, english_meaning VARCHAR)
SELECT draw FROM table_19523708_1 WHERE language = "English" AND english_meaning = "Eyes That Never Lie"
When was the golden slipper race?
CREATE TABLE table_name_53 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_53 WHERE race = "golden slipper"
Name the oberliga hessen for sv sandhausen and fsv salmrohr
CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR)
SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND oberliga_südwest = "FSV Salmrohr"
Name the performance order of the velasco brothers
CREATE TABLE table_26267849_11 (performance_order VARCHAR, artist VARCHAR)
SELECT performance_order FROM table_26267849_11 WHERE artist = "Velasco Brothers"
Which Position player was born June 30, 1981?
CREATE TABLE table_name_90 (position VARCHAR, birthdate VARCHAR)
SELECT position FROM table_name_90 WHERE birthdate = "june 30, 1981"
What height has a floor count less than 25?
CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)
SELECT height FROM table_name_2 WHERE floor_count < 25
Who was the driver/passengar when the position was smaller than 8, the third was 1, and there was 1 win?
CREATE TABLE table_name_56 (driver___passenger VARCHAR, wins VARCHAR, third VARCHAR, position VARCHAR)
SELECT driver___passenger FROM table_name_56 WHERE third = "1" AND position < 8 AND wins = "1"