answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT AVG(bronze) FROM table_name_82 WHERE gold < 0
CREATE TABLE table_name_82 (bronze INTEGER, gold INTEGER)
Which Bronze has a Gold smaller than 0?
SELECT tc FROM table_name_40 WHERE wins = 1 AND races = 21
CREATE TABLE table_name_40 (tc VARCHAR, wins VARCHAR, races VARCHAR)
Which T.C. has a Win of 1, and a Race of 21?
SELECT COUNT(year) FROM table_name_67 WHERE drivers = "ben hanley" AND flaps < 0
CREATE TABLE table_name_67 (year VARCHAR, drivers VARCHAR, flaps VARCHAR)
How many years have Drivers of ben hanley, and Flaps smaller than 0?
SELECT AVG(points) FROM table_name_97 WHERE drivers = "adrián vallés" AND year > 2006
CREATE TABLE table_name_97 (points INTEGER, drivers VARCHAR, year VARCHAR)
How many Points have Drivers of adrián vallés, and a Year larger than 2006?
SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0
CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR)
How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR)
Who was the away team at Victoria Park?
SELECT name FROM table_name_41 WHERE number < 6 AND date < 1993
CREATE TABLE table_name_41 (name VARCHAR, number VARCHAR, date VARCHAR)
What is the name of the train numbered less than 6 before 1993?
SELECT name FROM table_name_31 WHERE number < 5 AND type = "bo-bodh"
CREATE TABLE table_name_31 (name VARCHAR, number VARCHAR, type VARCHAR)
What is the name of the bo-bodh train with a number less than 5?
SELECT record FROM table_name_41 WHERE visitor = "st. louis"
CREATE TABLE table_name_41 (record VARCHAR, visitor VARCHAR)
Name the record when the visitor is st. louis
SELECT score FROM table_name_10 WHERE visitor = "calgary"
CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR)
What was the scory when calgary was visiting?
SELECT home FROM table_name_12 WHERE visitor = "dallas" AND date = "february 2"
CREATE TABLE table_name_12 (home VARCHAR, visitor VARCHAR, date VARCHAR)
Name the home when the visitor was dallas on february 2
SELECT date FROM table_name_5 WHERE decision = "turco" AND home = "st. louis"
CREATE TABLE table_name_5 (date VARCHAR, decision VARCHAR, home VARCHAR)
Name the date for turco decision and home of st. louis
SELECT rider FROM table_name_84 WHERE speed = "104.630mph"
CREATE TABLE table_name_84 (rider VARCHAR, speed VARCHAR)
Which rider had a speed of 104.630mph?
SELECT MAX(rank) FROM table_name_59 WHERE time = "1:05.14.10"
CREATE TABLE table_name_59 (rank INTEGER, time VARCHAR)
What is the best rank with a time of 1:05.14.10?
SELECT stadium FROM table_name_71 WHERE final_score = "35-62"
CREATE TABLE table_name_71 (stadium VARCHAR, final_score VARCHAR)
Where was the game played when the final score was 35-62?
SELECT visiting_team FROM table_name_99 WHERE stadium = "candlestick park"
CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR)
During the game at Candlestick Park, who was the visiting team?
SELECT visiting_team FROM table_name_12 WHERE final_score = "14-34"
CREATE TABLE table_name_12 (visiting_team VARCHAR, final_score VARCHAR)
Which visiting team had a final score of 14-34?
SELECT final_score FROM table_name_78 WHERE visiting_team = "cincinnati bengals"
CREATE TABLE table_name_78 (final_score VARCHAR, visiting_team VARCHAR)
What was the final score in the game against the Cincinnati Bengals?
SELECT visiting_team FROM table_name_10 WHERE host_team = "dallas cowboys"
CREATE TABLE table_name_10 (visiting_team VARCHAR, host_team VARCHAR)
Who was the visiting team in the game against the Dallas Cowboys?
SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?
SELECT surface FROM table_name_45 WHERE score = "6–4, 6–2"
CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR)
Which surface has a Score of 6–4, 6–2?
SELECT surface FROM table_name_57 WHERE date = "22 august 2006"
CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR)
Which surface has a Date of 22 august 2006?
SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–2"
CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?
SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic"
CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR)
What is the outcome with marina erakovic as opponent?
SELECT tournament FROM table_name_53 WHERE outcome = "winner" AND opponent = "dia evtimova"
CREATE TABLE table_name_53 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
Which tournament has an Outcome of winner, and a Opponent of dia evtimova?
SELECT title FROM table_name_5 WHERE time = "3:22"
CREATE TABLE table_name_5 (title VARCHAR, time VARCHAR)
What title runs for 3:22?
SELECT author_s_ FROM table_name_35 WHERE time = "2:22"
CREATE TABLE table_name_35 (author_s_ VARCHAR, time VARCHAR)
Who wrote the song that runs for 2:22?
SELECT constructor FROM table_name_74 WHERE laps = 66
CREATE TABLE table_name_74 (constructor VARCHAR, laps VARCHAR)
What Constructor had 66 Laps?
SELECT MIN(grid) FROM table_name_30 WHERE laps > 78
CREATE TABLE table_name_30 (grid INTEGER, laps INTEGER)
With Laps greater than 78, what is the lowest Grid?
SELECT AVG(laps) FROM table_name_71 WHERE driver = "john watson" AND grid < 11
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR, grid VARCHAR)
How many Laps with a Grid smaller than 11 did John Watson have?
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15
CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
What is the low grid total for a retired due to steering in under 15 laps?
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR)
What is the average laps that had a time/retired of +5 laps?
SELECT opponent FROM table_name_16 WHERE location = "wonju chiak indoor gym, south korea"
CREATE TABLE table_name_16 (opponent VARCHAR, location VARCHAR)
Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?
SELECT MIN(round) FROM table_name_60 WHERE opponent = "paul cahoon" AND location = "amsterdam, netherlands"
CREATE TABLE table_name_60 (round INTEGER, opponent VARCHAR, location VARCHAR)
Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?
SELECT event FROM table_name_15 WHERE opponent = "bernard ackah"
CREATE TABLE table_name_15 (event VARCHAR, opponent VARCHAR)
Which Event has the Opponent, Bernard Ackah?
SELECT launched FROM table_name_91 WHERE laid_down = "14 august 1942"
CREATE TABLE table_name_91 (launched VARCHAR, laid_down VARCHAR)
when was the destroyer launched when it was laid down on 14 august 1942?
SELECT launched FROM table_name_57 WHERE builder = "john brown, clydebank"
CREATE TABLE table_name_57 (launched VARCHAR, builder VARCHAR)
what is the launched date when the builder is john brown, clydebank?
SELECT pennant FROM table_name_23 WHERE builder = "yarrow, scotstoun"
CREATE TABLE table_name_23 (pennant VARCHAR, builder VARCHAR)
what is the pennant when the builder is yarrow, scotstoun?
SELECT name FROM table_name_37 WHERE laid_down = "28 february 1943"
CREATE TABLE table_name_37 (name VARCHAR, laid_down VARCHAR)
what is the name when the laid down is 28 february 1943?
SELECT commissioned FROM table_name_88 WHERE builder = "scotts, greenock"
CREATE TABLE table_name_88 (commissioned VARCHAR, builder VARCHAR)
when was it commissioned when the destroyer was built by scotts, greenock?
SELECT launched FROM table_name_55 WHERE laid_down = "14 august 1942"
CREATE TABLE table_name_55 (launched VARCHAR, laid_down VARCHAR)
when was the launched date when the laid down date is 14 august 1942?
SELECT record FROM table_name_82 WHERE week < 13 AND date = "july 12"
CREATE TABLE table_name_82 (record VARCHAR, week VARCHAR, date VARCHAR)
What was the record for a week below 13 on July 12?
SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5"
CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR)
What location had a final score of W 30 – 5?
SELECT label FROM table_name_48 WHERE catalog = "ch-9196"
CREATE TABLE table_name_48 (label VARCHAR, catalog VARCHAR)
Which label had a catalog designation of ch-9196?
SELECT format FROM table_name_95 WHERE catalog = "21-382a"
CREATE TABLE table_name_95 (format VARCHAR, catalog VARCHAR)
Which format's catalog designation was 21-382a?
SELECT catalog FROM table_name_66 WHERE date = "1984"
CREATE TABLE table_name_66 (catalog VARCHAR, date VARCHAR)
Which catalog had a date year of 1984?
SELECT format FROM table_name_32 WHERE label = "london records"
CREATE TABLE table_name_32 (format VARCHAR, label VARCHAR)
Which format was under the London Records label?
SELECT label FROM table_name_17 WHERE region = "united kingdom"
CREATE TABLE table_name_17 (label VARCHAR, region VARCHAR)
Which label was in the United Kingdom region?
SELECT date FROM table_name_37 WHERE catalog = "ha-m 2230"
CREATE TABLE table_name_37 (date VARCHAR, catalog VARCHAR)
Which date had the catalog designation of ha-m 2230?
SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15
CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR)
What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?
SELECT SUM(points__pts_) FROM table_name_84 WHERE won__pg_ > 9 AND goals_scored__gf_ > 40
CREATE TABLE table_name_84 (points__pts_ INTEGER, won__pg_ VARCHAR, goals_scored__gf_ VARCHAR)
What is the points for a team with more than 9 wins and more than 40 goals?
SELECT score FROM table_name_90 WHERE competition = "2012 africa cup of nations"
CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR)
What was the score of the game played in the 2012 Africa Cup of Nations?
SELECT score FROM table_name_72 WHERE competition = "friendly"
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR)
What is the score of the friendly competition?
SELECT venue FROM table_name_28 WHERE date = "9 february 2011"
CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR)
What venue was the game played on 9 February 2011 played at?
SELECT date FROM table_name_12 WHERE home = "ny rangers"
CREATE TABLE table_name_12 (date VARCHAR, home VARCHAR)
What date did NY Rangers play at home?
SELECT score FROM table_name_32 WHERE decision = "smith" AND visitor = "colorado"
CREATE TABLE table_name_32 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
What is the score of Colorado when they were a visitor and had a Smith decision?
SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]"
CREATE TABLE table_name_50 (runner_up VARCHAR, score VARCHAR)
Who is the runner up when the score was 3–6, 6–3, [10–4]?
SELECT runner_up FROM table_name_92 WHERE tournament = "são paulo"
CREATE TABLE table_name_92 (runner_up VARCHAR, tournament VARCHAR)
What is the name of the runner up in the Tournament of são paulo?
SELECT third_place FROM table_name_94 WHERE winner = "thomas enqvist" AND runner_up = "guy forget"
CREATE TABLE table_name_94 (third_place VARCHAR, winner VARCHAR, runner_up VARCHAR)
What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?
SELECT tournament FROM table_name_15 WHERE runner_up = "thomas enqvist"
CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR)
What tournament was Thomas Enqvist runner up?
SELECT runner_up FROM table_name_18 WHERE third_place = "yevgeny kafelnikov" AND score = "3–6, 6–4, [10–3]"
CREATE TABLE table_name_18 (runner_up VARCHAR, third_place VARCHAR, score VARCHAR)
What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3–6, 6–4, [10–3]?
SELECT winner FROM table_name_65 WHERE third_place = "goran ivanišević"
CREATE TABLE table_name_65 (winner VARCHAR, third_place VARCHAR)
What is the name of the winner when Goran Ivanišević was in third place?
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1"
CREATE TABLE table_name_31 (analog_channel VARCHAR, digital_channel VARCHAR)
Which analog channel has a digital channel of 4.1?
SELECT digital_channel FROM table_name_65 WHERE name = "storm tracker"
CREATE TABLE table_name_65 (digital_channel VARCHAR, name VARCHAR)
Which digital channel is named Storm Tracker?
SELECT analog_channel FROM table_name_16 WHERE network = "fox"
CREATE TABLE table_name_16 (analog_channel VARCHAR, network VARCHAR)
Which analog channel is Fox on?
SELECT area_president__quorum_ FROM table_name_44 WHERE area_name = "south america south"
CREATE TABLE table_name_44 (area_president__quorum_ VARCHAR, area_name VARCHAR)
Name the area president when the area name is south america south
SELECT COUNT(grid) FROM table_name_66 WHERE time_retired = "+2 laps" AND laps < 70
CREATE TABLE table_name_66 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70
SELECT year FROM table_name_13 WHERE actress = "shelley winters"
CREATE TABLE table_name_13 (year VARCHAR, actress VARCHAR)
What year did Shelley Winters win?
SELECT superlative FROM table_name_92 WHERE year > 1984 AND actress = "gloria stuart"
CREATE TABLE table_name_92 (superlative VARCHAR, year VARCHAR, actress VARCHAR)
Which award was won by Gloria Stuart after 1984?
SELECT superlative FROM table_name_56 WHERE actress = "thelma ritter"
CREATE TABLE table_name_56 (superlative VARCHAR, actress VARCHAR)
Which award has Thelma Ritter won?
SELECT MIN(points_diff) FROM table_name_37 WHERE against < 578 AND lost = 15 AND points > 26
CREATE TABLE table_name_37 (points_diff INTEGER, points VARCHAR, against VARCHAR, lost VARCHAR)
I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26
SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114
CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR)
I want the total number of points for against of 753 and points diff more than -114
SELECT week FROM table_name_59 WHERE attendance = "75,866"
CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR)
In What Week was the Attendance 75,866?
SELECT opponent FROM table_name_49 WHERE attendance = "74,246"
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
What Opponent has an Attendance of 74,246?
SELECT date FROM table_name_54 WHERE week = 1
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR)
What Date is Week 1?
SELECT team FROM table_name_80 WHERE losses = "7" AND goals_for = 55
CREATE TABLE table_name_80 (team VARCHAR, losses VARCHAR, goals_for VARCHAR)
Which team had 7 losses and 55 goals?
SELECT MIN(1995) FROM table_name_14 WHERE 1990 = 441 AND 1985 < 359
CREATE TABLE table_name_14 (Id VARCHAR)
What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359?
SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658
CREATE TABLE table_name_88 (Id VARCHAR)
What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?
SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747
CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR)
When populatioin is greater than 7,747 and the type is V, what is the sum of code?
SELECT name FROM table_name_24 WHERE ties = 5
CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR)
Who has ties of 5?
SELECT venue FROM table_name_95 WHERE away_team = "st kilda"
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
Where did st kilda play as the away team?
SELECT crowd FROM table_name_66 WHERE home_team = "essendon"
CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR)
How big of a crowd does the home team of essendon have?
SELECT mlb_draft FROM table_name_80 WHERE school = "seton hall preparatory school"
CREATE TABLE table_name_80 (mlb_draft VARCHAR, school VARCHAR)
What is the MLB Draft status of the person who attended Seton Hall Preparatory School?
SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school"
CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR)
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?
SELECT player FROM table_name_8 WHERE school = "george washington high school"
CREATE TABLE table_name_8 (player VARCHAR, school VARCHAR)
Which Player attended George Washington High School?
SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR)
Where is the Hometown that the person who attended Camarillo High School is from?
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "carlton"
CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)
How many people in total have attended games where carlton played as away?
SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6
CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR)
Which player has a long of less than 15 and an average of 6 yards.
SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson"
CREATE TABLE table_name_29 (years_for_jazz VARCHAR, player VARCHAR)
What years did Troy Hudson play for the Jazz?
SELECT nationality FROM table_name_69 WHERE school_club_team = "iowa state"
CREATE TABLE table_name_69 (nationality VARCHAR, school_club_team VARCHAR)
What Nationality is the Iowa State team?
SELECT nationality FROM table_name_14 WHERE player = "jeff hornacek"
CREATE TABLE table_name_14 (nationality VARCHAR, player VARCHAR)
What Nationality is Jeff Hornacek?
SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado"
CREATE TABLE table_name_16 (nationality VARCHAR, school_club_team VARCHAR)
What Nationality is the Colorado State team?
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois"
CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR)
What Player is from the Southern Illinois team?
SELECT years_for_jazz FROM table_name_53 WHERE player = "eddie hughes"
CREATE TABLE table_name_53 (years_for_jazz VARCHAR, player VARCHAR)
What years did Eddie Hughes play for the Jazz?
SELECT species FROM table_name_63 WHERE threat_level = "medium"
CREATE TABLE table_name_63 (species VARCHAR, threat_level VARCHAR)
Which Species has a medium Threat Level?
SELECT overview FROM table_name_79 WHERE threat_level = "medium"
CREATE TABLE table_name_79 (overview VARCHAR, threat_level VARCHAR)
What is the Overview with a medium Threat Level?
SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia"
CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR)
What is the Threat Levels with Rabbits in Australia?
SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography"
CREATE TABLE table_name_81 (nominee VARCHAR, category VARCHAR, award VARCHAR, result VARCHAR)
Which nominee won the Drama Desk Award for outstanding choreography?
SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical"
CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR)
When was the last time a nominee for Best Revival of a Musical was selected?