question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who was the Constructor when the Grid was 2?
CREATE TABLE table_name_63 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_63 WHERE grid = 2
What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?
CREATE TABLE table_name_30 (time_retired VARCHAR, driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid > 10 AND laps > 2 AND constructor = "maserati" AND driver = "masten gregory carroll shelby"
What was the average grid at the time Vanwall was constructor and there were 17 laps?
CREATE TABLE table_name_3 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_3 WHERE constructor = "vanwall" AND laps = 17
Who wins with a score 7–6(4), 6–4
CREATE TABLE table_name_1 (winner VARCHAR, score VARCHAR)
SELECT winner FROM table_name_1 WHERE score = "7–6(4), 6–4"
Who is the Runner-up in Tournament of seiersberg
CREATE TABLE table_name_95 (runner_up VARCHAR, tournament VARCHAR)
SELECT runner_up FROM table_name_95 WHERE tournament = "seiersberg"
Who constructed the car that retired due to brakes with a grid larger than 17?
CREATE TABLE table_name_58 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_58 WHERE grid > 17 AND time_retired = "brakes"
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
What is the time/retired for the car with over 9 laps and a grid of 6?
CREATE TABLE table_name_42 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 6
Which Mac OSX's GNU/Linux was yes when Windows was no?
CREATE TABLE table_name_44 (mac_os_x VARCHAR, gnu_linux VARCHAR, windows VARCHAR)
SELECT mac_os_x FROM table_name_44 WHERE gnu_linux = "yes" AND windows = "no"
Which Mac OSX had no haiku and a client that was dc++?
CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)
SELECT mac_os_x FROM table_name_98 WHERE haiku = "no" AND client = "dc++"
Which GNU/Linux had no haiku and a client of airdc++?
CREATE TABLE table_name_60 (gnu_linux VARCHAR, haiku VARCHAR, client VARCHAR)
SELECT gnu_linux FROM table_name_60 WHERE haiku = "no" AND client = "airdc++"
Which client had no GNU/Linux?
CREATE TABLE table_name_36 (client VARCHAR, gnu_linux VARCHAR)
SELECT client FROM table_name_36 WHERE gnu_linux = "no"
How many laps for grid 12?
CREATE TABLE table_name_50 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_50 WHERE grid = 12
Who built the 21 grid car that retired due to suspension?
CREATE TABLE table_name_80 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_80 WHERE grid > 21 AND time_retired = "suspension"
What is the low rank for hale irwin with under 32 wins?
CREATE TABLE table_name_37 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE player = "hale irwin" AND wins < 32
How much has dave stockton earned?
CREATE TABLE table_name_41 (earnings__ INTEGER, player VARCHAR)
SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = "dave stockton"
When was the game at Princes Park?
CREATE TABLE table_name_65 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_65 WHERE venue = "princes park"
What was Collingwood's away team score?
CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_32 WHERE home_team = "collingwood"
If the season is before 2000, the runner up was north melbourne, and it's the pre-season cup, what's the sum of attendees?
CREATE TABLE table_name_8 (attendance INTEGER, season VARCHAR, premiership VARCHAR, runner_up VARCHAR)
SELECT SUM(attendance) FROM table_name_8 WHERE premiership = "pre-season cup" AND runner_up = "north melbourne" AND season < 2000
What were the original teams for the season that was won by Danni Allen?
CREATE TABLE table_name_29 (original_teams VARCHAR, the_biggest_loser VARCHAR)
SELECT original_teams FROM table_name_29 WHERE the_biggest_loser = "danni allen"
What were the original teams for the season that was won at-home by Mark Pinkhasovich?
CREATE TABLE table_name_15 (original_teams VARCHAR, at_home_winner VARCHAR)
SELECT original_teams FROM table_name_15 WHERE at_home_winner = "mark pinkhasovich"
Who won the season when Pete Thomas was the At-Home winner?
CREATE TABLE table_name_21 (the_biggest_loser VARCHAR, at_home_winner VARCHAR)
SELECT the_biggest_loser FROM table_name_21 WHERE at_home_winner = "pete thomas"
What was the premiere date of the season won by Matt Hoover?
CREATE TABLE table_name_32 (premiere VARCHAR, the_biggest_loser VARCHAR)
SELECT premiere FROM table_name_32 WHERE the_biggest_loser = "matt hoover"
What is the name of the season won by John Rhode?
CREATE TABLE table_name_75 (name VARCHAR, the_biggest_loser VARCHAR)
SELECT name FROM table_name_75 WHERE the_biggest_loser = "john rhode"
What were the original teams for The Biggest Loser (Season 1)?
CREATE TABLE table_name_77 (original_teams VARCHAR, name VARCHAR)
SELECT original_teams FROM table_name_77 WHERE name = "the biggest loser (season 1)"
In what venue did the 1982 FIFA World Cup Qualification take place?
CREATE TABLE table_name_91 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_91 WHERE competition = "1982 fifa world cup qualification"
In what venue was the 1978 FIFA world cup qualification played in?
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_48 WHERE competition = "1978 fifa world cup qualification"
Who did the Red Sox play against on July 8?
CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_22 WHERE date = "july 8"
Tell me the lowest goals for second row and points more than 12
CREATE TABLE table_name_63 (goals INTEGER, position VARCHAR, points VARCHAR)
SELECT MIN(goals) FROM table_name_63 WHERE position = "second row" AND points > 12
I want the lowest points for tries of 39 and goals more than 0
CREATE TABLE table_name_1 (points INTEGER, tries VARCHAR, goals VARCHAR)
SELECT MIN(points) FROM table_name_1 WHERE tries = 39 AND goals > 0
Who was the opponent at Baum Stadium on April 6?
CREATE TABLE table_name_90 (opponent VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_90 WHERE site_stadium = "baum stadium" AND date = "april 6"
How many people were in attendance on March 4?
CREATE TABLE table_name_31 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_31 WHERE date = "march 4"
On March 23, what is the site/stadium?
CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR)
SELECT site_stadium FROM table_name_21 WHERE date = "march 23"
On what date was Kentucky the opponent, and Ragle lost?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT date FROM table_name_9 WHERE opponent = "kentucky" AND loss = "ragle"
Which site/stadium was the score 1-2?
CREATE TABLE table_name_78 (site_stadium VARCHAR, score VARCHAR)
SELECT site_stadium FROM table_name_78 WHERE score = "1-2"
Who was the opponent at Lindsey Nelson Stadium?
CREATE TABLE table_name_73 (opponent VARCHAR, site_stadium VARCHAR)
SELECT opponent FROM table_name_73 WHERE site_stadium = "lindsey nelson stadium"
Which pick number resulted in a defensive end?
CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR)
SELECT pick FROM table_name_34 WHERE position = "defensive end"
In the game where the home team is collingwood, what is the score of the away team?
CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_70 WHERE home_team = "collingwood"
What is the size of the biggest crowd for a game where Fitzroy was the away team?
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "fitzroy"
On which date did Footscray play an away game?
CREATE TABLE table_name_48 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_48 WHERE away_team = "footscray"
If the Home team was st kilda, what was the score of the Away team they played?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "st kilda"
When the Home team of geelong played, what was their lowest Crowd number?
CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "geelong"
Which Away team played when they had a Crowd of over 29,000 people?
CREATE TABLE table_name_14 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_14 WHERE crowd > 29 OFFSET 000
What is the average of the player with 124 yards and less than 13 rec.?
CREATE TABLE table_name_16 (avg INTEGER, yards VARCHAR, rec VARCHAR)
SELECT AVG(avg) FROM table_name_16 WHERE yards = 124 AND rec < 13
On September 25, 1994 what was the final score?
CREATE TABLE table_name_33 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_33 WHERE date = "september 25, 1994"
On the final date of April 5, 1995, what was the score?
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_96 WHERE date = "april 5, 1995"
Who was Geelong's home opponent?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "geelong"
What is the date against the Tampa bay Storm?
CREATE TABLE table_name_63 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_63 WHERE opponent = "tampa bay storm"
What's the result when the kickoff was 4:00 and the record was 4-8?
CREATE TABLE table_name_78 (result VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT result FROM table_name_78 WHERE kickoff_[a_] = "4:00" AND record = "4-8"
Who was the opponent for the giants stadium game?
CREATE TABLE table_name_83 (opponent VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_83 WHERE game_site = "giants stadium"
What date had a kickoff of 1:00 and a result of l 27-14?
CREATE TABLE table_name_81 (date VARCHAR, result VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT date FROM table_name_81 WHERE kickoff_[a_] = "1:00" AND result = "l 27-14"
When was the record 3-3?
CREATE TABLE table_name_99 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_99 WHERE record = "3-3"
When the result was l 13-7 ot, who was the opponent?
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_27 WHERE result = "l 13-7 ot"
What model number had a chipset of intel q43?
CREATE TABLE table_name_51 (model VARCHAR, chipset VARCHAR)
SELECT model FROM table_name_51 WHERE chipset = "intel q43"
What is the form factor with a model name of precision m50?
CREATE TABLE table_name_99 (form_factor VARCHAR, model VARCHAR)
SELECT form_factor FROM table_name_99 WHERE model = "precision m50"
Whas is the released date of the memory type ddr2-667?
CREATE TABLE table_name_42 (released VARCHAR, memory_type VARCHAR)
SELECT released FROM table_name_42 WHERE memory_type = "ddr2-667"
what is the release date of the model precision m60?
CREATE TABLE table_name_75 (released VARCHAR, model VARCHAR)
SELECT released FROM table_name_75 WHERE model = "precision m60"
What is the record of the game with Rudy Gay (20) as the leading scorer?
CREATE TABLE table_name_14 (record VARCHAR, leading_scorer VARCHAR)
SELECT record FROM table_name_14 WHERE leading_scorer = "rudy gay (20)"
What is the visitor team of the game with Rudy Gay (18) as the leading scorer?
CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)
SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)"
What is the score on the 1 December 2007 game?
CREATE TABLE table_name_78 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_78 WHERE date = "1 december 2007"
What is the score of the game with Grizzlies as the visitor team on 30 December 2007?
CREATE TABLE table_name_21 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_21 WHERE visitor = "grizzlies" AND date = "30 december 2007"
What is the lowest draw that has 5 losses and byes greater than 0?
CREATE TABLE table_name_62 (draws INTEGER, losses VARCHAR, byes VARCHAR)
SELECT MIN(draws) FROM table_name_62 WHERE losses = 5 AND byes > 0
What is the lowest draw that is greater than 0 and byes greater than 0?
CREATE TABLE table_name_8 (losses INTEGER, draws VARCHAR, byes VARCHAR)
SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 0
What is the total number of byes that has 13 losses and wins less than 5?
CREATE TABLE table_name_41 (byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5
What is the total number of byes that has 1 draw and an against of 1374?
CREATE TABLE table_name_1 (byes VARCHAR, draws VARCHAR, against VARCHAR)
SELECT COUNT(byes) FROM table_name_1 WHERE draws = 1 AND against = 1374
What is the total number of byes that has 11 wins and a Tallangatta DFL of Barnawartha?
CREATE TABLE table_name_3 (byes VARCHAR, wins VARCHAR, tallangatta_dfl VARCHAR)
SELECT COUNT(byes) FROM table_name_3 WHERE wins = 11 AND tallangatta_dfl = "barnawartha"
When did the Summer Olympics occur in Tokyo?
CREATE TABLE table_name_3 (summer_olympics VARCHAR, city VARCHAR)
SELECT summer_olympics FROM table_name_3 WHERE city = "tokyo"
What is the Current status of Callander Coal company grey?
CREATE TABLE table_name_70 (current_status VARCHAR, livery VARCHAR)
SELECT current_status FROM table_name_70 WHERE livery = "callander coal company grey"
When was the livery of Kinneil Sandy Red?
CREATE TABLE table_name_32 (date VARCHAR, livery VARCHAR)
SELECT date FROM table_name_32 WHERE livery = "kinneil sandy red"
What is the name and number in 1962 when livery was Br Bauxite?
CREATE TABLE table_name_18 (number_ VARCHAR, _name VARCHAR, date VARCHAR, livery VARCHAR)
SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite"
What is the name and number in 1964?
CREATE TABLE table_name_1 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
SELECT number_ & _name FROM table_name_1 WHERE date = "1964"
What is the description for the livery Br Grey?
CREATE TABLE table_name_81 (description VARCHAR, livery VARCHAR)
SELECT description FROM table_name_81 WHERE livery = "br grey"
Which is least lap is mika salo in?
CREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE driver = "mika salo"
What time is grid 7 in?
CREATE TABLE table_name_61 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_61 WHERE grid = 7
What was the score of cook 3/6?
CREATE TABLE table_name_40 (result VARCHAR, goals VARCHAR)
SELECT result FROM table_name_40 WHERE goals = "cook 3/6"
What is the Chassis having a year later than 1990, and Minardi Scuderia Italia as an entrant, and 4 points?
CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_41 WHERE year > 1990 AND entrant = "minardi scuderia italia" AND points = 4
Which gender had a decile of more than 1 and featured the South Auckland Seventh-Day Adventist School?
CREATE TABLE table_name_16 (gender VARCHAR, decile VARCHAR, name VARCHAR)
SELECT gender FROM table_name_16 WHERE decile > 1 AND name = "south auckland seventh-day adventist school"
Which name has an authority of state?
CREATE TABLE table_name_13 (name VARCHAR, authority VARCHAR)
SELECT name FROM table_name_13 WHERE authority = "state"
Which decile features Mayfield School?
CREATE TABLE table_name_90 (decile VARCHAR, name VARCHAR)
SELECT decile FROM table_name_90 WHERE name = "mayfield school"
What was the record on July 28?
CREATE TABLE table_name_87 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_87 WHERE date = "july 28"
How many people attended on July 5?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_10 WHERE date = "july 5"
Which production won the drama desk award as well as the category of outstanding sound design?
CREATE TABLE table_name_88 (result VARCHAR, award VARCHAR, category VARCHAR)
SELECT result FROM table_name_88 WHERE award = "drama desk award" AND category = "outstanding sound design"
Who was nominated for outstanding director of a musical?
CREATE TABLE table_name_30 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_30 WHERE category = "outstanding director of a musical"
In what year was Terry Johnson nominated for a Tony award?
CREATE TABLE table_name_63 (year VARCHAR, award VARCHAR, nominee VARCHAR)
SELECT COUNT(year) FROM table_name_63 WHERE award = "tony award" AND nominee = "terry johnson"
What year was there a Tony award category of Best Revival of a Musical?
CREATE TABLE table_name_72 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT year FROM table_name_72 WHERE award = "tony award" AND category = "best revival of a musical"
What is the crowd size of the Away team, Fitzroy?
CREATE TABLE table_name_95 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_95 WHERE away_team = "fitzroy"
Which Away team uses Princes Park as it's venue?
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_77 WHERE venue = "princes park"
What was the lowest Crowd Size for the Home Team of North Melbourne?
CREATE TABLE table_name_32 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_32 WHERE home_team = "north melbourne"
What was the attendance when St Kilda played as the away team?
CREATE TABLE table_name_79 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_79 WHERE away_team = "st kilda"
Tell me the opponent for winner of bc 2
CREATE TABLE table_name_67 (opponent VARCHAR, winner VARCHAR)
SELECT opponent FROM table_name_67 WHERE winner = "bc 2"
Tell me the score for opponent of holy cross and result of push
CREATE TABLE table_name_3 (score VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT score FROM table_name_3 WHERE opponent = "holy cross" AND result = "push"
Tell me the score on 1978-12-16
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_91 WHERE date = "1978-12-16"
Tell me the result for 1979-01-17
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_5 WHERE date = "1979-01-17"
I want the result for winner of bc 3
CREATE TABLE table_name_83 (result VARCHAR, winner VARCHAR)
SELECT result FROM table_name_83 WHERE winner = "bc 3"
What is the save when Yankees are the opponents on July 25?
CREATE TABLE table_name_82 (save VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT save FROM table_name_82 WHERE opponent = "yankees" AND date = "july 25"
What score occurred when the save was ||27,108||63–44?
CREATE TABLE table_name_93 (score VARCHAR, save VARCHAR)
SELECT score FROM table_name_93 WHERE save = "||27,108||63–44"
What is the resulting loss when a save is ||12,838||48–35?
CREATE TABLE table_name_50 (loss VARCHAR, save VARCHAR)
SELECT loss FROM table_name_50 WHERE save = "||12,838||48–35"
On what date did a save of ||54,918||50–36 occur?
CREATE TABLE table_name_73 (date VARCHAR, save VARCHAR)
SELECT date FROM table_name_73 WHERE save = "||54,918||50–36"
What was the score when a save of ||25,354||63–43 occurred?
CREATE TABLE table_name_49 (score VARCHAR, save VARCHAR)
SELECT score FROM table_name_49 WHERE save = "||25,354||63–43"
Tell me the average goals with apps less than 3
CREATE TABLE table_name_16 (goals INTEGER, apps INTEGER)
SELECT AVG(goals) FROM table_name_16 WHERE apps < 3