answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT name FROM table_name_10 WHERE rank = 4
Can you tell me the Name that has the Rank of 4?
CREATE TABLE table_name_10 (name VARCHAR, rank VARCHAR)
SELECT race_name FROM table_name_4 WHERE circuit = "goodwood"
Which Race Name has Goodwood in the Curcuit?
CREATE TABLE table_name_4 (race_name VARCHAR, circuit VARCHAR)
SELECT nfl_recap FROM table_name_16 WHERE kickoff = "7:00pm edt"
Which NFL Recap had a Kickoff of 7:00pm edt?
CREATE TABLE table_name_16 (nfl_recap VARCHAR, kickoff VARCHAR)
SELECT AVG(year) FROM table_name_59 WHERE developer_s_ = "bioware"
What year was the developer(s) Bioware?
CREATE TABLE table_name_59 (year INTEGER, developer_s_ VARCHAR)
SELECT MAX(2003) FROM table_name_19 WHERE 2011 < 107 AND 1995 < 17
What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT score FROM table_name_9 WHERE away_team = "hull city"
What score has hull city as the away team?
CREATE TABLE table_name_9 (score VARCHAR, away_team VARCHAR)
SELECT AVG(net_yards) FROM table_name_87 WHERE touchdowns = 9 AND attempts = 145 AND yards_per_attempt > 4.8
What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?
CREATE TABLE table_name_87 (net_yards INTEGER, yards_per_attempt VARCHAR, touchdowns VARCHAR, attempts VARCHAR)
SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards"
What's the total score of Danny Edwards?
CREATE TABLE table_name_39 (score INTEGER, player VARCHAR)
SELECT episode FROM table_name_75 WHERE airdate__usa_ = "20 may 2005"
Which episode aired in the USA on 20 May 2005?
CREATE TABLE table_name_75 (episode VARCHAR, airdate__usa_ VARCHAR)
SELECT COUNT(reset_points) FROM table_28498999_6 WHERE player = "Charley Hoffman"
what is the number of pieces where the person is charley hoffman
CREATE TABLE table_28498999_6 (reset_points VARCHAR, player VARCHAR)
SELECT MIN(total) FROM table_28677723_9 WHERE style = "Pasodoble"
What is the smallest total score for the Pasodoble style?
CREATE TABLE table_28677723_9 (total INTEGER, style VARCHAR)
SELECT runner_up FROM table_name_78 WHERE year = "1901"
Who is the runner-up in 1901?
CREATE TABLE table_name_78 (runner_up VARCHAR, year VARCHAR)
SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = "Salmonella spp."
What is the result for salmonella spp. if you use citrate?
CREATE TABLE table_16083989_1 (citrate VARCHAR, species VARCHAR)
SELECT location_attendance FROM table_name_98 WHERE high_points = "andrew bogut (17)"
Can you tell me Location Attendance that has the High points of andrew bogut (17)?
CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)
SELECT COUNT(gold) FROM table_name_40 WHERE total < 8 AND silver < 1 AND rank > 7
What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?
CREATE TABLE table_name_40 (gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT state FROM table_name_81 WHERE city = "knoxville"
In which state is the city of knoxville?
CREATE TABLE table_name_81 (state VARCHAR, city VARCHAR)
SELECT tournament FROM table_name_10 WHERE date = "january 10, 1994"
Which Tournament has a Date of january 10, 1994?
CREATE TABLE table_name_10 (tournament VARCHAR, date VARCHAR)
SELECT total FROM table_name_57 WHERE year_s__won = "1997"
In 1997, what was the final total?
CREATE TABLE table_name_57 (total VARCHAR, year_s__won VARCHAR)
SELECT COUNT(election) FROM table_name_14 WHERE inhabitants < 16 OFFSET 170
In what Election year were there less than 16,170 Inhabitants?
CREATE TABLE table_name_14 (election VARCHAR, inhabitants INTEGER)
SELECT time_retired FROM table_name_44 WHERE manufacturer = "honda" AND grid = "8"
WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?
CREATE TABLE table_name_44 (time_retired VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100
Show the statuses of roller coasters longer than 3300 or higher than 100.
CREATE TABLE roller_coaster (Status VARCHAR, LENGTH VARCHAR, Height VARCHAR)
SELECT country FROM table_28634206_1 WHERE miss_universe = "8"
Which country has had 8 miss universes?
CREATE TABLE table_28634206_1 (country VARCHAR, miss_universe VARCHAR)
SELECT type_of_game FROM table_name_20 WHERE results¹ = "3:1" AND opponent = "france"
What type of game was held against France with the results of 3:1?
CREATE TABLE table_name_20 (type_of_game VARCHAR, results¹ VARCHAR, opponent VARCHAR)
SELECT damage__usd_ FROM table_10602294_1 WHERE pressure = "1003hPa (29.62inHg)"
What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?
CREATE TABLE table_10602294_1 (damage__usd_ VARCHAR, pressure VARCHAR)
SELECT operation_start FROM table_name_44 WHERE gross_mw = "220" AND unit = "kakrapar 1"
Gross MW of 220, and a Unit of kakrapar 1 involves what operation start?
CREATE TABLE table_name_44 (operation_start VARCHAR, gross_mw VARCHAR, unit VARCHAR)
SELECT placings FROM table_name_72 WHERE total > 131.26 AND name = "jacqueline du bief"
How many placings did Jacqueline du Bief earn where her total score is greater than 131.26?
CREATE TABLE table_name_72 (placings VARCHAR, total VARCHAR, name VARCHAR)
SELECT high_assists FROM table_name_64 WHERE high_points = "tayshaun prince (23)"
What is High Assists, when High Points is "Tayshaun Prince (23)"?
CREATE TABLE table_name_64 (high_assists VARCHAR, high_points VARCHAR)
SELECT outcome FROM table_name_78 WHERE championship = "australian open" AND year < 1994
What is Outcome, when Championship is Australian Open, and when Year is before 1994?
CREATE TABLE table_name_78 (outcome VARCHAR, championship VARCHAR, year VARCHAR)
SELECT event FROM table_name_31 WHERE reign = "2" AND days_held = "35"
What type of event had the wrestler with a reign of 2 and held the title for 35 days?
CREATE TABLE table_name_31 (event VARCHAR, reign VARCHAR, days_held VARCHAR)
SELECT name FROM table_name_53 WHERE games = 105
Which Name has Games of 105?
CREATE TABLE table_name_53 (name VARCHAR, games VARCHAR)
SELECT college_junior_club_team FROM table_1473672_3 WHERE nhl_team = "Buffalo Sabres"
Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?
CREATE TABLE table_1473672_3 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT year FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–5)"
In what year was the score 7–5, 7–6 (7–5)?
CREATE TABLE table_2516282_3 (year VARCHAR, score VARCHAR)
SELECT exaltation FROM table_name_75 WHERE detriment = "saturn" AND sign = "cancer"
Which exaltation has a detriment of Saturn and Cancer as a sign?
CREATE TABLE table_name_75 (exaltation VARCHAR, detriment VARCHAR, sign VARCHAR)
SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06
I want to know the highest rank with placings more than 123 and points greater than 88.06
CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR)
SELECT AVG(floors__stories_) FROM table_name_99 WHERE height_ft__m_ = "274 (84)" AND rank > 1
How many floors are in the 274 (84) ft (m) building that is ranked number 1?
CREATE TABLE table_name_99 (floors__stories_ INTEGER, height_ft__m_ VARCHAR, rank VARCHAR)
SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = "renault" AND laps > 23
Who drove the renault that went over 23 laps and had a grid under 11?
CREATE TABLE table_name_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT season FROM table_name_24 WHERE premier_division = "ewyas harold" AND division_three = "stoke prior"
Which year were both the Premier Division Ewyas Harold and Division Three Stoke Prior champions?
CREATE TABLE table_name_24 (season VARCHAR, premier_division VARCHAR, division_three VARCHAR)
SELECT awards FROM table_name_35 WHERE year > 2009 AND competition = "digi wwwow awards"
What award was in the year after 2009 with a competition of Digi Wwwow Awards?
CREATE TABLE table_name_35 (awards VARCHAR, year VARCHAR, competition VARCHAR)
SELECT COUNT(points) FROM table_27631002_1 WHERE position = "6th"
How many entries are there for points for the 6th position?
CREATE TABLE table_27631002_1 (points VARCHAR, position VARCHAR)
SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 2008"
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR)
SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011"
What is the date of appointment when the date of vacancy is 15 march 2011?
CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT home_team AS score FROM table_name_80 WHERE home_team = "essendon"
What is the home team score when the home team is Essendon?
CREATE TABLE table_name_80 (home_team VARCHAR)
SELECT MAX(pick) FROM table_name_44 WHERE player = "mike ford" AND round > 228
What was the pick number in round 228 for Mike Ford?
CREATE TABLE table_name_44 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_97 WHERE attendance = "68,436"
What is the Opponent at the game with Attendance of 68,436?
CREATE TABLE table_name_97 (opponent VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_80 WHERE away_team = "fitzroy"
What is the venue when fitzroy was the away team?
CREATE TABLE table_name_80 (venue VARCHAR, away_team VARCHAR)
SELECT points_for FROM table_name_19 WHERE played = "20" AND lost = "0"
What is the points number when 20 shows for played, and lost is 0?
CREATE TABLE table_name_19 (points_for VARCHAR, played VARCHAR, lost VARCHAR)
SELECT year FROM table_name_65 WHERE manager = "jesus alfaro" AND finish = "6th"
Name the year for jesus alfaro and finish of 6th
CREATE TABLE table_name_65 (year VARCHAR, manager VARCHAR, finish VARCHAR)
SELECT parish__prestegjeld_ FROM table_178399_1 WHERE year_built = 1908
Name the parish for 1908
CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, year_built VARCHAR)
SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = "Richard J. Welch (R) Unopposed"
how many result with candidates being richard j. welch (r) unopposed
CREATE TABLE table_1342233_6 (result VARCHAR, candidates VARCHAR)
SELECT entered_office FROM table_name_74 WHERE left_office = "1337"
What is the entered office that has 1337 as the left office?
CREATE TABLE table_name_74 (entered_office VARCHAR, left_office VARCHAR)
SELECT constructor FROM table_name_88 WHERE engine = "cosworth dfv v8" AND driver = "warren booth"
Who built Warren Booth's car with the Cosworth DFV V8 engine?
CREATE TABLE table_name_88 (constructor VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "carlton"
What's the highest turnout when carlton was playing as the away team?
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)
SELECT LOCATION FROM railway GROUP BY LOCATION HAVING COUNT(*) > 1
Show the locations that have more than one railways.
CREATE TABLE railway (LOCATION VARCHAR)
SELECT record FROM table_name_70 WHERE attendance = "21,629"
what game had an attendance of 21,629
CREATE TABLE table_name_70 (record VARCHAR, attendance VARCHAR)
SELECT townland FROM table_30120761_1 WHERE area__acres__ = 131
What are all of the townlands that have exactly 131 acres.
CREATE TABLE table_30120761_1 (townland VARCHAR, area__acres__ VARCHAR)
SELECT college FROM table_name_19 WHERE pick > 6 AND position = "rb" AND round = 28
Which college with a position of rb had a pick larger than 6 in round 28?
CREATE TABLE table_name_19 (college VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson"
What was the outcome in mari andersson's tournament?
CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR)
SELECT sanskrit FROM table_name_26 WHERE english = "mindfulness of breathing"
Which Sanskrit has an English of mindfulness of breathing?
CREATE TABLE table_name_26 (sanskrit VARCHAR, english VARCHAR)
SELECT ethernet_port_count FROM table_name_72 WHERE model = "whr-hp-g300n"
What is the Ethernet port count of the whr-hp-g300n model?
CREATE TABLE table_name_72 (ethernet_port_count VARCHAR, model VARCHAR)
SELECT number_s_ FROM table_name_50 WHERE quantity = "24"
What number corresponds to the quantity of 24?
CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)
SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 16
What is the lowest total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT purpose FROM table_name_71 WHERE band = "am" AND callsign = "6wh"
Band of am, and a Callsign of 6wh has what purpose?
CREATE TABLE table_name_71 (purpose VARCHAR, band VARCHAR, callsign VARCHAR)
SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = "20 years, 71 days"
What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?
CREATE TABLE table_name_86 (goals__2008_ VARCHAR, age_at_debut VARCHAR, games__2008_ VARCHAR, debut_round VARCHAR)
SELECT catalog FROM table_name_10 WHERE format = "stereo compact cassette"
What catalog uses the stereo compact cassette format?
CREATE TABLE table_name_10 (catalog VARCHAR, format VARCHAR)
SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766
who was the opponent when the attendance was larger than 54,766?
CREATE TABLE table_name_27 (opponent VARCHAR, attendance INTEGER)
SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5
What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?
CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR)
SELECT match FROM table_name_91 WHERE opponent = "bishop's stortford"
What was the match that happened in Bishop's Stortford?
CREATE TABLE table_name_91 (match VARCHAR, opponent VARCHAR)
SELECT COUNT(games) FROM table_name_44 WHERE points > 0 AND lost < 4 AND drawn < 0
How many Games has Points larger than 0 and a Lost smaller than 4?
CREATE TABLE table_name_44 (games VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT city___town FROM table_1984697_53 WHERE school = "Bloomington High school North"
Where is Bloomington High School North?
CREATE TABLE table_1984697_53 (city___town VARCHAR, school VARCHAR)
SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173"
Name the record for verizon center 20,173
CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR)
SELECT Investor_details FROM INVESTORS
Show all investor details.
CREATE TABLE INVESTORS (Investor_details VARCHAR)
SELECT time FROM table_name_27 WHERE country = "great britain"
What was the time for the rowers representing great britain?
CREATE TABLE table_name_27 (time VARCHAR, country VARCHAR)
SELECT COUNT(school) FROM table_11677100_7 WHERE player = "Mike Jones"
How many schools did Mike Jones attend?
CREATE TABLE table_11677100_7 (school VARCHAR, player VARCHAR)
SELECT MAX(number_of_bearers_2008) FROM table_name_32 WHERE surname = "hansen" AND rank < 1
What is the highest Number of Bearers 2008, when Surname is Hansen, and when Rank is less than 1?
CREATE TABLE table_name_32 (number_of_bearers_2008 INTEGER, surname VARCHAR, rank VARCHAR)
SELECT score FROM table_name_19 WHERE game = 31
What is the score at game 31?
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR)
SELECT SUM(assists) FROM table_name_60 WHERE club = "adler mannheim" AND points > 57
How many Assists have a Club of adler mannheim, and Points larger than 57?
CREATE TABLE table_name_60 (assists INTEGER, club VARCHAR, points VARCHAR)
SELECT date FROM table_name_32 WHERE region = "europe"
What is the date for Europe?
CREATE TABLE table_name_32 (date VARCHAR, region VARCHAR)
SELECT SUM(sign) FROM table_name_98 WHERE bits_precision > 53 AND type = "double extended (80-bit)" AND total_bits > 80
What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?
CREATE TABLE table_name_98 (sign INTEGER, total_bits VARCHAR, bits_precision VARCHAR, type VARCHAR)
SELECT length FROM table_1245148_1 WHERE track_name = "Michigan International Speedway"
What is the length of the track named michigan international speedway?
CREATE TABLE table_1245148_1 (length VARCHAR, track_name VARCHAR)
SELECT rowers FROM table_name_99 WHERE notes = "fc" AND time = "7:41.97"
What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?
CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_47 WHERE rank > 2 AND time = "55.77"
What is the nationality of the swimmer with a rank over 2 with a time of 55.77?
CREATE TABLE table_name_47 (nationality VARCHAR, rank VARCHAR, time VARCHAR)
SELECT record FROM table_name_92 WHERE years = "2006-11"
what is the record for years 2006-11?
CREATE TABLE table_name_92 (record VARCHAR, years VARCHAR)
SELECT COUNT(lmp1_winning_team) FROM table_24865763_2 WHERE rnd = 4 AND lmp2_winning_team = "No. 42 Strakka Racing"
How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?
CREATE TABLE table_24865763_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR)
SELECT goals FROM table_name_84 WHERE assists = "33" AND games = "85"
How many goals did the player score who had 33 assists in 85 games?
CREATE TABLE table_name_84 (goals VARCHAR, assists VARCHAR, games VARCHAR)
SELECT location FROM table_name_5 WHERE reason = "replaced"
Which venues were closed because they were replaced?
CREATE TABLE table_name_5 (location VARCHAR, reason VARCHAR)
SELECT SUM(draws) FROM table_name_83 WHERE south_west_dfl = "tyrendarra" AND wins < 10
How many Draws have a South West DFL of tyrendarra, and less than 10 wins?
CREATE TABLE table_name_83 (draws INTEGER, south_west_dfl VARCHAR, wins VARCHAR)
SELECT position FROM table_name_21 WHERE height_in_ft = "6-10"
What is Position, when Height in Ft. is 6-10?
CREATE TABLE table_name_21 (position VARCHAR, height_in_ft VARCHAR)
SELECT opponent FROM table_name_5 WHERE date = "may 10, 2009"
Who was the opponent on May 10, 2009?
CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR)
SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins"
Who was the host team when the Miami Dolphins were the visiting team?
CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR)
SELECT debut_album FROM table_1646960_3 WHERE winning_song = "Kemenangan Hati"
What is the debut album for the artist with the winning song kemenangan hati?
CREATE TABLE table_1646960_3 (debut_album VARCHAR, winning_song VARCHAR)
SELECT operator FROM table_name_99 WHERE region = "yorkshire"
What is the operator of the ensemble from Yorkshire?
CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR)
SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-14"
born on 1983-03-14, what is the cb's name?
CREATE TABLE table_name_28 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT score FROM table_name_38 WHERE location = "georgia" AND winner = "tommy aaron (2)"
What was the score of Tommy Aaron (2) when the tournament was in georgia?
CREATE TABLE table_name_38 (score VARCHAR, location VARCHAR, winner VARCHAR)
SELECT DISTINCT President_Vote, VICE_President_Vote FROM VOTING_RECORD
Report the distinct president vote and the vice president vote.
CREATE TABLE VOTING_RECORD (President_Vote VARCHAR, VICE_President_Vote VARCHAR)
SELECT opponent FROM table_name_38 WHERE date = "november 1"
Who is the opponent on November 1?
CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_34 WHERE total < 291 AND to_par = "+10" AND player = "raymond floyd"
In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?
CREATE TABLE table_name_34 (year_s__won VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT date FROM table_name_72 WHERE result_f_a = "5–0"
Result F–A of 5–0 had what date?
CREATE TABLE table_name_72 (date VARCHAR, result_f_a VARCHAR)
SELECT opponent FROM table_name_16 WHERE score = "7–6"
Who was the opponent at the game with a score of 7–6?
CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR)
SELECT name FROM table_name_30 WHERE themed_area = "dreamworks experience" AND manufacturer = "ferrari"
What is the name of the dreamworks experience from Ferrari?
CREATE TABLE table_name_30 (name VARCHAR, themed_area VARCHAR, manufacturer VARCHAR)
SELECT home_team FROM table_name_99 WHERE venue = "arden street oval"
Who played home team at the Arden Street Oval game?
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)